/* TIS-specific styles */
.tis-io-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #aaa;
}
body.theme-gold .tis-io-note {
    color: rgb(206, 186, 76);
}
body.theme-gold .upload-section-tis {
    background: rgba(206, 186, 76, 0.12);
    border-color: rgba(206, 186, 76, 0.35);
}
body.theme-gold .entity-card {
    background: rgba(206, 186, 76, 0.1);
    border-color: rgba(206, 186, 76, 0.35);
}
body.theme-gold .entity-card:hover {
    background: rgba(206, 186, 76, 0.2);
    border-color: rgba(206, 186, 76, 0.6);
}
body.theme-gold .entity-card.selected {
    background: rgba(206, 186, 76, 0.25);
    border-color: rgb(206, 186, 76);
}
body.theme-gold .entity-card p {
    color: #e8e8e8;
}
body.theme-gold .upload-box {
    border-color: rgba(206, 186, 76, 0.5);
}
body.theme-gold .upload-box p {
    color: #e8e8e8;
}
body.theme-gold .tax-period-toggle-text,
body.theme-gold .tax-period-toggle-hint {
    color: rgb(206, 186, 76);
}
body.theme-gold .vendor-hint-text {
    color: rgba(206, 186, 76, 0.7);
}
.nav-link {
    color: rgb(206, 186, 76);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(206, 186, 76, 0.5);
    border-radius: 4px;
    transition: all 0.2s;
}
.nav-link:hover {
    background-color: rgba(206, 186, 76, 0.1);
    border-color: rgb(206, 186, 76);
}
.nav-link.active {
    background-color: rgba(206, 186, 76, 0.2);
}
/* Configuration Section */
.config-section {
    background-color: rgba(13, 40, 73, 0.6);
    border: 1px solid rgba(206, 186, 76, 0.3);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.config-section h3 {
    color: rgb(206, 186, 76);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.config-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.config-group label {
    color: #f2f2f2;
    font-size: 0.85rem;
    font-weight: 500;
}
.config-group select,
.config-group input[type="text"],
.config-group input[type="number"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(206, 186, 76, 0.5);
    border-radius: 4px;
    background-color: rgba(13, 40, 73, 0.8);
    color: #f2f2f2;
    font-family: inherit;
    font-size: 0.9rem;
}
.config-group select:focus,
.config-group input:focus {
    outline: none;
    border-color: rgb(206, 186, 76);
}
.config-hint {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
}

/* File Upload Section */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.main-content .upload-section {
    max-width: 900px;
    margin: 0 auto;
}

.upload-section-tis {
    background-color: rgba(13, 40, 73, 0.5);
    border: 1px solid rgba(206, 186, 76, 0.3);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.upload-section-tis h3 {
    color: rgb(206, 186, 76);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.upload-box {
    border: 2px dashed rgba(206, 186, 76, 0.4);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.upload-box:hover {
    border-color: rgb(206, 186, 76);
    background-color: rgba(206, 186, 76, 0.05);
}
.upload-box.has-file {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}
.upload-box p {
    color: #ccc;
    margin: 0.5rem 0;
}
.upload-box .file-types {
    font-size: 0.8rem;
    color: #888;
}
.file-display {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.file-display .file-name {
    color: #90EE90;
    font-size: 0.9rem;
}
.file-display .remove-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

/* Entity Type Cards */
.entity-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}
.entity-card {
    background-color: rgba(13, 40, 73, 0.6);
    border: 2px solid rgba(206, 186, 76, 0.3);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.entity-card:hover {
    border-color: rgba(206, 186, 76, 0.6);
    background-color: rgba(206, 186, 76, 0.1);
}
.entity-card.selected {
    border-color: rgb(206, 186, 76);
    background-color: rgba(206, 186, 76, 0.2);
}
.entity-card h4 {
    color: rgb(206, 186, 76);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}
.entity-card p {
    color: #aaa;
    font-size: 0.8rem;
    margin: 0;
}
.entity-card input[type="radio"] {
    display: none;
}

/* Results Section */
.results-section {
    background-color: rgba(13, 40, 73, 0.5);
    border: 1px solid rgba(76, 175, 80, 0.5);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}
.results-section h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}
.stat-item {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}
.stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgb(206, 186, 76);
}
.stat-item .stat-label {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.25rem;
}

/* Info Section */
.info-section {
    background-color: rgba(13, 40, 73, 0.4);
    border: 1px solid rgba(206, 186, 76, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}
.info-section h4 {
    color: rgb(206, 186, 76);
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
}
.info-section ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #ccc;
    font-size: 0.85rem;
}
.info-section li {
    margin-bottom: 0.4rem;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, rgb(206, 186, 76) 0%, rgb(186, 166, 56) 100%);
    color: rgb(13, 40, 73);
    text-decoration: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(206, 186, 76, 0.3);
}
.download-btn:hover {
    background: linear-gradient(135deg, rgb(226, 206, 96) 0%, rgb(206, 186, 76) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(206, 186, 76, 0.4);
}
.download-btn:active {
    transform: translateY(0);
}
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background-color: transparent;
    color: rgb(206, 186, 76);
    border: 2px solid rgb(206, 186, 76);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.secondary-btn:hover {
    background-color: rgba(206, 186, 76, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(206, 186, 76, 0.2);
}
.secondary-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   Responsive — Tablet (768px)
   ========================================================================== */
@media (max-width: 768px) {
    .entity-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .config-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Responsive — Mobile (600px)
   ========================================================================== */
@media (max-width: 600px) {
    .entity-cards {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .entity-card {
        padding: 0.75rem;
    }
    .entity-card h4 {
        font-size: 1rem;
    }
}
