/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */
/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */
.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

div#ModalDialog .transform {
    /*width: 428px;*/
    height: 243px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}


table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    margin: 20px 0;
    font-size: 1rem;
    background-color: #f9f9f9;
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

thead tr {
    background-color: #4CAF50; /* Màu nền của header */
    color: #ffffff; /* Màu chữ của header */
    text-align: left;
    font-weight: bold;
}
thead tr td {
    color: #ffffff !important; /* Màu chữ của header */
}
tbody tr {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

tbody tr:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
}

tbody td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

tbody td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Trạng thái */
.status {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    min-width: 100px;
}

.status-sending {
    background-color: #e0f7fa;
    color: #00796b;
}

.status-done {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-cancel {
    background-color: #ffebee;
    color: #d32f2f;
}

/* Nút hành động */
.icon-button {
    background-color: #4CAF50; /* Màu nền mặc định cho nút */
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 5px; /* Bo tròn nút */
    color: white;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

/* Style cho icon bên trong nút */
.icon-button i {
    font-size: 16px;
    color: white;
}

/* Hiệu ứng hover */
.icon-button:hover {
    background-color: #45a049; /* Màu đậm hơn khi hover */
}

/* Nút bị disabled */
.icon-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.icon-button:disabled i {
    color: #888888;
}

/* Màu sắc cho từng hành động */
.icon-button.start {
    background-color: #4CAF50; /* Màu cho nút Start */
}

.icon-button.pause {
    background-color: #f39c12; /* Màu cho nút Pause */
}

.icon-button.cancel {
    background-color: #e74c3c; /* Màu cho nút Cancel */
}

/* Hover cho từng hành động */
.icon-button.start:hover {
    background-color: #45a049;
}

.icon-button.pause:hover {
    background-color: #e67e22;
}

.icon-button.cancel:hover {
    background-color: #c0392b;
}

/* Căn giữa các nút hành động */
.actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Phân trang */
.pagination-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-controls button {
    padding: 10px 20px;
    margin: 0 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.pagination-controls button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.pagination-controls span {
    font-size: 1.1rem;
}

@keyframes errorPulse {
    0% { background-color: rgb(254 202 202); }
    50% { background-color: rgb(252 165 165); }
    100% { background-color: rgb(254 202 202); }
}

.error-animate {
    animation: errorPulse .5s infinite;
}

@media (min-width: 1920px) {
    .min-w-40 {
        min-width: 10rem;
    }
}


.toolbar {
    margin-bottom: 16px;
}

.import-button {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.import-button:hover {
    background-color: #0056b3;
}