body {
    /* font-family: Arial, sans-serif; */
    margin: 0;
    background: #f5f5f5;
    color: #333;
}

.container {
    margin: 0 auto;
    display: flex;
    gap: 20px;
}


.right-panel {
    flex: 1;
    padding-top: 20px;
}

h2 {
    color: #ff3023;
    font-size: 24px;
    margin-bottom: 15px;
}

p {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
}

.card {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #d3d3d3;
    /* Default border color, overridden by specific classes */
}

.card h3 {
    margin: 0 0 10px;
    color: #444;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.card p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.card .icon {
    margin-right: 10px;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f0f0f0;
}

/* Icon colors */
.phone-icon {
    color: #ff3023;
    /* Green for Phone */
}

.email-icon {
    color: #ff3023;
    /* Blue for Email */
}

.location-icon {
    color: #ff3023;
    /* Red for Location */
}

.clock-icon {
    color: #ff3023;
    /* Yellow for Clock */
}

/* Match border-left color to icon color */
.phone-card {
    border-left-color: #ff3023;
    /* Green for Phone */
}

.email-card {
    border-left-color: #ff3023;
    /* Blue for Email */
}

.location-card {
    border-left-color: #ff3023;
    /* Red for Location */
}

.clock-card {
    border-left-color: #ff3023;
    /* Yellow for Clock */
}

.form {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form h2 {
    margin: -14px -15px 20px;
    /* Consistent spacing below header */
    font-size: 20px;
    background: #ed1c24c7;
    /* Exact gradient from image */
    color: white;
    padding: 12px 15px;
    /* Increased padding for a fuller look */
    /* text-align: center; */
    position: relative;
    font-weight: 600;
    /* Bolder text to match emphasis */
    text-transform: uppercase;
    /* Uppercase to match image text */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 0;
}

.form label {
    display: block;
    font-size: 14px;
    color: #444;
    margin-bottom: 5px;
    font-weight: 500;
}

.form input,
.form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #f9f9f9;
    transition: border-color 0.3s;
}

.form input:focus,
.form textarea:focus {
    border-color: #1a73e8;
    outline: none;
}

.form textarea {
    height: 100px;
    resize: vertical;
}

.form button {
    background: #ed1c24c7;
    color: white;
    padding: 10px 20px;
    /* nhỏ lại */
    border: none;
    border-radius: 15px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
    position: relative;

    width: auto;
    /* để vừa nội dung hoặc bạn có thể đặt cụ thể như 200px */
    display: block;
    margin: 0 auto;
    /* căn giữa */
}


.form button:hover {
    opacity: 0.9;
}

.map-contact {
    background-color: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* Tùy chỉnh theo nhu cầu */
    margin-top: 15px;
}

.map-contact h3 {
    margin: -16px -15px 5px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 18px;
    background: #ed1c24c7;
    color: white;
    padding: 12px 15px;
    text-align: center;
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.map-contact h3 i {
    font-size: 18px;
}

.map-contact #map-contact {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.map-contact iframe {
    width: 100%;
    height: 300px;
    border: 0;
    display: block;
}

.social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social a {
    text-decoration: none;
    padding: 10px 15px;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s;
}

.social a i {
    margin-right: 8px;
    /* Space between icon and text */
    font-size: 18px;
    /* Adjust icon size */
}

.social .facebook {
    background: #3b5998;
}

.social .youtube {
    background: #ff0000;
}

.social .zalo {
    background: #0084ff;
}

.social a:hover {
    opacity: 0.9;
}

/* modal */
.modal-content {
    background-color: white;
    padding: 5px;
    border-radius: 30px;
    width: 565px;
    max-width: fit-content;
}

.modal-header {
    display: grid;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-content img {
    margin-left: auto;
    margin-right: auto;
    max-width: 50%;
    height: auto;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: .75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(.3rem - 1px);
    border-bottom-left-radius: calc(.3rem - 1px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.form-row>.col,
.form-row>[class*=col-] {
    padding-right: 5px;
    padding-left: 5px;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.input-group>.custom-file,
.input-group>.custom-select,
.input-group>.form-control,
.input-group>.form-control-plaintext {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    margin-bottom: 0;
}

.form-control {
    margin: 0;
}

label {
    display: inline-block;
    margin-bottom: .5rem;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.select-wrapper {
    flex: 0 0 25%;
    /* tương đương col-3 */
}

.input-wrapper {
    flex: 1;
    /* tương đương col-9 */
}

.custom-select,
.form-control {
    height: 50px;
    width: 100%;
    padding: 8px 12px;
    font-size: 16px;
}

.modal-button-register {
    background-color: #ed1c24c7;
    color: white;
    width: 100%;
    border-radius: 999px;
    height: 50px;
}


@-webkit-keyframes mui-auto-fill {
    from {
        display: block;
    }
}

@keyframes mui-auto-fill {
    from {
        display: block;
    }
}

@-webkit-keyframes mui-auto-fill-cancel {
    from {
        display: block;
    }
}

@keyframes mui-auto-fill-cancel {
    from {
        display: block;
    }
}

.form-row {
    display: flex;
    gap: 10px;
    /* Tùy chỉnh khoảng cách giữa 2 ô */
    margin-bottom: 15px;
}

.form-row .col-3,
.form-row .col-9 {
    flex: none;
}

.form-row .col-3 {
    width: 25%;
}

.form-row .col-9 {
    width: 75%;
}

.form-row select,
.form-row input {
    width: 100%;
    height: 50px;
    padding: 10px;
    box-sizing: border-box;
}

.modal-dialog {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 500px;
}

/* Form Container Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group-label-form {
    display: table;
    font-size: 14px;
    color: white;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Form Row Layout */
.form-row {
    display: ruby;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.form-row .col-3,
.form-row .col-9 {
    flex: none;
}

.form-row .col-3 {
    width: 25%;
}

.form-row .col-9 {
    width: 75%;
}

/* Input and Select Styling */
.custom-select,
.form-control {
    height: 50px;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    transition: border-color 0.3s ease;
}

.custom-select:focus,
.form-control:focus {
    border-color: #ed1c24c7;
    /* Matches modal-button-register color */
    outline: none;
    box-shadow: 0 0 5px rgba(237, 28, 36, 0.3);
}

.custom-select {
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

/* Input Group Styling */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-group-append {
    margin-left: -1px;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 8px 8px 0;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-group-text:hover {
    background-color: #e9ecef;
}

.input-group-text i {
    font-size: 18px;
    color: #666;
}

/* Checkbox Styling */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
}

.form-check-label {
    font-size: 14px;
    color: #333;
}

/* Forget Password Link */
.forget-password {
    font-size: 14px;
    color: #ed1c24c7;
    /* Matches sign-up link color */
    cursor: pointer;
}

.forget-password:hover {
    text-decoration: none;
    color: #c7161e;
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
}

.form-control:invalid+.invalid-feedback,
.form-control:invalid~.invalid-feedback {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .form-row .col-3,
    .form-row .col-9 {
        width: 100%;
    }

    .custom-select,
    .form-control {
        font-size: 14px;
    }
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 1.0rem .75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

.form-check {
    display: flex;
    flex-direction: row;
    -webkit-box-pack: justify;
    justify-content: space-between;
}

input[type=checkbox], input[type=radio] {
    box-sizing: border-box;
    padding: 0;
}

.form-check-input {
    position: absolute;
    margin-top: .0.19rem;
    margin-left: -15.25rem;
}

button, input {
    overflow: visible;
}

button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.form-row-form {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.body-2-medium,
.body-2-medium-black {
    font-family: Be Vietnam Pro;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 18px;
}

/* 30/7/2025 */
/* Reset default margins and paddings */
.left-panel {
    max-width: 350px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    box-sizing: border-box;
}

/* Heading styles */
.left-panel h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff0000;
    padding-bottom: 5px;

}

/* Description text */
.left-panel>p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Card styles */
.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 1.2rem;
    color: #ed1c24c7;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.card h3 i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.card p {
    font-size: 0.95rem;
    color: #444;
    margin: 5px 0;
}




/* Social media links */
.social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.social a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    color: #fff;
    transition: opacity 0.3s ease;
}

.social a:hover {
    opacity: 0.9;
}

.social .facebook {
    background-color: #3b5998;
}

.social .youtube {
    background-color: #ff0000;
}

.social .zalo {
    background-color: #0068ff;
}

.social a i {
    margin-right: 5px;
}

/* sidebar */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background-color: white;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 0;
    z-index: 9999;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    border-left: 1px solid #e0e0e0;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    min-height: 60px;
    background-color: #f8f9fa;
}

.sidebar-open {
    width: 270px;
}

.sidebar li {
    color: #333;
}

dl, ol, ul {
    margin-top: 0;
    /* padding-left: initial; */
    padding-right: 27px;
}

.sidebar .custom-list {
    padding-top: 20px;
    list-style: none;
}

.custom-list li {
    margin-bottom: 30px;
    margin-left: 50px;
}

.sidebar a {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.5;
    color: black;
}



/* Sidebar styling */
.custom-list1 li a {

    font-size: 20px;
    /* Sets a smaller font size */

}

.custom-list1 li {
    margin-bottom: 15px;
    margin-left: 50px;
    /* Adds 30px gap between each list item */
}

.custom-list li {
    margin-bottom: 30px;
    margin-left: 50px;
    /* Adds 30px gap between each list item */
}

.custom-list li:last-child {
    margin-bottom: 0;
    /* Removes margin from the last item */
}

.custom-list li a:hover {
    color: #ff0000;
    /* Turns the text orange on hover */
}

.custom-list1 li a:hover {
    color: #ff0000;
    /* Turns the text orange on hover */
}

.close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 50%;
    background-color: transparent;
}

.close-btn i {
    font-size: 20px;
}

.close-btn:hover {
    color: #e67e22;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Sidebar language dropdown */
.sidebar .lang-select-wrapper {
    margin-left: 50px;
    margin-top: 20px;
    position: relative;
}

.sidebar .lang-select-wrapper .MuiSelect-select {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #f9f9f9;
    width: fit-content;
}

.sidebar .lang-select-wrapper .language-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 100px;
}

.sidebar .lang-select-wrapper:hover .language-options,
.sidebar .lang-select-wrapper .language-options:hover {
    display: block;
}

.sidebar .lang-select-wrapper .language-options a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.sidebar .lang-select-wrapper .language-options a:hover {
    background: #f5f5f5;
}

.sidebar .lang-select-wrapper .language-options a svg {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

/* modal bảo trì */
.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #ed1c24c7;
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 15px;
}

/* Label và nút */
.btn-upload .upload-icon {
    color: white;
    font-size: 18px;
    display: inline-block;
}

.upload-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

/* Container preview scroll ngang */
#preview {
    margin-top: 12px;
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #999 transparent;
}

#preview::-webkit-scrollbar {
    height: 8px;
}

#preview::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 4px;
}

/* Mỗi khối ảnh */
.preview-image {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    display: inline-block;
    /* ✅ Fix chiều rộng bị dư */
}

/* Ảnh */
.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #eee;
    max-width: fit-content;
}

/* Nút X */
.preview-image .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ff3333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    line-height: 18px;
    text-align: center;
    padding: 0;
}

/* 4/8/2025 */

.language-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.language-dropdown > a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.language-dropdown > a svg {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    flex-shrink: 0;
}

.language-dropdown > a .lang-text {
    line-height: 1;
}

.language-options {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 120px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
    border-radius: 4px;
    overflow: hidden;
}

.language-options a {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.language-options a:hover {
    background-color: #f0f0f0;
}

.language-options svg {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.language-dropdown.active .language-options {
    display: block;
}

/* Hiệu ứng fade + zoom nhẹ */
.animate-change {
    animation: fadeZoom 0.3s ease;
}

@keyframes fadeZoom {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .sidebar-open {
        width: 280px;
        max-width: 90vw;
    }

    .sidebar {
        display: block;
    }

    .sidebar li {
        color: #333;
    }

    .sidebar a {
        color: #333;
    }

    dl, ol, ul {
        margin-top: 0;
        padding-left: initial;
        padding-right: 27px;
    }

}