/* --- BIẾN TOÀN CỤC --- */
:root {
    --mau-nen: #1A1A1D;
    --mau-thanh-ngang: #24242B;
    --mau-tim: #8B5CF6;
    --mau-chu: #FFFFFF;
    --primary-color: #8b5cf6;
    --bg-card: #2b2d31;
    --text-dim: #b5bac1;
    --text-main: #f2f3f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--mau-nen);
    color: white;
    overflow-x: hidden;
}

/* --- HEADER ĐỒNG BỘ --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: var(--bg-card);
    border-bottom: 1px solid #111214;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 75px;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

.logo a {
    text-decoration: none;
    color: white;
    line-height: 1.1;
    display: block;
}

.logo span {
    color: var(--primary-color);
    display: block;
    font-size: 13px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-container {
    display: flex;
    align-items: center;
    background: #111214;
    border-radius: 20px;
    padding: 5px 12px;
    border: 1px solid #444;
}

#global-search {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 140px;
    font-size: 13px;
}

#btn-search-trigger {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
}

.mini-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--mau-tim);
    object-fit: cover;
}

.user-top-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--mau-chu);
}

/* --- MAIN LAYOUT --- */
.main-container {
    display: flex;
    min-height: calc(100vh - 75px);
}

/* --- SIDEBAR CHUNG --- */
.sidebar,
.filter-sidebar {
    width: 260px;
    background-color: var(--mau-nen);
    border-right: 1px solid #333;
    padding: 20px 0;
    flex-shrink: 0;
}

.menu-label,
.filter-label {
    color: #666;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 25px;
    letter-spacing: 1px;
}

.sidebar ul {
    list-style: none;
    padding: 0 15px;
}

.sidebar ul li {
    color: #ccc;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    margin-bottom: 5px;
    border-radius: 8px;
}

.sidebar ul li i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.sidebar ul li:hover {
    background-color: #2D2D32;
    color: white;
}

.sidebar ul li.active {
    background-color: var(--mau-tim);
    color: white;
    font-weight: bold;
}

.sidebar ul li.logout {
    color: #ff4d4d;
    margin-top: 20px;
    border: 1px solid #331a1a;
}

/* --- NỘI DUNG TRANG HỒ SƠ --- */
.main-content {
    flex: 1;
    padding: 30px;
    background-color: #121215;
}

.profile-header {
    background-color: #1A1A1D;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    border: 1px solid #333;
}

.large-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mau-tim);
}

.role-tag {
    background: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #aaa;
    margin-left: 10px;
}

.sub-info {
    display: flex;
    gap: 15px;
    color: #888;
    font-size: 13px;
    margin-top: 8px;
}

.profile-form-container {
    background: #1A1A1D;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
}

.form-tabs {
    display: flex;
    border-bottom: 1px solid #333;
}

.tab-btn {
    background: none;
    border: none;
    color: #888;
    padding: 15px 20px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    color: var(--mau-tim);
    border-bottom: 2px solid var(--mau-tim);
}

.form-body {
    padding: 25px;
    max-width: 500px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    background: #121215;
    border: 1px solid #333;
    border-radius: 6px;
    color: white;
    outline: none;
}

.btn-save {
    background: var(--mau-tim);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* --- FOOTER ĐỒNG BỘ --- */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid #111214;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 40px 5%;
}

.footer-logo {
    font-size: 28px;
    font-weight: 900;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-info h3 {
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--mau-tim);
    display: inline-block;
}

.footer-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-tags a {
    background: #1a1b1e;
    border: 1px solid #444;
    padding: 4px 10px;
    border-radius: 4px;
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
}

.footer-contact {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom {
    padding: 15px 5%;
    text-align: left;
    font-size: 12px;
    color: #555;
    background-color: #111214;
}