/* Custom Variables */
:root {
    --accent-blue: #4F00D0;
    --accent-light-purple: #cca4ff;
    --accent-orange: #ff3e00;
    --accent-light-orange: #ffb49d;
    --accent-white: #f5f5f5;
    --accent-black: #000000;
    
    /* Override Bootstrap variables for light mode */
    --bs-body-bg: var(--accent-white);
    --bs-body-color: var(--accent-black);
    --bs-border-color: #dee2e6;
}

/* Theme-independent styles */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Additional styles beyond Bootstrap */
.file-upload-container {
    border: 1px dashed rgba(204, 164, 255, 0.5);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.file-upload-container:hover {
    border-color: var(--accent-blue);
    background-color: rgba(204, 164, 255, 0.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Theme toggle button - hidden in light mode only design */
.theme-toggle {
    display: none;
}

.hidden {
    display: none;
}

.card {
    border: 1px solid rgba(204, 164, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    background-color: white;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card-header {
    border-bottom: 1px solid rgba(204, 164, 255, 0.15);
    padding: 1rem 1.25rem;
    background-color: white;
}

.card-body {
    padding: 1.25rem;
}

/* Form styling */
.form-control, .form-select {
    border-radius: 6px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(204, 164, 255, 0.3);
    transition: all 0.3s ease;
    background-color: white;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 2px rgba(79, 0, 208, 0.1);
    border-color: var(--accent-blue);
}

.form-check-input:checked {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* Button styling */
.btn {
    border-radius: 6px;
    padding: 0.6rem 1.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.btn-primary:hover {
    background-color: #4000a8;
    border-color: #4000a8;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.btn-success:hover {
    background-color: #e53800;
    border-color: #e53800;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border-color: rgba(204, 164, 255, 0.3);
    color: var(--accent-black);
}

.btn-outline-secondary:hover {
    background-color: rgba(204, 164, 255, 0.1);
    border-color: var(--accent-light-purple);
    transform: translateY(-2px);
}

/* Table styling */
.preview-table {
    font-size: 0.875rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(204, 164, 255, 0.2);
}

.preview-table th, 
.preview-table td {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.7rem 0.9rem;
}

.preview-table thead th {
    background-color: white;
    border-bottom: 1px solid rgba(204, 164, 255, 0.2);
    color: var(--accent-blue);
    font-weight: 600;
}

/* Loading spinner */
.loading-spinner {
    display: none;
    text-align: center;
    margin: 1.5rem 0;
}

.spinner-border {
    color: var(--accent-blue);
}

/* Error message */
.error-message {
    display: none;
    color: var(--bs-danger);
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(255, 62, 0, 0.1);
    border-left: 4px solid var(--accent-orange);
}

/* Section navigation */
.section-nav {
    margin-bottom: 2rem;
}

/* File info badges */
.file-info {
    margin-bottom: 1.25rem;
}

.file-info .badge {
    margin-right: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.badge.bg-info {
    background-color: var(--accent-blue) !important;
    color: white;
}

.badge.bg-secondary {
    background-color: var(--accent-light-purple) !important;
    color: var(--accent-black);
}

/* Results cards */
.results-container .card {
    margin-bottom: 1.25rem;
    border: 1px solid rgba(204, 164, 255, 0.2);
}

.results-container .card-header {
    background-color: white;
    border-bottom: 1px solid rgba(204, 164, 255, 0.15);
}

.results-container table {
    margin-bottom: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(204, 164, 255, 0.1);
}

/* Table styling improvements */
.table {
    border-color: rgba(204, 164, 255, 0.1);
}

.table th {
    font-weight: 600;
    color: var(--accent-blue);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(204, 164, 255, 0.05);
}

/* Animations and transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Upload icon container */
.upload-icon-container {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 70px;
}

.upload-icon-container .fa-plus {
    bottom: 8px;
    right: 3px;
    background-color: var(--accent-light-purple);
    border-radius: 50%;
    padding: 4px;
    font-size: 0.75rem;
    color: var(--accent-blue);
}

/* Header icon container */
.header-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 8px;
    background-color: rgba(204, 164, 255, 0.15);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(204, 164, 255, 0.3);
}

.header-icon {
    color: var(--accent-blue);
    font-size: 1.75rem;
}

/* Custom header */
header h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
    display: inline-block;
    font-size: 2.5rem;
}

header .lead {
    font-size: 1.2rem;
    color: var(--accent-black);
    opacity: 0.7;
}

/* Footer styling */
footer {
    background-color: var(--accent-white);
    padding: 1.5rem 0;
    position: relative;
    margin-top: 4rem;
    border-top: 1px solid rgba(204, 164, 255, 0.3);
}
