/* ===================================
   Admin Panel Styles
   =================================== */

/* Admin Login Page */
.admin-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 15px;
}

.login-header h1 {
    color: #333;
    margin-bottom: 5px;
}

.login-header p {
    color: #666;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.login-form label i {
    color: #667eea;
    margin-right: 5px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.login-form input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.login-footer .text-warning {
    color: #ff9800;
    font-weight: 600;
}

.login-footer a {
    display: inline-block;
    margin-top: 15px;
    color: #667eea;
    text-decoration: none;
}

/* Admin Body Layout */
.admin-body {
    background: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    flex-shrink: 0;
    overflow-y: auto;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
}

.admin-nav {
    padding: 20px 0;
}

.nav-section {
    padding: 15px 20px 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item i {
    width: 25px;
    margin-right: 12px;
    font-size: 1.1rem;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: #667eea;
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    border-left-color: #667eea;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.sidebar-footer a {
    display: block;
    padding: 10px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.sidebar-footer a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-footer a i {
    margin-right: 8px;
}

/* Main Content Area */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: white;
    padding: 15px 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar-toggle:hover {
    background: #f0f0f0;
}

.admin-topbar h1 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 25px;
}

.admin-user i {
    font-size: 1.5rem;
    color: #667eea;
}

.admin-content {
    padding: 25px;
    flex: 1;
    overflow-y: auto;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    display: flex;
    gap: 20px;
}

.stat-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 2rem;
    color: white;
}

.stat-content h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.stat-content a {
    display: inline-block;
    margin-top: 10px;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.stat-content a:hover {
    color: #764ba2;
    padding-left: 5px;
}

/* Dashboard Content Layout */
.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.admin-card h2,
.admin-card h3 {
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card h2 i,
.admin-card h3 i {
    color: #667eea;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.activity-item:hover {
    background: #e9ecef;
}

.activity-item i {
    font-size: 1.5rem;
    color: #667eea;
    width: 30px;
    flex-shrink: 0;
}

.activity-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.activity-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.activity-item .time {
    font-size: 0.85rem;
    color: #999;
    display: block;
    margin-top: 5px;
}

/* Pending List */
.pending-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pending-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.pending-item i {
    font-size: 1.3rem;
}

.pending-item span {
    flex: 1;
    color: #333;
}

.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }
.text-success { color: #28a745; }

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.action-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

/* Dashboard */
.dashboard-page {
    --dashboard-ink: #17233b;
    --dashboard-muted: #718096;
    --dashboard-line: #e8edf4;
    max-width: 1440px;
    margin: 0 auto;
    color: var(--dashboard-ink);
}

.dashboard-welcome {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 200px;
    margin-bottom: 34px;
    padding: 36px 42px;
    overflow: hidden;
    border: 1px solid #e0e9fb;
    border-radius: 18px;
    background: linear-gradient(115deg, #fff 0%, #f5f8ff 62%, #edf3ff 100%);
    box-shadow: 0 8px 28px rgba(37, 58, 94, 0.06);
}

.dashboard-welcome-copy,
.dashboard-date {
    position: relative;
    z-index: 1;
}

.dashboard-eyebrow,
.dashboard-section-kicker {
    display: inline-block;
    color: #6174ae;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.dashboard-eyebrow {
    margin-bottom: 12px;
}

.dashboard-eyebrow i {
    margin-right: 5px;
    color: #7b61c9;
}

.dashboard-welcome h2 {
    margin: 0 0 9px;
    color: #17233b;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.dashboard-welcome-copy p {
    max-width: 570px;
    margin: 0;
    color: #68758b;
    font-size: 0.98rem;
    line-height: 1.65;
}

.dashboard-date {
    display: grid;
    gap: 8px;
    min-width: 190px;
    padding: 16px 19px;
    border: 1px solid rgba(211, 222, 245, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
}

.dashboard-date span {
    color: #8491a7;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.dashboard-date span i {
    margin-right: 5px;
    color: #667eea;
}

.dashboard-date strong {
    color: #253451;
    font-size: 0.9rem;
}

.dashboard-welcome-mark {
    position: absolute;
    right: 205px;
    bottom: -52px;
    color: rgba(103, 126, 200, 0.055);
    font-size: 13rem;
    line-height: 1;
    pointer-events: none;
}

.dashboard-section {
    margin-bottom: 34px;
}

.dashboard-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-section-heading h2,
.dashboard-panel h2 {
    margin: 5px 0 0;
    color: #202d45;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.dashboard-section-heading > p {
    margin: 0 0 2px;
    color: var(--dashboard-muted);
    font-size: 0.88rem;
}

.dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-shortcut {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 110px;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--dashboard-line);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(37, 58, 94, 0.035);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dashboard-shortcut:hover {
    transform: translateY(-3px);
    border-color: #d5def0;
    box-shadow: 0 12px 24px rgba(37, 58, 94, 0.09);
}

.dashboard-shortcut:focus-visible,
.dashboard-panel a:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.45);
    outline-offset: 3px;
}

.dashboard-shortcut-icon,
.dashboard-panel-icon {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    font-size: 1.15rem;
}

.dashboard-shortcut-copy {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 5px;
}

.dashboard-shortcut-copy strong {
    color: #27344d;
    font-size: 0.94rem;
    font-weight: 700;
}

.dashboard-shortcut-copy small {
    color: #7a879a;
    font-size: 0.78rem;
    line-height: 1.45;
}

.dashboard-shortcut-arrow {
    flex: 0 0 auto;
    color: #a0aabd;
    font-size: 0.8rem;
    transition: transform 180ms ease, color 180ms ease;
}

.dashboard-shortcut:hover .dashboard-shortcut-arrow {
    transform: translateX(3px);
    color: #5269bd;
}

.dashboard-shortcut-blue .dashboard-shortcut-icon { background: #edf3ff; color: #4f70cc; }
.dashboard-shortcut-violet .dashboard-shortcut-icon { background: #f2edff; color: #7957bd; }
.dashboard-shortcut-amber .dashboard-shortcut-icon { background: #fff5e5; color: #c68522; }
.dashboard-shortcut-green .dashboard-shortcut-icon { background: #eaf7f0; color: #3b9a69; }
.dashboard-shortcut-rose .dashboard-shortcut-icon { background: #fff0f1; color: #c55e70; }
.dashboard-shortcut-slate .dashboard-shortcut-icon { background: #eef1f5; color: #64748b; }

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
    gap: 18px;
}

.dashboard-panel {
    padding: 25px 27px;
    border: 1px solid var(--dashboard-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(37, 58, 94, 0.035);
}

.dashboard-panel-intro {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    background: linear-gradient(120deg, #fff 0%, #f8f9ff 100%);
}

.dashboard-panel-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    background: #f0edff;
    color: #7957bd;
}

.dashboard-panel-intro > div {
    padding-top: 2px;
}

.dashboard-panel-intro p {
    max-width: 540px;
    margin: 10px 0 16px;
    color: var(--dashboard-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.dashboard-primary-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #5369bd;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-primary-link:hover {
    color: #384f9e;
}

.dashboard-panel-links {
    padding: 22px 24px 12px;
}

.dashboard-panel-links > .dashboard-section-kicker {
    margin-bottom: 9px;
}

.dashboard-panel-links > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f5;
    color: #39465d;
    font-size: 0.85rem;
    text-decoration: none;
}

.dashboard-panel-links > a:last-child {
    border-bottom: 0;
}

.dashboard-panel-links > a span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-panel-links > a span i {
    width: 17px;
    color: #7384c1;
    text-align: center;
}

.dashboard-panel-links > a > i {
    color: #a3adbd;
    font-size: 0.7rem;
}

.dashboard-panel-links > a:hover {
    color: #5369bd;
}

@media (max-width: 1100px) {
    .dashboard-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-welcome {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        padding: 27px 25px;
    }

    .dashboard-date {
        min-width: min(100%, 260px);
    }

    .dashboard-welcome-mark {
        right: 15px;
        bottom: 20px;
        font-size: 8rem;
    }

    .dashboard-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .dashboard-shortcuts {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .dashboard-shortcut {
        min-height: 94px;
        padding: 16px;
    }

    .dashboard-panel {
        padding: 21px;
    }

    .dashboard-panel-intro {
        gap: 12px;
    }
}

/* Alerts */
.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        left: -260px;
        transition: left 0.3s;
        z-index: 1000;
        height: 100vh;
    }
    
    .admin-sidebar.active {
        left: 0;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
