body {
    background: #f0f2f5;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
}

/* ===== FIX HEADER ALIGNMENT ===== */
.header-top .container.flex-between {
    flex-wrap: nowrap !important;
    align-items: center;
}

.header-top .logo img {
    width: 70px !important;
    height: 70px !important;
}

.header-top .header-search {
    min-width: 200px;
}

/* ===== ACCOUNT CONTAINER ===== */
.account-container {
    width: 90%;
    max-width: 1100px;
    display: flex;
    margin: 30px auto;
    gap: 24px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== LEFT SIDEBAR MENU ===== */
.account-menu {
    width: 260px;
    min-width: 260px;
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.avatar-box {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.avatar-box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #b92222;
    box-shadow: 0 4px 15px rgba(185, 34, 34, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar-box img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(185, 34, 34, 0.3);
}

.avatar-box input[type="file"] {
    display: block;
    margin: 10px auto 0;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
}

.account-menu h3 {
    font-size: 1.1rem;
    color: #222;
    margin: 8px 0 18px;
    font-weight: 700;
}

.account-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-menu li {
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.25s ease;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-menu li:hover {
    background: #fff0f0;
    color: #b92222;
    transform: translateX(4px);
}

.account-menu li.active {
    color: #b92222;
    background: linear-gradient(135deg, #fff0f0, #ffe6e6);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(185, 34, 34, 0.1);
}

.account-menu li.active::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #b92222;
    border-radius: 4px;
    margin-right: 4px;
}

/* Logout button in sidebar */
.account-menu > button#logoutBtn {
    background: linear-gradient(135deg, #b92222, #d63031);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    margin-top: 24px;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(185, 34, 34, 0.2);
}

.account-menu > button#logoutBtn:hover {
    background: linear-gradient(135deg, #a01d1d, #c0392b);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(185, 34, 34, 0.3);
}

/* ===== RIGHT CONTENT AREA ===== */
.account-content {
    flex: 1;
    background: #fff;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* ===== CONTENT BOX (each section) ===== */
.content-box {
    padding: 32px 36px;
}

.content-box h2 {
    font-size: 1.5rem;
    color: #222;
    margin: 0 0 4px 0;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.content-box > p {
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 24px 0;
}

/* ===== PROFILE TABLE LAYOUT (like image 2) ===== */
.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.profile-table tr:last-child {
    border-bottom: none;
}

.profile-table tr:hover {
    background: #fafafa;
}

.profile-table td {
    padding: 14px 12px;
    vertical-align: middle;
    font-size: 0.95rem;
}

.profile-table td.profile-label {
    width: 160px;
    font-weight: 700;
    color: #333;
    text-align: right;
    padding-right: 20px;
    white-space: nowrap;
}

.profile-table td.profile-value {
    color: #555;
}

.profile-table td.profile-value input,
.profile-table td.profile-value select {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    transition: all 0.25s ease;
    box-sizing: border-box;
    outline: none;
}

.profile-table td.profile-value input:focus,
.profile-table td.profile-value select:focus {
    border-color: #b92222;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(185, 34, 34, 0.1);
}

.profile-table td.profile-value input[readonly] {
    background: #f0f0f0;
    color: #888;
    cursor: not-allowed;
}

/* ===== SECTION HEADER (red title like image 2) ===== */
.section-title-red {
    color: #b92222;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 12px 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-top: 8px;
}

/* ===== AVATAR CELL IN PROFILE TABLE ===== */
.profile-avatar-cell {
    text-align: center;
    padding: 16px;
    vertical-align: top;
}

.profile-avatar-cell img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 8px;
    display: block;
}

.profile-avatar-cell .avatar-change-text {
    display: block;
    color: #b92222;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 6px;
    font-weight: 600;
}

.profile-avatar-cell .avatar-size-hint {
    display: block;
    color: #999;
    font-size: 0.75rem;
    margin-top: 4px;
    font-style: italic;
}

/* ===== SAVE BUTTON ===== */
.save-btn-wrapper {
    text-align: center;
    padding: 24px 0 8px 0;
}

.save-btn {
    background: transparent;
    color: #b92222;
    padding: 12px 40px;
    border-radius: 25px;
    cursor: pointer;
    border: 2px solid #b92222;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background: #b92222;
    color: #fff;
    box-shadow: 0 4px 16px rgba(185, 34, 34, 0.3);
    transform: translateY(-2px);
}

/* ===== FALLBACK: label/input in non-profile sections ===== */
.content-box label {
    font-weight: 700;
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    color: #333;
    font-size: 0.95rem;
}

.content-box input[type="text"],
.content-box input[type="email"],
.content-box input[type="password"],
.content-box input[type="date"],
.content-box select {
    width: 100%;
    max-width: 500px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    transition: all 0.25s ease;
    box-sizing: border-box;
    outline: none;
    margin-bottom: 4px;
}

.content-box input:focus,
.content-box select:focus {
    border-color: #b92222;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(185, 34, 34, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .account-container {
        flex-direction: column;
        width: 95%;
        gap: 16px;
    }

    .account-menu {
        width: 100%;
        min-width: unset;
        position: static;
    }

    .content-box {
        padding: 20px 16px;
    }

    .profile-table td.profile-label {
        text-align: left;
        display: block;
        width: 100%;
        padding-bottom: 4px;
    }

    .profile-table td.profile-value {
        display: block;
        width: 100%;
        padding-top: 0;
    }

    .profile-table td.profile-value input,
    .profile-table td.profile-value select {
        max-width: 100%;
    }

    .profile-avatar-cell {
        display: block;
        text-align: center;
        width: 100%;
    }
}
