* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container-custom {
    min-height: 100vh;
}

.fs-7 {
    font-size: 0.85rem !important;
}

/* Nền warning */
.bg-warning {
    background-color: #ddab06 !important;
    color: #fff !important;
}

/* Màu chữ warning */
.text-warning {
    color: #ddab06 !important;
}

/* Viền warning */
.border-warning {
    border-color: #ddab06 !important;
}

/* Nút nền warning */
.btn-warning {
    background-color: #ddab06 !important;
    border-color: #ddab06 !important;
    color: #fff !important;
}

.btn-warning:hover {
    background-color: #f5be0a !important;
    border-color: #f5be0a !important;
    color: #fff !important;
}

.btn-warning:focus,
.btn-warning:active {
    background-color: #e7b305 !important;
    border-color: #e7b305 !important;
    box-shadow: 0 0 0 0.25rem rgba(235, 192, 0, 0.5) !important;
    color: #fff !important;
}

/* Nút viền warning */
.btn-outline-warning {
    color: #ddab06 !important;
    border-color: #ddab06 !important;
    background-color: transparent !important;
}

.btn-outline-warning:hover {
    background-color: #ddab06 !important;
    color: #fff !important;
    border-color: #ddab06 !important;
}

.btn-outline-warning:focus,
.btn-outline-warning:active {
    background-color: #e7b305 !important;
    border-color: #e7b305 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(235, 172, 0, 0.5) !important;
}

.modal-backdrop.fade.show {
    z-index: 0;
}

.card:hover {
    transform: translateY(-1px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ticket-number {
    font-size: 2rem;
    font-weight: bold;
}

.ticket-total {
    position: absolute;
    top: -14px;
    right: -14px;
    color: #fff;
    width: 28px;
    font-size: 0.7rem;
    text-align: center;
    font-weight: bold;
    background-color: #da0000;
    padding: 4px 6px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .ticket-number {
        font-size: 1rem;
    }
}

/* Toast notification styles */
.flash-toast {
    min-width: 260px;
    max-width: 400px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    color: #fff;
    font-size: 0.9rem;
    padding: 0;
    overflow: hidden;
    animation: fadeIn 0.3s;
}
.flash-success {
    background: #0da531;
}
.flash-danger,
.flash-error {
    background: #c7182a;
}
.flash-warning {
    background: #ce9f04;
}
.flash-info,
.flash-primary {
    background: #007bff;
}
.flash-toast .toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
}
.flash-toast .toast-icon {
    font-size: 0.8rem;
}
.flash-toast .toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.1em;
    cursor: pointer;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.color-box {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 6px;
}

.table-responsive td,
.table-responsive th {
    white-space: nowrap;
}

.inventory-card.inactive {
    opacity: 0.3;
    filter: grayscale(0.3);
    transition: opacity 0.2s, filter 0.8s;
}
.inventory-card.active {
    opacity: 1;
    filter: none;
    z-index: 2;
}

.loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #0428f5;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result-table td {
    font-size: 1.2rem;
    font-weight: bold;
}

.result-table .prize-special {
    font-size: 1.8rem;
    font-weight: bold;
    color: #c7182a;
}

.result-table .prize-g8 {
    font-size: 1.8rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .result-table {
        font-size: 1rem;
    }

    .result-table .prize-special {
        font-size: 1.2rem;
        line-height: 1.1rem;
        font-weight: bold;
        color: #c7182a;
    }

    .result-table .prize-g8 {
        font-size: 1.2rem;
        line-height: 1.1rem;
        font-weight: bold;
    }
    .result-table tr,
    .result-table th {
        font-size: 12px !important;
    }
}

/* Admin Sidebar - Bootstrap only styles */
.nav-pills .nav-link:hover {
    background-color: #e9ecef;
    transform: translateX(3px);
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: white !important;
}

/* Admin Dashboard Cards */
.admin-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.admin-card .card-body {
    padding: 1.5rem;
}

.admin-card .card-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.admin-card .card-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-card .card-title {
        font-size: 1.5rem;
    }
}

/* Password reset styles */
.password-strength-weak {
    color: #dc3545;
}

.password-strength-medium {
    color: #ffc107;
}

.password-strength-strong {
    color: #28a745;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

/* Action buttons spacing */
.d-flex.gap-1 .btn {
    margin-right: 2px;
}

.d-flex.gap-1 .btn:last-child {
    margin-right: 0;
}

.body-dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.card-dashboard {
    background-color: rgba(0, 0, 0, 0.5);
}

.title-dashboard {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .body-dashboard {
        padding-top: 4rem;
    }
    .card-dashboard {
        background: transparent;
    }
    .title-dashboard {
        font-size: 1.5rem;
    }
}

.ticket-result {
    position: absolute;
    top: -12px;
    right: -10px;
    color: #fff;
    width: 60px;
    font-size: 0.8rem;
    text-align: center;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    #printPreviewContent .ticket {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 5px !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
        transform-origin: top left;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .ticket-result {
        font-size: 0.7rem;
    }
}

.bg-total-none {
    background-color: #e6e6e6 !important;
}
