/* Định dạng chung */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* CSS chung cho trang login */
.login-body {
    background-color: #1c6c86;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
}

label, input, .login-container h2, .login-container p {
    display: block;
    width: 100%;
}

input[type="text"], input[type="password"], select, button {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

/* Media Queries */
@media screen and (max-width: 600px) {
    .login-container {
        width: 95%;
        padding: 5px;
    }

    input, button {
        margin: 5px 0;
        padding: 8px;
    }
}

/* CSS chung cho các trang khác */
.container {
    display: flex;
    width: 95%;
    margin: auto;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Sidebar */
.sidebar {
    width: 200px;
    background-color: #1c6c86;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #FFFFFF;
    display: block;
    padding: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar ul li a:hover {
    background-color: #e9e9e9;
    color: #1c6c86;
}

.sidebar h2 {
    color: white;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 10px 0;
}

/* Nút Logout */
.logout-button {
    background-color: #f44336;
    color: white;
    padding: 10px;
    border-radius: 4px;
    display: block;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: #d32f2f;
}

/* Content */
.content {
    margin-left: 10px;
    flex-grow: 1;
    padding: 10px;
}

.content h2 {
    color: #333;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    border-bottom: 2px solid #1c6c86;
    padding-bottom: 3px;
}

/* Responsive Sidebar */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 0;
        display: none;
    }

    .content {
        margin-left: 0;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        font-size: 30px;
        padding: 10px;
        cursor: pointer;
    }
}

/* Proxy Styles */
.proxy-results-title {
    color: #333;
}

.proxy-results {
    list-style-type: none;
    padding: 0;
}

.proxy-results li {
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-family: 'Courier New', Courier, monospace;
    color: #555;
}

.proxy-results li:hover {
    background-color: #e9e9e9;
}

.proxy-active { color: green; }
.proxy-inactive { color: red; }

/* Form Styling */
form {
    max-width: 100%;
    margin: 5px auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.form-row {
    display: flex;
    gap: 20px; /* Khoảng cách giữa các cột */
    justify-content: space-between;
}

.form-group {
    flex: 1; /* Cả hai phần tử sẽ có độ rộng bằng nhau */
    display: flex;
    flex-direction: column;
}

input, select {
    width: 100%; /* Đảm bảo input và select chiếm hết phần width của container */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 15px; /* Tăng khoảng cách giữa các phần tử */
    flex-wrap: nowrap; /* Ngăn xuống dòng */
    justify-content: flex-start;
}

.pagination a {
    text-decoration: none;
    color: #6600cc;
    font-weight: bold;
    padding: 5px 10px;
    border: 1px solid #6600cc;
    border-radius: 5px;
}

.pagination a:hover {
    background-color: #6600cc;
    color: white;
}

.pagination label {
    font-weight: bold;
    margin-right: 10px; /* Khoảng cách phải giữa label và select */
}

.pagination select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    min-width: 80px; /* Đảm bảo kích thước ổn định */
}
.withdrawal-table {
    width: 100%;
    border-collapse: collapse;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	margin-top: 20px;
}

.withdrawal-table th {
    background: #2d75ee;
    color: white;
    text-align: left;
    padding: 10px;
    font-weight: bold;
    width: 25%;
}

.withdrawal-table td {
    padding: 10px;
    background: #ffffff;
    color: #333;
}

.withdrawal-table tr {
    border-bottom: 1px solid #ddd;
}

.withdrawal-table tr:last-child {
    border-bottom: none;
}

.withdrawal-table td a {
    color: #2d75ee;
    text-decoration: none;
    font-weight: bold;
}

.withdrawal-table td a:hover {
    text-decoration: underline;
}

.withdrawal-table tr:nth-child(even) td {
    background: #f2f2f2;
}
.form-container-row {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    margin: 20px auto;
    gap: 10px; /* Khoảng cách giữa các phần tử */
}

.form-label {
    font-weight: bold;
    white-space: nowrap;
}

.input-field {
    flex: 1; /* Giúp input mở rộng theo kích thước hợp lý */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.submit-btn {
    padding: 10px 20px;
    background: #2d75ee;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.submit-btn:hover {
    background: #0056b3;
}


/* Bảng lịch sử */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.history-table th, .history-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.history-table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.history-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.history-table tr:hover {
    background-color: #d6e9ff;
}
.ticket-replies {
    margin-top: 20px;
}

.reply-box {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.admin-reply {
    background-color: #fff3cd; /* Màu nền vàng nhạt cho Admin */
    border-left: 5px solid #ffc107;
}

.customer-reply {
    background-color: #e9f5ff; /* Màu nền xanh nhạt cho Khách hàng */
    border-left: 5px solid #007bff;
}

.reply-header {
    font-size: 16px;
    font-weight: bold;
}

.reply-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.reply-content {
    font-size: 14px;
    line-height: 1.5;
}

.role-label {
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    margin-left: 10px;
}

.operator {
    background-color: #ff9800;
}

.owner {
    background-color: #007bff;
}
.ticket-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    }

    .ticket-table th, .ticket-table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #ddd;
    }

    .ticket-table th {
        background-color: #f4f6f9;
        font-weight: bold;
        text-transform: uppercase;
    }

    .ticket-table tr:hover {
        background-color: #f1f1f1;
    }

    .status-open {
        color: green;
        font-weight: bold;
    }

    .status-reply {
        color: orange;
        font-weight: bold;
    }

    .action-link {
        text-decoration: none;
        font-weight: bold;
        color: #007BFF;
    }

    .action-link:hover {
        text-decoration: underline;
    }

    .ticket-id {
        font-weight: bold;
        color: #333;
    }

    .customer-name {
        font-weight: bold;
    }
.tabs {
    display: flex;
    border-bottom: 2px solid #ccc;
    margin-bottom: 10px;
}
.tab-button {
    flex: 1;
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    border: none;
    outline: none;
    background-color: #f1f1f1; /* Màu nền cho tab chưa active */
    color: #333; /* Màu chữ cho tab chưa active */
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.tab-button.active {
    background: #007bff;
    color: white;
}
.tab-content {
    display: none;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
}
	