/* --- Header --- */
.top-bar {
    background: var(--white);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 100;
    position: fixed;
    top: 0;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 32px;
    color: var(--primary-purple);
}

.logo-text h1 {
    font-size: 18px;
    color: var(--primary-purple);
    font-weight: 700;
    text-transform: uppercase;
}

.logo-text span {
    font-size: 12px;
    color: var(--primary-orange);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    color: var(--text-muted);
    font-size: 18px;
    position: relative;
    transition: 0.3s;
}

.icon-btn:hover {
    color: var(--primary-purple);
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-orange);
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
}

.profile-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid #eee;
    padding-left: 20px;
}

.profile-text {
    text-align: right;
    display: none;
}

.profile-text small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-purple);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* --- Sidebar --- */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: #ecf0f1;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 90;
}

.sidebar nav ul {
    list-style: none;
    padding-top: 20px;
}

.sidebar nav li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #bdc3c7;
    text-decoration: none;
    transition: 0.3s;
    font-size: 15px;
}

.sidebar nav li a i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

.sidebar nav li:hover a,
.sidebar nav li.active a {
    color: var(--white);
    background-color: rgba(255,255,255,0.05);
    border-left: 4px solid var(--active-yellow);
}

.sidebar nav li.active a i {
    color: var(--active-yellow);
}

.sub-menu {
    display: none;
    list-style: none;
    padding-left: 20px;
}

.sub-menu li a {
    padding: 10px 25px;
    font-size: 14px;
    color: #7f8c8d;
}

.sub-menu li a i {
    width: 20px;
    margin-right: 10px;
}

.sub-menu li:hover a {
    color: var(--white);
    background-color: rgba(255,255,255,0.05);
}

/* --- Layout --- */
.layout-container {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 120px);
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
    transition: margin-left 0.3s ease;
    padding-bottom: 70px;
}

.page-title {
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--text-dark);
}

/* --- Footer --- */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: var(--white);
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid #eee;
    z-index: 200;
}

.site-footer .footer-left {
    flex: 1;
}

.site-footer .footer-center {
    flex: 1;
    text-align: center;
    font-weight: 700;
    color: var(--primary-purple);
}

.site-footer .footer-right {
    flex: 1;
    text-align: right;
    font-weight: 700;
    color: var(--primary-purple);
    background: rgba(111, 66, 193, 0.08);
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
    .profile-text { display: block; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .mobile-toggle {
        display: block;
    }
    .profile-text { display: none; }
}
