/* Vibe neon hacker */
body {
    background-size: cover;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Lớp phủ đen mờ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Màu đen mờ, chỉnh alpha tùy thích */
    z-index: -1; /* Lớp nền dưới nội dung */
}

.neon {
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff;
    color: #0ff;
}

.neon-hover:hover {
    box-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
    transition: all 0.3s ease;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    background-image: url('../../public/images/6836d399803cd_bg-chat.webp');
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
}

h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 20px;
}

a {
    color: #0ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Style cho trang login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-box {
    background: #1a1a3d;
    padding: 40px;
    border: 2px solid #0ff;
    box-shadow: 0 0 20px #0ff;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.login-box h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.neon.zone{
    font-size: 1.5em;
}
.slogan.zone{
    font-size: 25px;
}
/* Hiệu ứng nhấp nháy chữ khi hover */
.login-box h1:hover {
    animation: flicker 0.5s infinite alternate;
}

@keyframes flicker {
    0% { opacity: 1; text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff; }
    100% { opacity: 0.6; text-shadow: 0 0 2px #0ff, 0 0 5px #0ff; }
}

/* Style cho slogan */
.slogan {
    font-size: 1.2rem;
    color: #00ccff;
    text-shadow: 0 0 5px #00ccff, 0 0 10px #00ccff;
    margin-bottom: 20px;
}

.login-box input {
    width: 94%;
    padding: 10px;
    margin: 10px 0;
    background: #2a2a5e;
    border: 1px solid #0ff;
    color: #fff;
    font-family: 'Courier New', monospace;
    border-radius: 5px;
}

.login-box input:focus {
    outline: none;
    box-shadow: 0 0 10px #0ff;
}

.login-box button {
    width: 100%;
    padding: 10px;
    background: #0ff;
    color: #1a1a3d;
    border: none;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-box button:hover {
    background: #00ccff;
    box-shadow: 0 0 10px #0ff;
}

.neon.home{
    font-size: 1em;
    margin: 0;
}
.head-home-page{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: black;
    padding: 0px 10px;
}
.error {
    color: #ff5555;
    margin-top: 10px;
}

.tag-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding: 20px 0px;
}
.tag-container > .tag{
    padding: 10px;
    background: #2c2c59;
    color: white;
    border: 1px solid #2c2c59;
    transition: all 0.5s ease;
    border-radius: 10px;
}
.tag-container > .tag:hover{
    background: #e5e5e5;
    color: black;
    transform: scale(1.02);
    box-shadow: 2px 2px 5px 2px #ccc;
    cursor: pointer;
}

.menu-person{
    width: 300px;
    height: 100vh;
    background: #2e2e4f;
    position: fixed;
    top:0;
    right: 0;
    z-index: 999;
    border-left: 1px solid #423f3f;
    transition: right 1s ease;
}
.menu-person.move-menu{
    right: -100%;
}
.menu-person ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu-person ul a li{
    padding: 10px;
}
body.light-mode .menu-person ul a{
    color: #2e2e4f;
    text-decoration: none;
    transition: transform 0.3s ease;
}


body.light-mode .menu-person{
    background: white;
}
.menu-person h2{
    color: white;
    font-size: 18px;
    text-align: center;
}
body.light-mode .menu-person h2{
    color: black;
}

.menu-button{
    cursor: pointer;
    transition: transform 0.5s ease;
}
.menu-button:hover{
    transform: scale(1.04);
}
.action-btn.delete-btn{
    position: relative;
    display: block;
}

.add-price-list-form,
.edit-price-list-form,
.add-partner-form,
.add-staff-form,
.add-order-container,
.add-account-form
{
    max-width: 600px;
    padding: 10px;
    background: #4CAF50;
    border: 1px solid #ccc;
    border-radius: 10px;
    transition: all 0.5s ease;
    max-height: 600px;
    overflow: auto;
    scrollbar-width: none;
    margin: auto;
}
.add-price-list-form:hover,
.edit-price-list-form:hover,
.add-partner-form:hover,
.add-staff-form:hover,
.add-order-container:hover,
.add-account-form:hover
{
    transform: scale(1.02);
    box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.6);
}

.add-price-list-form > *,
.edit-price-list-form > *,
.add-partner-form > *,
.add-staff-form > *,
.add-order-container > *,
.add-account-form > *
{
    color: white;
}
.add-price-list-form h3,
.edit-price-list-form h3,
.add-partner-form h3,
.add-staff-form h3,
.add-order-container h3,
.add-account-form h3
{
    text-align: center;
}
.add-price-list-form button,
.edit-price-list-form button,
.add-partner-form button,
.add-staff-form button,
.add-order-container button,
.add-account-form button
{
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    background: linear-gradient(45deg, #2eedef, #da42d9);
    border: 0px;
    cursor: pointer;
    color: white;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.add-staff-form button {
    margin-top: 10px;
}
.add-staff-form button:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
        opacity: 0.6;
    }


.add-staff-form label{
    display: block;
    margin-bottom: 5px;
    font-weight: bold;    
}
.add-staff-form select {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-sizing: border-box;
}

.no-users-message{
    margin: 10px;
    color: white;
}

.price-list-table,
.partner-list-table,
.staff-list-table,
.order-table
{
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
    max-width: 100%;
    overflow-x: auto;
}
.price-list-table:hover,
.partner-list-table:hover,
.staff-list-table:hover,
.order-table:hover
{
    transform: scale(1.02);
    box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.7);
}


.price-list-table th, .price-list-table td,
.partner-list-table th, .partner-list-table td,
.staff-list-table th, .staff-list-table td,
.order-table th, .order-table td
{
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.price-list-table th,
.partner-list-table th,
.staff-list-table th,
.order-table th
{
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.price-list-table td,
.partner-list-table td,
.staff-list-table td,
.order-table td
{
    background-color: #f9f9f9;
}

.price-list-table tr:nth-child(even) td,
.partner-list-table tr:nth-child(even) td,
.staff-list-table tr:nth-child(even) td,
.order-table tr:nth-child(even) td
{
    background-color: #f2f2f2;
}

.price-list-table tr:hover td,
.partner-list-table tr:hover td,
.staff-list-table tr:hover td,
.order-table tr:hover td
{
    background-color: #ddd;
}

/* Các nút hành động */
.action-btn {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    margin-right: 10px;
    text-decoration: none;
}

.edit-btn {
    background-color: #4CAF50;
    color: white;
}

.delete-btn {
    background-color: #f44336;
    color: white;
}

.action-btn:hover {
    opacity: 0.8;
}
.action-btn.delete-btn{
    position: relative;
    display: block;
}
/* Status */
.status-active {
    color: #4CAF50;
    font-weight: bold;
}

.status-inactive {
    color: #f44336;
    font-weight: bold;
}

/* Đảm bảo khoảng cách giữa các bảng */
.price-list-table td, .price-list-table th {
    font-size: 14px;
    font-weight: normal;
}

.price-list-table td {
    font-size: 13px;
}

.success-message {
        background-color: #d4edda;
        color: #155724;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #c3e6cb;
        border-radius: 4px;
        text-align: center;
        display: block;
    }
    .error-message {
        background-color: #f8d7da;
        color: #721c24;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #f5c6cb;
        border-radius: 4px;
        text-align: center;
    }

    .status-active {
        color: #4CAF50;
        font-weight: bold;
    }
    .status-deactive {
        color: #F44336;
        font-weight: bold;
    }
    
    
    
    
.order-tabs {
        display: flex;
        border-bottom: 1px solid #ddd;
        margin-bottom: 20px;
    }
    .tab-button {
        padding: 10px 20px;
        background: #f4f4f4;
        font-size: 16px;
        border-bottom: 2px solid transparent;
        text-decoration: none;
        color: #333;
    }
    .tab-button:hover {
        background: #e0e0e0;
    }
    .tab-button.active {
        background: #fff;
        border-bottom: 2px solid #4CAF50;
        font-weight: bold;
    }
    .form-group {
        margin-bottom: 15px;
    }
    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }
    .form-group input,
    .form-group select {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-sizing: border-box;
    }
    .form-group input[readonly] {
        background-color: #f0f0f0;
        cursor: not-allowed;
    }
    .submit_order {
        padding: 10px 20px;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }
    .submit_order:hover {
        background-color: #45a049;
    }
    
.show-order-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    .order-tabs {
        display: flex;
        border-bottom: 1px solid #ddd;
        margin-bottom: 20px;
    }
    .tab-button {
        padding: 10px 20px;
        background: #f4f4f4;
        font-size: 16px;
        border-bottom: 2px solid transparent;
        text-decoration: none;
        color: #333;
    }
    .tab-button:hover {
        background: #e0e0e0;
    }
    .tab-button.active {
        background: #fff;
        border-bottom: 2px solid #4CAF50;
        font-weight: bold;
    }
    .total-label {
        margin-bottom: 10px;
        font-size: 16px;
        font-weight: bold;
        color: #333;
    }
    .table-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
    }

.edit-btn {
        background-color: #4CAF50;
    }
    .edit-btn:hover {
        background-color: #45a049;
    }
    .delete-btn {
        background-color: #f44336;
    }
    .delete-btn:hover {
        background-color: #da190b;
    }
    .check-btn {
        background-color: #2196F3;
    }
    .check-btn:hover {
        background-color: #1976D2;
    }
    .status-pending {
        color: #FF9800;
        font-weight: bold;
    }
    .status-completed {
        color: #4CAF50;
        font-weight: bold;
    }
    .status-active {
        color: #4CAF50;
        font-weight: bold;
    }
    .status-removed {
        color: #F44336;
        font-weight: bold;
    }
    .status-paid {
        color: #4CAF50;
        font-weight: bold;
    }
    .status-unpaid {
        color: #F44336;
        font-weight: bold;
    }
    .status-normal {
        color: #4CAF50;
        font-weight: bold;
    }
    .status-missing {
        color: #F44336;
        font-weight: bold;
    }
    .status-error {
        color: #9E9E9E;
        font-weight: bold;
    }
    
    
    
.upload-section {
        margin-bottom: 30px;
    }
    .form-group input[type="file"],
    .form-group input[type="text"] {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-sizing: border-box;
    }
    .media-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    .media-item {
        text-align: center;
        cursor: pointer;
    }
    .media-item img {
        max-width: 100%;
        height: auto;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    .media-item p {
        margin: 5px 0;
        font-size: 0.9em;
        word-break: break-all;
    }
    #media-modal.modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
    }
    .modal-content {
        background-color: #fff;
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
        max-width: 500px;
        border-radius: 8px;
    }
    .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }
    .close:hover,
    .close:focus {
        color: #000;
        text-decoration: none;
    }
    .modal-body .form-group {
        display: flex;
        align-items: center;
    }
    .modal-body input {
        flex: 1;
        margin-right: 10px;
    }
/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .login-box {
        padding: 20px;
        max-width: 90%;
    }
    .chat-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #0ff;
    }
    .chat-main {
        padding: 10px;
    }
}