/* ========================================= */
/* Dashboard Specific Styles */
/* ========================================= */

body {
    background-color: var(--bg-color);
    margin: 0;
    overflow-x: hidden;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --- Sidebar --- */
.dashboard-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    z-index: 50;
    transition: transform 0.3s ease;
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    text-decoration: none;
}

.dashboard-logo img {
    height: 32px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.1) 0%, rgba(254, 225, 64, 0.1) 100%);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.nav-item svg {
    color: inherit;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-item:hover svg,
.nav-item.active svg {
    opacity: 1;
}

.sidebar-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Main Content --- */
.dashboard-main {
    flex-grow: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem 3rem;
    background: radial-gradient(circle at top right, rgba(250, 112, 154, 0.05) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(254, 225, 64, 0.05) 0%, transparent 40%);
}

/* --- Topbar --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.header-greeting h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: white;
}

.header-greeting p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary-color);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Dashboard Grid Content --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.grid-col-8 {
    grid-column: span 8;
}

.grid-col-4 {
    grid-column: span 4;
}

.grid-col-12 {
    grid-column: span 12;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.card-action {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Quick Stats --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-purple {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.icon-pink {
    background: linear-gradient(135deg, #C30E6E 0%, #8B5CF6 100%);
}

.icon-blue {
    background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: white;
}

.stat-info p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* --- List Items --- */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-list-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    text-decoration: none;
}

.event-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.item-date {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}

.item-date .day {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.item-date .month {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
}

.item-details {
    flex-grow: 1;
}

.item-details h4 {
    color: white;
    margin: 0 0 0.25rem 0;
    font-size: 1.05rem;
}

.item-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.item-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.item-action {
    color: var(--text-muted);
}

.item-action svg {
    transition: transform 0.3s ease;
}

.event-list-item:hover .item-action svg {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Badge variants */
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-upcoming {
    background: rgba(0, 198, 251, 0.1);
    color: #00c6fb;
}

.status-past {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .grid-col-8,
    .grid-col-4 {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }

    .dashboard-main {
        margin-left: 0;
        padding: 1.5rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}
