html {
    font-size: 14px;
    font-family: cursive !important;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #D9FFF5;
    font-family: serif !important;
}

.navbar {
    background-color: #1D1E18 !important;
    color: white;
}

.nav-item {
    color: white !important;
}

h1 {
    font-size: 5.5rem;
}

p {
    font-size: 1.2rem;
}

a {
    color: #aad2ba;
    margin-right: 5px;
}

.btn-primary {
    color: black;
    background-color: #b9f5d8;
}

.btn-primary:hover {
    color: black;
    background-color: #d9fff5;
}

.error {
    color: red;
}

/* DataTables Performance Optimizations */
.dataTables_wrapper {
    position: relative;
    clear: both;
}

.dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 40px;
    margin-left: -50%;
    margin-top: -25px;
    padding-top: 20px;
    text-align: center;
    font-size: 1.2em;
    background: none;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
}

/* Optimize table rendering */
.dataTable {
    width: 100% !important;
    margin-bottom: 0;
}

.dataTable th,
.dataTable td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Improve scrolling performance */
.dataTables_scrollBody {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Row hover effects */
.table-row-hover:hover {
    background-color: rgba(185, 245, 216, 0.3) !important;
    transition: background-color 0.2s ease;
}

/* Loading indicator */
.dataTables_processing {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Optimize pagination */
.dataTables_paginate {
    margin-top: 10px;
}

.dataTables_paginate .paginate_button {
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dataTables_paginate .paginate_button:hover {
    background-color: #b9f5d8;
    border-color: #aad2ba;
}

.dataTables_paginate .paginate_button.current {
    background-color: #1D1E18;
    color: white;
    border-color: #1D1E18;
}

/* Search input optimization */
.dataTables_filter input {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-left: 5px;
}

.dataTables_filter input:focus {
    outline: none;
    border-color: #258cfb;
    box-shadow: 0 0 0 0.1rem rgba(37, 140, 251, 0.25);
}

/* Export loading indicator */
.export-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.export-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .dataTable th,
    .dataTable td {
        max-width: 150px;
        font-size: 12px;
    }
    
    .dataTables_length,
    .dataTables_filter {
        text-align: left;
        margin-bottom: 10px;
    }
}


.card {
    background-color: transparent;
}