/* =========================
   Dashboard Layout
========================= */
.navbar {
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Profile Menu */
.profile-menu {
    position: relative;
    display: inline-block;
}

.profile-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--color-white);
    transition: transform 0.3s ease;
}

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

.dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    list-style: none;
    width: 220px;
    display: none;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
    z-index: 2000;
}

.dropdown.show {
    display: flex;
}

.dropdown li {
    border-bottom: 1px solid #eee;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--color-dark);
    transition: background 0.3s ease;
}

.dropdown a:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

/* Sidebar */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 240px;
    background: var(--color-white);
    border-right: 1px solid #ddd;
    transition: all 0.3s ease;
    padding-top: 1rem;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin: 0.5rem 0;
}

.sidebar nav ul a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--color-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar nav ul a i {
    margin-right: 0.8rem;
}

.sidebar nav ul a:hover {
    background: var(--color-light);
    color: var(--color-primary);
    padding-left: 1.3rem;
}

/* Content */
.content {
    flex: 1;
    padding: 2rem;
    background: var(--color-light);
    animation: slideIn 0.5s ease;
}

.content h1 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .sidebar nav ul a {
        justify-content: center;
    }
}

.notice-box {
    margin: 30px 0;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
}

.notice-box strong {
    font-weight: 600;
}
