/* ===================================
   ADMIN PANEL STYLES
   =================================== */

/* Admin Body Layout */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

/* ===================================
   SIDEBAR
   =================================== */

.admin-sidebar {
    width: 280px;
    background: #1e293b;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: width 0.3s ease;
}

.admin-sidebar.collapsed {
    width: 70px;
}

.admin-sidebar__header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-sidebar__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.admin-sidebar__logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.admin-sidebar.collapsed .admin-sidebar__logo span {
    display: none;
}

.admin-sidebar__toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.admin-sidebar__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Navigation */
.admin-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.admin-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.admin-nav__link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.admin-nav__link--active {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-left: 3px solid #3b82f6;
}

.admin-nav__link svg {
    min-width: 20px;
    min-height: 20px;
}

.admin-sidebar.collapsed .admin-nav__link span {
    display: none;
}

.admin-nav__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 16px 20px;
}

/* ===================================
   MAIN CONTENT
   =================================== */

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 32px;
    transition: margin-left 0.3s ease;
}

.admin-sidebar.collapsed ~ .admin-main {
    margin-left: 70px;
}

/* Header */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.admin-header__title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.admin-header__user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.admin-header__avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* ===================================
   STATS SECTION
   =================================== */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card__icon--primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card__icon--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.stat-card__icon--warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.stat-card__icon--info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.stat-card__content {
    flex: 1;
}

.stat-card__title {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.stat-card__value {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.stat-card__change {
    font-size: 13px;
    color: #64748b;
}

.stat-card__change--positive {
    color: #10b981;
}

/* ===================================
   SECTIONS
   =================================== */

.admin-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-section__title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.quick-action-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.quick-action-card svg {
    color: #3b82f6;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    transition: background 0.2s;
}

.activity-item:hover {
    background: #f1f5f9;
}

.activity-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-item__icon--certificate {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.activity-item__icon--enrollment {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.activity-item__icon--post {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.activity-item__icon--course {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.activity-item__content {
    flex: 1;
}

.activity-item__message {
    font-size: 14px;
    color: #1e293b;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.activity-item__time {
    font-size: 13px;
    color: #64748b;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-main {
        padding: 20px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .admin-header__title {
        font-size: 24px;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card__value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
}
