:root {
    --primary-bg: #1c1c1b;
    --text-color: #737370;
    --button-bg: rgb(114, 110, 21);
    --button-text: #000000;
    --positive-color: #00ff00;
    --negative-color: #ff0000;
    --tooltip-bg: #00ff00;
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
}

/* Header Styles */
header {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.home-button {
    display: none;
}

/* Layout Components */
main {
    padding: 0rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    display: none;
}

section.active-section {
    display: block;
}

/* Welcome Container */
.welcome-container {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-bg);
    color: var(--text-color);
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-section h1 {
    margin: 0;
    font-size: 1.8rem;
}

.subtitle {
    color: var(--text-color);
    opacity: 0.8;
}

.subtitle a {
    color: var(--text-color);
    text-decoration: none;
}

.subtitle a:hover {
    text-decoration: underline;
}

.description {
    font-size: 1.2rem;
    margin: 2rem 0;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Button & Control Styles */
.game-type-selection,
.game-type-selection-mtt4 {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.game-type-selection-mtt4 {
    margin: 2rem 0;
}

.game-type-btn-mtt4 {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

button {
    background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 4px;
color: var(--text-color);
text-decoration: none;
text-align: center;
padding: 0.5rem 1rem;
font-weight: 500;
transition: all 0.3s;
cursor: pointer;
font-size: 0.8rem;
display: inline-block;
}

button:hover {
    background: rgba(219, 211, 33, 0.1);

border-color: rgba(219, 211, 33, 0.3);
}

.reset-btn {
    background: #ab3737;
    color: #1c1515;
    width: 100px;
}

/* Filter Components */
.filter-result {
    width: 100%;
    margin-top: 1rem;
    padding: 10px;
    background: none;
    border-radius: 0;
}

.filter-result h3 {
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 0;
}

.filter-container {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
}

.filter-code {
    width: 95%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #525250;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: calc(1.2em * 4 + 20px);
    max-height: calc(1.2em * 4 + 20px);
    overflow-y: auto;
}

/* Button Variations */
.copy-btn {
    position: static;
    display: inline-block;
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    vertical-align: middle;
}

.filter-reg-btn.copy-btn {
    background: #bfb93b;
    color: #000000;
    width: auto;
    min-width: 120px;
    height: 28px;
    line-height: 12px;
    font-size: 12px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button Groups */
.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.filter-result-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Report Name Input */
.report-name-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.report-name-container input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.5rem;
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    width: 800px;
}

.report-name-copy-btn {
    position: absolute;
    right: -120px;
    bottom: 0;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Filter Options Layout */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 0rem;
}

.filter-select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 300px;
    background: white;
    color: black;
    font-family: 'Space Grotesk', sans-serif;
}

/* ROL Type Selection */
.rol-type-selection {
    margin: 1rem 0;
}

.rol-size-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group input {
    width: 60px;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
    color: black;
    font-family: 'Space Grotesk', sans-serif;
}

.decimal-info {
    color: #FFC300;
    font-size: 0.85rem;
    font-style: italic;
    margin-left: 1rem;
}

/* Filter Image */
.filter-image {
    max-width: 100%;
    margin-top: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* EV Table Styles */
.ev-table-preview {
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow-x: auto;
    max-width: 45%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.ev-matrix {
    border-collapse: collapse;
    margin: 0 auto;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.6rem;
    background: #1a1a1a;
    width: 100%;
    table-layout: fixed;
    aspect-ratio: 1/1;
}

.ev-matrix th,
.ev-matrix td {
    padding: 0;
    text-align: right;
    vertical-align: bottom;
    border: 1px solid #333;
    width: 7.14%; /* 100% / 14 columns */
    height: 0;
    position: relative;
    font-weight: normal;
    aspect-ratio: 1/1;
}

.ev-matrix th::after,
.ev-matrix td::after {
    content: '';
    display: block;
    padding-bottom: 100%;
}

.ev-matrix th {
    background: #2a2a2a;
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
    position: relative;
}

.ev-matrix th span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ev-matrix td {
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.ev-matrix td .hand-text {
    position: absolute;
    bottom: 2px;
    right: 2px;
    opacity: 0.9;
    font-size: 0.6rem;
}

.ev-matrix td .ev-value {
    position: absolute;
    top: 2px;
    left: 2px;
    font-weight: bold;
    font-size: 0.68rem;
}

/* EV Matrix Cell States */
.ev-matrix td.positive {
    background-color: var(--positive-color) !important;
}

.ev-matrix td.negative {
    background-color: var(--negative-color) !important;
}

.ev-matrix td.neutral {
    background-color: #1a1a1a !important;
}

.ev-matrix td.zero {
    background-color: #1a1a1a !important;
    color: #ffffff;
}

.ev-matrix td.value {
    color: #ffffff;
}

.ev-matrix td.pair .ev-value,
.ev-matrix td.suited .ev-value,
.ev-matrix td.offsuit .ev-value {
    color: #eeeef0;
}

.ev-matrix td.pair {
    background: #2d2d4d;
    color: #dae9f3;
    border: 1px solid #7e7c836b;
}

.ev-matrix td.pair.positive {
    background-color: var(--positive-color) !important;
}

.ev-matrix td.pair.negative {
    background-color: var(--negative-color) !important;
}

.ev-matrix td.suited {
    background: #2d3d2d;
    color: #5cd1df;
}

.ev-matrix td.offsuit {
    background: #3d2d2d;
    color: #f1f3f6;
}

/* EV Matrix Hover Effects */
.ev-matrix td:hover {
    filter: brightness(1.2);
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1.5rem 0.75rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    font-size: 0.9rem;
}

.stat-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-field label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.stat-field input {
    font-family: 'Space Grotesk', monospace;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0;
    color: var(--button-bg);
    font-size: 1rem;
    width: 100%;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.export-buttons button {
    width: 100%;
    margin-top: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    resize: none;
    overflow-y: auto;
}

.export-buttons button:hover {
    opacity: 0.9;
   
}

/* Clear Text Button */
#clearTextBtn {
    display: block;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s;
    margin-left: 1rem;
}

#clearTextBtn:hover {
    opacity: 0.9;
}

/* Action Buttons */
.action-buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.action-buttons-container button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: opacity 0.3s;
}

.action-buttons-container button:hover {
    opacity: 0.9;
}

/* Export Filter Button */
#exportFilterBtn {
    background-color: #4CAF50;
}

/* Logo & Branding */
.welcome-logo {
    max-width: 100px;
    height: auto;
    margin: 20px 0;
}

/* Report Setup */
.report-setup {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    background-color: var(--primary-bg);
    color: var(--text-color);
}

/* Spins Filters */
.spins-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    background-color: var(--primary-bg);
    color: var(--text-color);
}

.spins-filters .action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.spins-filters .action-buttons button {
    width: 137px;
    margin-top: 0;
    padding: 1px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    resize: none;
    overflow-y: auto;
    transition: opacity 0.3s, transform 0.2s;
}

.spins-filters .action-buttons button:hover {
    opacity: 0.9;
   
}

/* MTT4 Filter Result */
#filterResultMtt4 .filter-container {
    margin-top: 0;
}

#filterResultMtt4 .copy-btn {
    display: none;
}

/* Instructions Link */
.instructions-link {
    display: none;
}

/* MTT Construction */
.mtt-construction {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-bg);
    color: var(--text-color);
}

/* Contact Button */
.contact-btn {
    display: inline-block;
    background: var(--button-bg);
    color: var(--button-text);
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

/* Contact Frame */
.contact-frame {
    width: 100%;
    height: 800px;
    border: none;
    margin-top: 2rem;
    border-radius: 8px;
    background: #ffffff;
}

/* Textarea */
textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text-color);
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
}

/* Reports Container */
.reports-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}

/* Report Button */
.report-btn {
    width: 100%;
    margin-top: 0;
    padding: 0px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
    text-align: center;
    resize: none;
    width: 16%;
    overflow-y: auto;
    cursor: pointer;
    transition: opacity 0.3s;
}

.report-btn:hover {
    opacity: 0.9;
}

/* Warning Text */
.warning-text {
    color: #ff0000;
    margin-top: 1rem;
    font-weight: bold;
}

/* Effective Stack Selection */
.eff-stack-selection {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.eff-stack-selection label {
    margin-right: 1rem;
}

.eff-stack-selection .input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eff-stack-selection input {
    width: 60px;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
    color: black;
    font-family: 'Space Grotesk', sans-serif;
}

/* Coming Soon Section */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 2rem;
}

.coming-soon h3 {
    font-size: 2rem;
    color: var(--button-bg);
    margin-bottom: 2rem;
}

/* Back Button */
.back-btn {
    background: var(--button-bg);
    color: var(--button-text);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-btn:hover {
    opacity: 0.9;
    
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Situation Buttons */
.situation-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin: 1rem 0;
    background-color: var(--primary-bg);
}

.situation-btn {
    background: var(--primary-bg);
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.situation-btn:hover {
    background: #3a3a3a;
}

.situation-btn.active {
    background: #4a4a4a;
    border-color: var(--button-bg);
}

/* Position Text Styles */
.btn-text {
    color: #ffffff;
    background-color: #232a87;
    padding: 2px 4px;
    border-radius: 3px;
}

.sb-text {
    color: #ffffff;
    background-color: #7c478f;
    padding: 2px 4px;
    border-radius: 3px;
}

.bb-text {
    color: #ffffff;
    background-color: #6c2387;
    padding: 2px 4px;
    border-radius: 3px;
}

.hero-text {
    color: #ffffff;
    background-color: #85252f;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Situation Selection */
.situation-selection {
    margin-top: 1rem;
}

.situation-selection label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

#situationSelect {
    display: none;
}

/* File Upload Section */
.file-upload-section {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.csv-upload {
    margin-bottom: 1rem;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border: 2px dashed var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-label:hover {
    border-color: var(--button-bg);
    background: rgba(255, 195, 0, 0.1);
}

.upload-icon {
    width: 48px;
    height: 48px;
    fill: var(--text-color);
}

.upload-label:hover .upload-icon {
    fill: var(--button-bg);
}

.csv-info {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Players Grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.player-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.player-name {
    color: var(--text-color);
    font-size: 0.9rem;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.player-hands {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Color Options */
.color-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: 1rem 0;
    padding: 0;
    overflow-x: auto;
    justify-content: center;
    align-items: center;
    background: none;
}

.color-options label {
    display: block;
    padding: 0.15rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: fit-content;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-options input[type="checkbox"] {
    display: none;
}

.color-options input[type="checkbox"]:checked + label {
    border: 2px solid #cad927;
}

/* Color Labels */
.color-options label[for="-1"] { background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.9)); color: #333; }
.color-options label[for="0"] { background: linear-gradient(135deg, rgba(40, 40, 40, 0.9), rgba(20, 20, 20, 0.9)); color: #fff; }
.color-options label[for="1"] { background: linear-gradient(135deg, rgba(255, 255, 0, 0.7), rgba(255, 215, 0, 0.7)); color: #333; }
.color-options label[for="2"] { background: linear-gradient(135deg, rgba(0, 255, 0, 0.7), rgba(50, 205, 50, 0.7)); color: #333; }
.color-options label[for="3"] { background: linear-gradient(135deg, rgba(0, 255, 255, 0.7), rgba(0, 206, 209, 0.7)); color: #333; }
.color-options label[for="4"] { background: linear-gradient(135deg, rgba(0, 0, 255, 0.7), rgba(0, 0, 128, 0.7)); color: #fff; }
.color-options label[for="5"] { background: linear-gradient(135deg, rgba(75, 0, 130, 0.7), rgba(46, 8, 84, 0.7)); color: #fff; }
.color-options label[for="6"] { background: linear-gradient(135deg, rgba(128, 0, 128, 0.7), rgba(75, 0, 130, 0.7)); color: #fff; }
.color-options label[for="7"] { background: linear-gradient(135deg, rgba(255, 0, 0, 0.7), rgba(139, 0, 0, 0.7)); color: #fff; }
.color-options label[for="8"] { background: linear-gradient(135deg, rgba(255, 165, 0, 0.7), rgba(255, 140, 0, 0.7)); color: #333; }

/* Cards Grid */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 1rem;
}

.stat-card {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    min-width: fit-content;
}

.stat-name {
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.stat-value {
    font-size: 14px;
    color: var(--button-bg);
    font-weight: bold;
    white-space: nowrap;
}

.stat-value.positive {
    color: #00ff00;
}

.stat-value.negative {
    color: #ff0000;
}

/* Players List Container */
.players-list-container {
    margin-top: 2rem;
    padding: 0;
    background: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.players-list-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.players-list {
    width: 100%;
    margin-top: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    resize: none;
    max-height: calc(1.2em * 4 + 20px);
    overflow-y: auto;
}

/* Database specific styles */
.explanation-box {
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--button-bg);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
    text-align: left;
}

.explanation-box h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--button-bg);
}

.import-section {
    text-align: center;
    margin: 20px 0;
}

.import-section .report-btn {
    display: inline-block;
    width: auto;
    margin: 0 auto;
}

.status-message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
}

.status-message.processing {
    background-color: rgba(255, 195, 0, 0.1);
    color: #ffc300;
}

.status-message.success {
    background-color: rgba(0, 255, 0, 0.1);
    color: #00ff00;
}

.status-message.error {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff5555;
}

.reports-section {
    margin-top: 30px;
    text-align: left;
}

.reports-section h3 {
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

#no-reports-message {
    color: var(--text-color);
    font-style: italic;
    padding: 10px 0;
}

.reports-list {
    list-style: none;
    padding: 0;
}

.report-item {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.report-item:hover {
    
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.report-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: var(--button-bg);
}

.report-meta {
    color: var(--text-color);
    font-size: 0.9em;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.view-report-btn, .delete-report-btn {
    padding: 5px 10px;
    margin-right: 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
}

.view-report-btn {
    background-color: var(--button-bg);
    color: var(--button-text);
}

.delete-report-btn {
    background-color: #ab3737;
    color: #ffffff;
}

.view-report-btn:hover, .delete-report-btn:hover {
    opacity: 0.9;
}

/* Database Report Table */
.reports-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
}

.reports-table thead {
    background-color: rgba(255, 255, 255, 0.08);
}

.reports-table th {
    padding: 1px 15px;
    text-align: center;
    font-weight: bold;
    color: var(--button-bg);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.reports-table th.sortable {
    cursor: pointer;
    position: relative;
}

.reports-table th.sortable:hover {
    background-color: #2a2a2a;
}

.reports-table th.sort-asc::after {
    content: "▲";
    position: absolute;
    right: 10px;
}

.reports-table th.sort-desc::after {
    content: "▼";
    position: absolute;
    right: 10px;
}

.reports-table td {
    padding: 1px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reports-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease;
}

.reports-table .report-name {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reports-table .report-type {
    font-weight: 500;
}

.reports-table .report-type:empty:after {
    content: 'OTHER';
    opacity: 0.5;
}

.reports-table .delete-report-btn {
    background: rgba(251, 2, 2, 0.15);
    border: 1px solid rgba(220, 133, 133, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    text-align: center;
    padding: 0.1rem 1rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.8rem;
    display: inline-block;
}

.reports-table .delete-report-btn:hover {
    background: rgba(246, 4, 4, 0.1);
    border-color: rgba(251, 4, 4, 0.6);
}

.reports-table .select-report-btn:hover,
.reports-table .delete-report-btn:hover {
    opacity: 0.9;
}

/* Style for OTHER type reports */
.reports-table tr.report-type-other {
    background-color: #1a0807;
}

.reports-table tr.report-type-other:hover {
    background-color: #2a1817;
}

/* Current file info standardized style */
#current-file-info,
.current-file-info,
#current-report-display {
    font-size: 0.8rem;
    color: var(--text-color);
    text-align: center;
    width: 100%;
    margin: 1px 0;
    display: inline-block;
    background-color: transparent;
    border: none;
    padding: 0;
}

#current-file-info p,
.current-file-info p,
#current-report-display p {
    margin: 0;
    display: inline-block;
    padding: 0.1rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    font-weight: normal;
    text-align: center;
}

#current-file-info strong,
.current-file-info strong,
#current-report-display strong {
    color: var(--button-bg);
    font-weight: bold;
}

.ritz .waffle td:hover {
    cursor: pointer;
}

/* --- FILTER BUTTONS SELECTED/ACTIVE STATE --- */
.filter-reg-btn.active {
    outline: 0px solid #cad927 !important;
    border-color: #cad927 !important;
    background-color: #373d17 !important;
    color: #e6e691 !important;
    box-shadow: 0 2px 8px rgba(202, 217, 39, 0.11) !important;
}