/* Result Page Styles - Enhanced to Match Lottery Game Theme */

/* Enhanced Results Table Styling */
.results-table {
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(7, 59, 76, 0.15);
    background: white;
}

.results-table thead th {
    background: #073B4C;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 12px;
    border: none;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(7, 59, 76, 0.3);
}

.results-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.results-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 59, 76, 0.15);
}

.results-table tbody tr:nth-child(even) {
    background: #d8e8f9 !important;
}

.results-table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #d8e8f9 0%, #c5d9f0 100%) !important;
}

.results-table td {
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    border: none;
    transition: all 0.3s ease;
}

.results-table td:first-child {
    background: #f8f9fa;
    font-weight: 600;
    color: #073B4C;
    border-right: 2px solid #073B4C;
}

/* Winning Numbers Highlight */
.results-table td.winning-number {
    background: linear-gradient(135deg, #00BD8C 0%, #01A378 100%);
    color: white;
    font-weight: 700;
    border-radius: 6px;
    margin: 2px;
    display: inline-block;
    min-width: 30px;
    text-align: center;
}

/* Results Container Enhancement */
.results-container {
    border-radius: 0px;
}

.results-card {
    background: white;
    border-radius: 0px;
    box-shadow: 0 8px 32px rgba(7, 59, 76, 0.15);
    border: 2px solid #073B4C;
    overflow: hidden;
}

/* Table Responsive Enhancement */
.table-responsive {
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(7, 59, 76, 0.1);
    background: white;
}

/* Loading Animation for Results */
.results-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.results-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #073B4C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESULT PAGE MAIN STYLES - MOVED FROM INDEX.CSHTML ===== */

/* Professional Results Page Styling - Matching Lottery Game Theme */
body {
    font-family: 'Inter', sans-serif;
    background: #EBF7FA;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.lottery-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 0;
    min-height: 32px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    flex-shrink: 0;
}

.lottery-container {
    background: #EBF7FA;
    flex: 1;
    padding: 70px 5px 5px 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 1470px;
    margin: 0 auto;
    width: 100%;
}

.container-fluid.h-100 {
    height: 100% !important;
}

.row.h-100 {
    height: 100% !important;
}

.col-12.h-100 {
    height: 100% !important;
}

#currentResultsContainer.h-100 {
    height: 100% !important;
}

/* Navbar Title Styling - Matching Lottery Game Theme */
.navbar .container-fluid {
    padding: 0 40px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-weight: 700;
    color: #2c3e50 !important;
    font-size: 1.3rem;
    margin-right: 8px;
    line-height: 1;
    height: 28px;
    display: flex;
    align-items: center;
}

.navbar .text-muted {
    font-size: 0.8rem;
    line-height: 1;
    height: 28px;
    display: flex;
    align-items: center;
}

.navbar .btn {
    padding: 3px 8px;
    font-size: 0.75rem;
    margin-right: 4px;
}

.navbar .btn-sm {
    padding: 2px 6px;
    font-size: 0.7rem;
}

.navbar .d-flex.align-items-center {
    gap: 4px;
    height: 28px;
    align-items: center;
}

.navbar .me-3 {
    margin-right: 8px !important;
    height: 28px;
    display: flex;
    align-items: center;
}

.navbar-title {
    margin-left: 16px;
}

.navbar-title h4 {
    color: #073B4C;
    font-size: 1.3rem;
    font-weight: 700;
}

.navbar-title small {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Filter Section - Matching Lottery Game Theme */
.filter-section {
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* Game Category Tabs - Matching Lottery Game Theme */
.game-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.game-category-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.875rem;
    color: #073B4C;
    text-align: center;
    min-width: 100px;
    flex: 1;
    max-width: 180px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
}

.game-category-tab:hover {
    background: #e9ecef;
    border-color: #073B4C;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(7, 59, 76, 0.15);
}

.game-category-tab.active {
    background: #D13D61;
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.game-category-tab.active:hover {
    background: #b8354f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(209, 61, 97, 0.4);
}

/* Responsive tabs */
@media (max-width: 768px) {
    .game-category-tabs {
        flex-direction: column;
    }
    
    .game-category-tab {
        max-width: none;
        min-width: auto;
    }
}

/* Game Subcategory Tabs - Matching Lottery Game Theme */
.game-subcategory-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.game-subcategory-tab {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.8rem;
    color: #073B4C;
    text-align: center;
    min-width: 80px;
    flex: 1;
    max-width: 120px;
}

.game-subcategory-tab:hover {
    background: #e9ecef;
    border-color: #073B4C;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(7, 59, 76, 0.15);
}

.game-subcategory-tab.active {
    background: #00BD8C;
    border-color: #00BD8C;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 189, 140, 0.3);
    transform: translateY(-1px);
}

.game-subcategory-tab.active:hover {
    background: #01A378;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 189, 140, 0.4);
}

.game-subcategory-tab.disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.game-subcategory-tab.disabled:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    transform: none;
    box-shadow: none;
}

/* Responsive subcategory tabs */
@media (max-width: 768px) {
    .game-subcategory-tabs {
        flex-direction: column;
    }
    
    .game-subcategory-tab {
        max-width: none;
        min-width: auto;
    }
}

.filter-card-compact {
    background: white;
    border-radius: 7px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid #073B4C;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 0;
    padding-left: 25px;
}

.row.g-2 {
    --bs-gutter-y: 0.25rem;
    --bs-gutter-x: 0.5rem;
}

.form-label {
    color: #073B4C;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    padding-top: 15px;
}

.form-label i {
    color: #073B4C;
    margin-right: 4px;
}

.form-select, .form-control {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.form-select:focus, .form-control:focus {
    border-color: #073B4C;
    box-shadow: 0 0 0 0.2rem rgba(7, 59, 76, 0.15);
    background-color: white;
}

.form-select:disabled, .form-control:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.btn-primary {
    background: #073B4C;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(7, 59, 76, 0.3);
    font-size: 0.85rem;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #042530;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 59, 76, 0.4);
}

.btn-primary:disabled {
    background: #6c757d;
    box-shadow: none;
    transform: none;
}

/* Results Container - Matching Lottery Game Theme */
.results-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 350px;
    max-height: 350px;
    margin-top: 20px;
}

.results-card {
    background: transparent;
    border-radius: 0px;
    box-shadow: none;
    border: none;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 350px;
    max-height: 350px;
    margin-top: 0;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    flex: 1;
}

/* Results Content - Always Scrollable */
.results-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    height: calc(100vh - 350px);
    max-height: calc(100vh - 350px);
    background: #f8f9fa;
    position: relative;
}

.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 0px 0px 8px 8px;
    box-shadow: 0 2px 8px rgba(7, 59, 76, 0.1);
    background: white;
}

/* Ensure results container content is scrollable when needed */
#currentResultsContainer:not(.has-results) {
    overflow: hidden !important;
}

#currentResultsContainer.has-results {
    overflow-y: auto !important;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 0px 0px 8px 8px;
    overflow: hidden;
    box-shadow: none;
    background: white;
    border: 1px solid #e9ecef;
    margin: 0;
    font-size: 12px;
}

.results-table th {
    background: #073B4C !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 10px 8px;
    text-align: center;
    border-bottom: 2px solid #073B4C;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    font-size: 12px !important;
    box-shadow: 0 2px 4px rgba(7, 59, 76, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* Override Bootstrap table-dark styles */
.results-table thead.table-dark th,
.results-table thead th {
    background: #073B4C !important;
    color: #ffffff !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Ensure sticky works with Bootstrap table classes */
.table.table-striped.table-hover.table-bordered thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #073B4C !important;
    color: #ffffff !important;
}

/* Additional sticky header rules for better compatibility */
.results-table thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #073B4C !important;
}

.results-table thead tr {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #073B4C !important;
}

/* Force thead to be sticky with maximum specificity */
.results-table thead,
.results-table thead tr,
.results-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #073B4C !important;
    color: #ffffff !important;
}

.results-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #f1f3f4;
    font-size: 12px !important;
    background: #ffffff;
    transition: all 0.2s ease;
    border-left: none;
    border-right: none;
    line-height: 1.3;
    vertical-align: middle;
}

/* Left align DrawTime column */
.results-table th:first-child,
.results-table td:first-child {
    text-align: left !important;
    padding-left: 10px !important;
}

.results-table tbody tr {
    transition: all 0.3s ease;
}

.results-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(7, 59, 76, 0.1);
}

.results-table tbody tr:nth-child(even) {
    background: #d8e8f9 !important;
}

.results-table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #d8e8f9 0%, #c5d9f0 100%) !important;
}

/* Additional compact styling for results table */
.results-table {
    font-size: 12px !important;
}

.results-table th,
.results-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px !important;
}

/* More specific selectors to override any inherited styles */
.results-card .results-table th,
.results-card .results-table td {
    font-size: 12px !important;
}

.results-content .results-table th,
.results-content .results-table td {
    font-size: 12px !important;
}

/* Override Bootstrap table styles specifically */
.results-table.table th,
.results-table.table td {
    font-size: 12px !important;
}

.results-table.table.table-striped th,
.results-table.table.table-striped td {
    font-size: 12px !important;
}

.results-table.table.table-hover th,
.results-table.table.table-hover td {
    font-size: 12px !important;
}

.results-table.table.table-bordered th,
.results-table.table.table-bordered td {
    font-size: 12px !important;
}

.results-table.table.table-dark th {
    font-size: 12px !important;
}

/* Override any Bootstrap or other CSS that might be affecting table font size */
.results-table * {
    font-size: 12px !important;
}

.results-table thead th,
.results-table tbody td {
    font-size: 12px !important;
}

/* Most specific selectors to override Bootstrap */
.results-card .results-table.table.table-striped.table-hover.table-bordered thead.table-dark th,
.results-card .results-table.table.table-striped.table-hover.table-bordered tbody td {
    font-size: 12px !important;
}

/* Target Bootstrap table classes directly */
.table.table-striped.table-hover.table-bordered th,
.table.table-striped.table-hover.table-bordered td {
    font-size: 12px !important;
}

/* Override Bootstrap table-striped alternating colors */
.table.table-striped tbody tr:nth-child(even) {
    background-color: #d8e8f9 !important;
}

.table.table-striped tbody tr:nth-child(odd) {
    background-color: white !important;
}

.results-table.table.table-striped tbody tr:nth-child(even) {
    background-color: #d8e8f9 !important;
}

.results-table.table.table-striped tbody tr:nth-child(odd) {
    background-color: white !important;
}

.table.table-dark th {
    font-size: 12px !important;
}

/* Override Bootstrap's table font size with maximum specificity */
.results-container .table th,
.results-container .table td {
    font-size: 12px !important;
}

/* Maximum specificity to override Bootstrap table styles */
.lottery-container .results-container .results-card .results-content .table.table-striped.table-hover.table-bordered thead.table-dark th,
.lottery-container .results-container .results-card .results-content .table.table-striped.table-hover.table-bordered tbody td {
    font-size: 12px !important;
}

/* Force font size with inline style override */
.results-table th[style*="font-size"],
.results-table td[style*="font-size"] {
    font-size: 12px !important;
}

/* Make table more compact */
.results-content {
    padding: 0;
}

/* Special styling for winning numbers in table */
.results-table td:contains("winning") {
    background: linear-gradient(135deg, #00BD8C 0%, #01A378 100%);
    color: white;
    font-weight: 600;
    border-radius: 4px;
}

/* Styling for time columns */
.results-table td:first-child {
    background: #f8f9fa;
    font-weight: 600;
    color: #073B4C;
}

/* Styling for number columns */
.results-table td:not(:first-child) {
    font-weight: 500;
    color: #495057;
}

/* Enhanced scrollbar for results content */
.results-content::-webkit-scrollbar {
    width: 4px !important;
}

.results-content::-webkit-scrollbar-track {
    background: #f8f9fa !important;
    border-radius: 2px !important;
}

.results-content::-webkit-scrollbar-thumb {
    background: #d8e8f9 !important;
    border-radius: 2px !important;
}

.results-content::-webkit-scrollbar-thumb:hover {
    background: #c5d9f0 !important;
}

/* Additional scrollbar styling for table responsive */
.table-responsive::-webkit-scrollbar {
    width: 4px !important;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f8f9fa !important;
    border-radius: 2px !important;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #d8e8f9 !important;
    border-radius: 2px !important;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #c5d9f0 !important;
}

/* Table border enhancements */

/* Ensure results container always has fixed height */
#currentResultsContainer {
    height: calc(100vh - 300px) !important;
    max-height: calc(100vh - 300px) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* When results are loaded, make content scrollable */
#currentResultsContainer.has-results {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Ensure sticky positioning works */
#currentResultsContainer.has-results .results-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Sticky headers for the new container structure */
.filter-card-compact .results-table th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #073B4C !important;
    color: #ffffff !important;
}

.filter-card-compact .results-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #073B4C !important;
    color: #ffffff !important;
}

.filter-card-compact .table.table-striped.table-hover.table-bordered thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #073B4C !important;
    color: #ffffff !important;
}

/* Ensure thead is sticky within filter card */
.filter-card-compact .results-table thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #073B4C !important;
}

.filter-card-compact .results-table thead tr {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #073B4C !important;
}

/* Maximum specificity for thead sticky positioning */
.filter-card-compact .results-container .results-card .results-content .results-table thead,
.filter-card-compact .results-container .results-card .results-content .results-table thead tr,
.filter-card-compact .results-container .results-card .results-content .results-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #073B4C !important;
    color: #ffffff !important;
}

#currentResultsContainer.has-results .empty-state {
    display: none !important;
}

#currentResultsContainer.has-results .results-content {
    display: block !important;
    flex: 1 !important;
}

.empty-state-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #073B4C 0%, #D13D61 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(7, 59, 76, 0.3);
}

.empty-state-icon i {
    font-size: 24px;
    color: white;
}

.empty-state-title {
    color: #073B4C;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 16px;
    max-width: 350px;
    line-height: 1.4;
}

.empty-state-actions .btn {
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .results-header-section {
        padding: 12px 16px;
        text-align: center;
    }

    .results-title {
        font-size: 1.5rem;
    }

    .filter-content {
        padding: 12px;
    }

    .empty-state {
        padding: 20px 16px;
    }
}

/* Animation */
.filter-card, .results-card {
    animation: fadeInUp 0.6s ease-out;
}

.results-table {
    animation: slideInUp 0.8s ease-out;
}

.results-table tbody tr {
    /* Animation removed */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* fadeInRow keyframes removed */

/* Loading States */
.btn-primary:disabled {
    position: relative;
}

.btn-primary:disabled::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 12px;
    top: 0;
    bottom: 0;
}

.result-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: linear-gradient(135deg, #073B4C, #D13D61);
    color: white;
    border-radius: 50%;
    margin: 5px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(7, 59, 76, 0.3);
    transition: all 0.3s ease;
}

.result-number:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.result-number.winning {
    background: linear-gradient(135deg, #00BD8C, #01A378);
    animation: pulse 2s infinite;
}

.result-number.jackpot {
    background: linear-gradient(135deg, #D13D61, #b8354f);
    animation: bounce 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.result-info {
    background: linear-gradient(135deg, #073B4C, #D13D61);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.result-info h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.result-meta .badge {
    font-size: 0.9em;
    padding: 8px 12px;
}

.history-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: white;
}

.history-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.history-date {
    font-weight: 600;
    color: #2d3436;
}

.history-time {
    color: #636e72;
    font-size: 0.9em;
}

.history-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.history-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: linear-gradient(135deg, #073B4C, #D13D61);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #636e72;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section .form-label {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
}

.filter-section .form-select,
.filter-section .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.filter-section .form-select:focus,
.filter-section .form-control:focus {
    border-color: #073B4C;
    box-shadow: 0 0 0 0.2rem rgba(7, 59, 76, 0.25);
}

.result-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-card .card-header {
    border: none;
    padding: 20px;
}

.result-card .card-body {
    padding: 25px;
}

.status-badge {
    font-size: 0.8em;
    padding: 6px 12px;
    border-radius: 20px;
}

.status-available {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-loading {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-no-data {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .result-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }
    
    .history-number {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 12px;
    }
    
    .result-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .filter-section .row > div {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .result-number {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
        margin: 3px;
    }
    
    .history-number {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 11px;
    }
    
    .result-info {
        padding: 15px;
    }
    
    .history-item {
        padding: 12px;
    }
}

/* Animation for loading states */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Custom scrollbar for history section */
.result-history-container {
    max-height: 600px;
    overflow-y: auto;
}

.result-history-container::-webkit-scrollbar {
    width: 8px;
}

.result-history-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.result-history-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.result-history-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Game Results Display Styles */
.game-results-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.game-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.game-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.game-result-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.game-name {
    font-weight: 600;
    color: #073B4C;
    font-size: 0.9em;
}

.game-number {
    font-weight: bold;
    color: #00BD8C;
    font-size: 1.1em;
}

/* All Day Results Styles */
.all-results-container {
    max-height: 500px;
    overflow-y: auto;
}

.result-slot {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.result-slot:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.result-slot-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.result-slot-header h5 {
    color: #495057;
    font-weight: 600;
    margin: 0;
}

.result-slot-content {
    padding: 0;
}

/* History Game Results Styles */
.history-game-results {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #e9ecef;
}

.history-game-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.history-game-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-size: 0.85em;
}

.history-game-name {
    font-weight: 500;
    color: #073B4C;
}

.history-game-number {
    font-weight: bold;
    color: #00BD8C;
}

/* Enhanced Result Slot Styles */
.result-slot {
    position: relative;
    overflow: hidden;
}

.result-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #073B4C, #D13D61);
}

/* Responsive adjustments for game results */
@media (max-width: 768px) {
    .game-results-grid {
        grid-template-columns: 1fr;
    }
    
    .history-game-results-grid {
        grid-template-columns: 1fr;
    }
    
    .game-result-item {
        padding: 6px 10px;
    }
    
    .history-game-result {
        padding: 4px 8px;
        font-size: 0.8em;
    }
}

@media (max-width: 576px) {
    .game-results-section {
        padding: 10px;
    }
    
    .result-slot {
        padding: 12px;
    }
    
    .result-slot-header h5 {
        font-size: 1rem;
    }
}
