/* Admin Panel Premium Redesign - Glassmorphism & Modern UI */

.admin-dashboard-modern {
    padding: 40px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(30, 41, 59, 0.4) 100%);
    min-height: 100vh;
}

.dashboard-header {
    margin-bottom: 48px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-radius: 24px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(10px);
}

.dashboard-header h1 {
    font-size: 3rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.125rem;
    font-weight: 400;
}

/* Premium Stats Grid */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card-modern {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.6) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    gap: 24px;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3), 0 0 20px rgba(124, 58, 237, 0.2);
}

.stat-card-modern:hover::before {
    opacity: 1;
}

.stat-icon-modern {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: white;
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.4);
    position: relative;
    z-index: 1;
}

.stat-details {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-value-modern {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label-modern {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
}

.stat-change {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Premium Quick Actions */
.admin-quick-actions {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.6) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 24px;
    padding: 36px;
    margin-bottom: 32px;
}

.admin-quick-actions h3 {
    margin-bottom: 24px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.quick-action-btn {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-action-btn:hover {
    border-color: transparent;
    transform: translateY(-4px);
    color: white;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.4);
}

.quick-action-btn:hover::before {
    opacity: 1;
}

.quick-action-btn i {
    font-size: 2.25rem;
    position: relative;
    z-index: 1;
}

.quick-action-btn span {
    position: relative;
    z-index: 1;
    font-weight: 600;
}

/* Premium Recent Activity */
.admin-recent-activity {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.6) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 24px;
    padding: 36px;
}

.admin-recent-activity h3 {
    margin-bottom: 24px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.activity-item-modern {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-item-modern:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.activity-icon-modern {
    font-size: 1.75rem;
    color: #a78bfa;
}

.activity-content-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.activity-content-modern strong {
    color: white;
    font-weight: 600;
}

.activity-time-modern {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* Premium Announcement Cards */
.announcement-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.6) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.announcement-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #7c3aed 0%, #a78bfa 100%);
}

.announcement-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.announcement-card.announcement-info::before {
    background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%);
}

.announcement-card.announcement-warning::before {
    background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 100%);
}

.announcement-card.announcement-success::before {
    background: linear-gradient(180deg, #10b981 0%, #34d399 100%);
}

.announcement-card.announcement-error::before {
    background: linear-gradient(180deg, #ef4444 0%, #f87171 100%);
}

.announcement-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.announcement-icon {
    font-size: 1.75rem;
    color: #a78bfa;
}

.announcement-info {
    flex: 1;
}

.announcement-info h4 {
    margin-bottom: 6px;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

.announcement-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.announcement-body {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    padding-left: 48px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    border-color: transparent;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Admin Announcement Modal */
.admin-announcement-modal {
    max-width: 700px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-dashboard-modern {
        padding: 24px;
    }

    .dashboard-header {
        padding: 24px;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .stats-grid-modern {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card-modern {
        flex-direction: column;
        text-align: center;
    }

    .announcement-body {
        padding-left: 0;
        margin-top: 12px;
    }
}

/* Premium Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.1) 0%, rgba(167, 139, 250, 0.2) 50%, rgba(124, 58, 237, 0.1) 100%);
    background-size: 1000px 100%;
}