/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #152040;
    --accent: #B8923A;
    --light: #F4F2ED;
    --dark: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --border: #444;
    --success: #4CAF50;
    --warning: #ff9800;
    --error: #f44336;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: #e0e0e0;
    line-height: 1.6;
}

/* Page Display Control */
.page {
    display: none;
}

.page.active {
    display: flex;
}

#login-page.active {
    flex-direction: column;
}

#dashboard-page.active {
    flex-direction: column;
    min-height: 100vh;
}

/* Login Page */
#login-page {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
}

#login-page.active {
    display: flex !important;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: clamp(20px, 4vw, 30px);
    margin: clamp(30px, 5vh, 60px) auto;
}

.login-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(30, 30, 30, 0.95) 100%);
    border: 1px solid rgba(184, 146, 58, 0.2);
    border-radius: 12px;
    padding: clamp(30px, 6vw, 45px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(184, 146, 58, 0.1);
}

.login-card h1 {
    font-size: clamp(22px, 5vw, 28px);
    margin-bottom: clamp(8px, 1.5vw, 10px);
    color: var(--accent);
}

.subtitle {
    color: #999;
    margin-bottom: clamp(20px, 3vw, 30px);
    font-size: clamp(13px, 2vw, 14px);
}

.form-group {
    margin-bottom: clamp(18px, 2.5vw, 24px);
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: clamp(8px, 1.5vw, 10px);
    font-weight: 700;
    color: #e0e0e0;
    font-size: clamp(13px, 1.8vw, 14px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: clamp(12px, 2vw, 14px) clamp(14px, 2.5vw, 16px);
    border: 2px solid rgba(184, 146, 58, 0.3);
    border-radius: 8px;
    background: rgba(21, 32, 64, 0.5);
    color: #ffffff;
    font-size: clamp(13px, 2vw, 14px);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.form-group input::placeholder {
    color: #666;
    font-style: italic;
}

.form-group input:hover {
    border-color: rgba(184, 146, 58, 0.5);
    background: rgba(21, 32, 64, 0.7);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(21, 32, 64, 0.9);
    box-shadow: 0 0 0 3px rgba(184, 146, 58, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    width: 100%;
    padding: clamp(12px, 2vw, 14px);
    background: linear-gradient(135deg, var(--accent) 0%, #d4a855 100%);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: clamp(14px, 2vw, 16px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(184, 146, 58, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d4a855 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 146, 58, 0.35);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(184, 146, 58, 0.25);
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.error-message {
    color: var(--error);
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
    display: none;
}

.error-message.show {
    display: block;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(15px, 2vw, 20px);
    font-size: clamp(12px, 1.8vw, 14px);
    gap: clamp(10px, 2vw, 15px);
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
    cursor: pointer;
    color: #b0b0b0;
    user-select: none;
    transition: color 0.3s ease;
    font-size: clamp(12px, 1.8vw, 14px);
    font-weight: 500;
}

.checkbox-label:hover {
    color: var(--accent);
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:hover {
    box-shadow: 0 0 6px rgba(184, 146, 58, 0.3);
    transform: scale(1.05);
}

.forgot-password-link {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(12px, 1.8vw, 13px);
    font-weight: 500;
    position: relative;
}

.forgot-password-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.forgot-password-link:hover {
    color: #d4a855;
}

.forgot-password-link:hover::after {
    width: 100%;
}
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    color: var(--accent);
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    color: #b0b0b0;
    margin-bottom: 15px;
    font-size: 14px;
}

.reset-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}

.reset-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    display: block;
}

.reset-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    display: block;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

.btn-secondary {
    padding: clamp(8px, 1.2vw, 10px) clamp(15px, 2.5vw, 20px);
    background: transparent;
    color: #b0b0b0;
    border: 1px solid #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(12px, 1.8vw, 14px);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(184, 146, 58, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(184, 146, 58, 0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.reset-submit-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-text {
    display: none;
    color: var(--accent);
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

.loading-text.show {
    display: block;
}

/* Dashboard */
.page {
    display: none;
}

.page.active {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Panel Banner */
.panel-banner {
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    padding: clamp(8px, 1.5vw, 12px);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--accent);
}

.banner-text {
    font-size: clamp(12px, 2vw, 15px);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar {
    background: linear-gradient(180deg, rgba(184, 146, 58, 0.08) 0%, rgba(21, 32, 64, 0.95) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: clamp(12px, 2vw, 15px) 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(20px, 3vw, 30px);
    flex-wrap: wrap;
    position: relative;
    padding-bottom: 0;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 15px);
    flex: 0 1 auto;
}

.navbar-logo {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.navbar-title {
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 600;
    color: #e0e0e0;
    border-left: 1px solid var(--border);
    padding-left: clamp(10px, 2vw, 15px);
    white-space: normal;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: clamp(2px, 0.5vw, 4px);
    flex: 1;
    justify-content: center;
    order: 10;
    width: 100%;
    flex-basis: 100%;
    padding: clamp(12px, 2vw, 14px) clamp(20px, 3.5vw, 35px);
    border-bottom: 2px solid var(--accent);
    margin-top: clamp(8px, 1.5vw, 10px);
    background: linear-gradient(180deg, rgba(21, 32, 64, 0.6) 0%, rgba(21, 32, 64, 0.4) 100%);
    box-shadow: inset 0 1px 0 rgba(184, 146, 58, 0.15), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-menu-item {
    padding: clamp(8px, 1.5vw, 10px) clamp(12px, 2vw, 16px);
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: clamp(11px, 1.8vw, 13px);
    font-weight: 500;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 1vw, 8px);
    white-space: nowrap;
}

.navbar-menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-menu-item:hover {
    color: var(--accent);
    background: rgba(184, 146, 58, 0.1);
    transform: translateY(-2px);
}

.navbar-menu-item:hover::after {
    width: 60%;
}

.navbar-menu-item.active {
    color: var(--accent);
    background: linear-gradient(135deg, rgba(184, 146, 58, 0.15) 0%, rgba(184, 146, 58, 0.08) 100%);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(184, 146, 58, 0.2);
}

.navbar-menu-item.active::after {
    width: 80%;
    background: linear-gradient(90deg, var(--accent) 0%, #d4a855 100%);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 15px);
    flex: 0 1 auto;
}

.navbar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: clamp(32px, 5vw, 40px);
    height: clamp(32px, 5vw, 40px);
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(12px, 2vw, 16px);
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: clamp(100px, 20vw, 150px);
}

.user-name {
    font-size: clamp(11px, 1.8vw, 13px);
    font-weight: 700;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: clamp(9px, 1.5vw, 11px);
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: clamp(8px, 1.3vw, 10px);
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.btn-small {
    padding: clamp(6px, 1vw, 8px) clamp(12px, 2vw, 16px);
    background: transparent;
    color: #e0e0e0;
    border: 1px solid #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(12px, 1.8vw, 14px);
    transition: all 0.3s;
}

.btn-small:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.btn-logout {
    padding: clamp(6px, 1vw, 8px) clamp(12px, 2vw, 16px);
    background: var(--error);
    color: white;
    border: 1px solid var(--error);
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(12px, 1.8vw, 14px);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: transparent;
    color: var(--error);
}

/* Main Layout */
.container {
    display: flex;
    flex: 1;
    width: 100%;
}

.sidebar {
    display: none;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.5vw, 4px);
}

.menu-item {
    padding: clamp(12px, 2vw, 14px) clamp(16px, 2.5vw, 20px);
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    font-size: clamp(12px, 1.9vw, 14px);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 12px);
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    z-index: 0;
}

.menu-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(184, 146, 58, 0) 0%, rgba(184, 146, 58, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.menu-item span {
    position: relative;
    z-index: 1;
}

.menu-item:hover {
    background: rgba(184, 146, 58, 0.12);
    color: var(--accent);
    padding-left: clamp(18px, 2.8vw, 22px);
    transform: translateX(2px);
}

.menu-item:hover::before {
    transform: scaleY(1);
}

.menu-item:hover::after {
    opacity: 1;
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(184, 146, 58, 0.2) 0%, rgba(184, 146, 58, 0.1) 100%);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(184, 146, 58, 0.15);
}

.menu-item.active::before {
    transform: scaleY(1);
    background: linear-gradient(180deg, var(--accent) 0%, #d4a855 100%);
}

.menu-item.active::after {
    opacity: 1;
}

.main-content {
    flex: 1;
    padding: clamp(20px, 3vw, 30px);
    overflow-y: auto;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(20px, 3vw, 30px);
    gap: clamp(10px, 2vw, 20px);
}

.view-header h2 {
    font-size: clamp(20px, 4vw, 24px);
    color: #e0e0e0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: clamp(15px, 3vw, 20px);
    margin-bottom: clamp(30px, 5vw, 40px);
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(184, 146, 58, 0.2);
    border-radius: 12px;
    padding: clamp(20px, 3.5vw, 30px);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(120px, 18vw, 160px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(184, 146, 58, 0.15);
    transform: translateY(-4px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: clamp(28px, 5vw, 40px);
    margin-bottom: clamp(8px, 1.5vw, 12px);
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-card-pages {
    border-left: 3px solid #3498db;
}

.stat-card-articles {
    border-left: 3px solid #e74c3c;
}

.stat-card-approvals {
    border-left: 3px solid #2ecc71;
}

.stat-card-users {
    border-left: 3px solid #f39c12;
}

.stat-value {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    color: var(--accent);
    margin: clamp(6px, 1.2vw, 8px) 0;
    letter-spacing: -1px;
}

.stat-label {
    color: #b0b0b0;
    font-size: clamp(12px, 2vw, 14px);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Charts */
.chart-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: clamp(15px, 3vw, 20px);
    margin-bottom: clamp(20px, 4vw, 30px);
}

.chart-container h3 {
    margin-bottom: clamp(15px, 2.5vw, 20px);
    color: #e0e0e0;
    font-size: clamp(16px, 2.5vw, 18px);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: var(--primary);
}

.data-table th {
    padding: clamp(10px, 1.5vw, 15px);
    text-align: left;
    color: var(--accent);
    font-weight: 600;
    font-size: clamp(12px, 1.8vw, 14px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: clamp(10px, 1.5vw, 15px);
    border-top: 1px solid var(--border);
    color: #b0b0b0;
    font-size: clamp(11px, 1.6vw, 13px);
}

.data-table tbody tr:hover {
    background: rgba(184, 146, 58, 0.05);
}

.data-table .empty {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Approvals Container */
.approvals-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: clamp(15px, 3vw, 25px);
}

.approval-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: clamp(20px, 3vw, 25px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.approval-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(184, 146, 58, 0.15);
}

.approval-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(10px, 2vw, 15px);
    margin-bottom: clamp(12px, 2vw, 15px);
    border-bottom: 1px solid var(--border);
    padding-bottom: clamp(12px, 2vw, 15px);
}

.approval-header h4 {
    margin: 0;
    color: var(--accent);
    font-size: clamp(14px, 2.2vw, 16px);
    flex: 1;
}

.approval-status {
    display: inline-block;
    padding: clamp(4px, 0.8vw, 6px) clamp(8px, 1.5vw, 12px);
    border-radius: 4px;
    font-size: clamp(10px, 1.5vw, 12px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.approval-status.pending {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.approval-status.approved {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.approval-status.rejected {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.approval-status.needs_revision {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.approval-details {
    margin-bottom: clamp(15px, 2vw, 20px);
    font-size: clamp(12px, 1.8vw, 13px);
}

.approval-details p {
    margin: clamp(6px, 1vw, 8px) 0;
    color: #b0b0b0;
}

.approval-details strong {
    color: #e0e0e0;
}

.approval-actions {
    display: flex;
    gap: clamp(8px, 1.5vw, 12px);
    flex-wrap: wrap;
}

.btn-approve,
.btn-revise,
.btn-reject {
    flex: 1;
    min-width: clamp(90px, 25vw, 120px);
    padding: clamp(8px, 1.2vw, 10px) clamp(12px, 2vw, 16px);
    border: none;
    border-radius: 6px;
    font-size: clamp(11px, 1.7vw, 13px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-approve {
    background: #4CAF50;
    color: white;
    flex: 1.2;
}

.btn-approve:hover {
    background: #45a049;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-revise {
    background: #2196F3;
    color: white;
}

.btn-revise:hover {
    background: #0b7dda;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.btn-reject {
    background: transparent;
    color: #f44336;
    border: 1px solid #f44336;
}

.btn-reject:hover {
    background: rgba(244, 67, 54, 0.1);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

/* Footer - Responsive Friendly */
.footer {
    background: var(--primary);
    border-top: 1px solid var(--border);
    padding: clamp(15px, 4vw, 30px);
    margin-top: auto;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 3vw, 20px);
    text-align: center;
    padding: 0 clamp(10px, 2vw, 20px);
}

/* Panel Menüsü - Yatay (Flexible) */
.footer-menu-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 2vw, 12px);
    flex-wrap: wrap;
}

.footer-link {
    color: #999;
    text-decoration: none;
    font-size: clamp(11px, 2vw, 13px);
    transition: color 0.3s;
    white-space: normal;
}

.footer-link:hover {
    color: var(--accent);
}

.footer-separator {
    color: var(--accent);
    font-size: clamp(10px, 1.8vw, 12px);
    flex-shrink: 0;
    opacity: 0.7;
}

/* İletişim - Flexible Layout */
.footer-contact-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 1.5vw, 10px);
    flex-wrap: wrap;
    font-size: clamp(10px, 1.8vw, 12px);
    color: #999;
}

.footer-contact-horizontal a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    white-space: normal;
}

.footer-contact-horizontal a:hover {
    color: var(--accent);
}

.footer-contact-horizontal span {
    color: #999;
}

/* Sosyal Medya - Flexible Wrap */
.footer-social-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 3vw, 20px);
    flex-wrap: wrap;
}

.social-icon {
    color: #999;
    text-decoration: none;
    font-size: clamp(10px, 1.8vw, 12px);
    transition: all 0.3s;
    white-space: normal;
    padding: 0 clamp(2px, 1vw, 4px);
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Footer - Header styling */
.footer-bottom {
    background: linear-gradient(180deg,
        rgba(21, 32, 64, 0.8) 0%,
        rgba(26, 26, 26, 0.95) 50%,
        rgba(15, 20, 40, 0.9) 100%);
    border-top: 2px solid var(--accent);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(184, 146, 58, 0.1);
    padding: clamp(35px, 5vw, 45px) clamp(25px, 4vw, 35px);
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5.5vw, 45px);
    position: relative;
    overflow: hidden;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: clamp(16px, 2.5vw, 28px);
    width: 100%;
    position: relative;
    z-index: 1;
}

.footer-item {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.8vw, 12px);
    text-align: left;
    flex: 0 1 20%;
    min-width: 140px;
    padding: clamp(8px, 1.2vw, 10px);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.footer-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 2px;
}

.footer-item:hover {
    background: rgba(184, 146, 58, 0.08);
    padding-left: clamp(14px, 2.2vw, 18px);
}

.footer-item:hover::before {
    opacity: 1;
}

.footer-item h4 {
    color: var(--accent);
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 800;
    margin: 0 0 clamp(6px, 1.2vw, 8px) 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.footer-item:hover h4 {
    color: #d4a855;
    text-shadow: 0 0 8px rgba(184, 146, 58, 0.3);
}

.footer-item p {
    color: #e8e8e8;
    font-size: clamp(11px, 1.7vw, 13px);
    margin: 0;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-item:hover p {
    color: #ffffff;
}

.footer-item a {
    color: #e8e8e8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.footer-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-item a:hover {
    color: var(--accent);
}

.footer-item a:hover::after {
    width: 100%;
}

.footer-brand {
    flex: 0 1 48% !important;
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer-logo {
    font-size: clamp(32px, 6vw, 48px);
    margin-bottom: clamp(8px, 1.5vw, 12px);
    text-align: right;
}

.footer-company-name {
    color: var(--accent);
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 800;
    margin: 0 0 clamp(6px, 1.2vw, 8px) 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-company-subtitle {
    color: #d4a855;
    font-size: clamp(11px, 1.8vw, 13px);
    font-weight: 600;
    margin: 0 0 clamp(10px, 2vw, 14px) 0;
    font-style: italic;
}

.footer-company-desc {
    color: #d0d0d0;
    font-size: clamp(10px, 1.5vw, 12px);
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.footer-legal-bottom {
    border-top: 1px solid rgba(184, 146, 58, 0.3);
    padding-top: clamp(22px, 3.5vw, 28px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(15px, 3vw, 25px);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-legal-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 146, 58, 0.4), transparent);
}

.footer-copyright {
    color: #b0b0b0;
    font-size: clamp(11px, 1.7vw, 13px);
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-copyright:hover {
    color: var(--accent);
}

.footer-legal-links {
    display: flex;
    gap: clamp(16px, 2.5vw, 20px);
    flex-wrap: wrap;
    align-items: center;
}

.footer-legal-links a {
    color: #b0b0b0;
    font-size: clamp(11px, 1.7vw, 13px);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.footer-legal-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--accent);
}

.footer-legal-links a:hover::before {
    width: 100%;
}


/* Responsive - Smooth Scaling (No Hard Breaks) */
@media (max-width: 768px) {
    /* On smaller screens: only adjust grid columns, keep layout structure */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-item {
        flex: 1 1 48%;
        min-width: 140px;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    /* Sidebar adjusts width naturally with flex-basis */
    .sidebar {
        min-width: clamp(150px, 30vw, 220px);
        padding: clamp(15px, 2vw, 20px) 0;
    }

    .menu-item {
        padding: clamp(10px, 1.5vw, 12px) clamp(12px, 2vw, 20px);
        font-size: clamp(11px, 1.8vw, 13px);
    }

    /* Login Card adjusts but doesn't hide */
    .login-card {
        padding: clamp(20px, 5vw, 40px);
        max-width: 100%;
    }

    .login-card h1 {
        font-size: clamp(20px, 5vw, 28px);
    }

    .data-table {
        font-size: clamp(11px, 1.5vw, 14px);
    }

    .data-table th, .data-table td {
        padding: clamp(8px, 1.5vw, 15px);
    }
}

/* Tablet Responsive (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-item {
        flex: 1 1 32%;
        min-width: 140px;
    }
}

/* ============================================
   DASHBOARD ENHANCEMENTS - KPI Cards, Charts, Activity Feed
   ============================================ */

/* KPI CARDS */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(42, 42, 42, 0.8) 100%);
    border: 1px solid #444;
    border-left: 4px solid transparent;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
}

.kpi-blue { border-left-color: #64b5f6; }
.kpi-red { border-left-color: #d4534e; }
.kpi-green { border-left-color: #2d9f6f; }
.kpi-gold { border-left-color: var(--accent); }

.kpi-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.kpi-icon {
    font-size: 32px;
}

.kpi-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
}

.kpi-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #b0b0b0;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.kpi-trend {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.kpi-trend.trend-up { color: #2d9f6f; }
.kpi-trend.trend-down { color: #d4534e; }
.kpi-trend.trend-neutral { color: #888; }

.kpi-secondary {
    font-size: 12px;
    color: #888;
}

/* SECTION TITLES */
.section-title {
    color: var(--accent);
    margin: 30px 0 20px 0;
    font-size: 16px;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

/* CHARTS GRID */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(42, 42, 42, 0.8) 100%);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
}

.chart-card h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 14px;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 15px;
}

.chart-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #888;
}

.chart-meta span strong {
    color: var(--accent);
    font-weight: 600;
}

/* ARTICLES TABLE */
.articles-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.articles-table tbody tr {
    border-bottom: 1px solid #333;
}

.articles-table tbody tr:hover {
    background: rgba(21, 32, 64, 0.3);
}

.articles-table tbody td {
    padding: 8px;
}

.articles-table tbody td:first-child {
    color: #B8923A;
    font-weight: 600;
}

.articles-table tbody td:nth-child(2) {
    text-align: right;
}

.articles-table tbody td:nth-child(3) {
    text-align: right;
    font-weight: 600;
}

/* ACTIVITY SECTION */
.activity-section {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(42, 42, 42, 0.8) 100%);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    font-size: 13px;
}

.activity-table th {
    background: rgba(21, 32, 64, 0.8);
    padding: 12px;
    text-align: left;
    color: var(--accent);
    font-weight: 600;
    border-bottom: 2px solid #444;
}

.activity-table td {
    padding: 12px;
    border-bottom: 1px solid #333;
}

.activity-table tr:hover {
    background: rgba(21, 32, 64, 0.3);
}

.timestamp {
    color: #888;
    font-size: 11px;
}

.action-icon {
    margin-right: 8px;
}

/* QUICK ACTIONS */
.quick-actions {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(42, 42, 42, 0.8) 100%);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.action-btn {
    background: #1a3a5f;
    border: 1px solid #2d4a6f;
    color: white;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
}

.action-btn:hover {
    background: #244564;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.action-btn .icon {
    font-size: 24px;
}

/* SYSTEM STATUS */
.system-status {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(42, 42, 42, 0.8) 100%);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
}

.status-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(21, 32, 64, 0.5);
    border-radius: 6px;
    font-size: 13px;
}

.status-dot {
    font-size: 16px;
}

.status-ok { color: #2d9f6f; }
.status-warn { color: #f2a223; }
.status-error { color: #d4534e; }

.status-name {
    font-weight: 600;
    min-width: 100px;
}

.status-detail {
    color: #888;
    font-size: 12px;
    flex: 1;
}

.health-bar {
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #2d9f6f, var(--accent));
    transition: width 1s ease;
}

.health-text {
    font-size: 12px;
    color: #888;
}

.health-text strong {
    color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 250px;
    }

    .action-btn {
        padding: 12px;
        font-size: 10px;
    }

    .activity-table {
        font-size: 11px;
    }

    .activity-table th,
    .activity-table td {
        padding: 8px;
    }

    .status-name {
        min-width: 80px;
    }
}
