/* SEC Financial Statement Extractor - Custom Styles */

:root {
    --primary-color: #2563eb;
    --secondary-color: #0f172a;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-bottom: 50px;
}

/* Header Styles */
.header {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: 20px;
}

.header h1 {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 2rem;
}

.header .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border: none;
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-label {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-control-lg {
    font-size: 1.125rem;
    padding: 0.875rem 1rem;
}

.form-select-lg {
    font-size: 1.125rem;
    padding: 0.875rem 1rem;
}

/* Button Group Radio Buttons */
.btn-group .btn-check:checked + label {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background-color: var(--success-color);
    border: none;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Loading Animation */
.spinner-border {
    border-width: 0.3rem;
}

.progress {
    border-radius: 10px;
    background-color: rgba(37, 99, 235, 0.1);
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Alert Styles */
.alert-success {
    background-color: #d1fae5;
    border: 2px solid var(--success-color);
    border-radius: 8px;
    color: #065f46;
}

/* Table Preview Styles */
.table-responsive {
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.table td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-bordered {
    border: none;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid var(--border-color);
}

/* Info Card */
.card-body ul {
    padding-left: 1.25rem;
}

.card-body ul li {
    margin-bottom: 0.5rem;
    color: #64748b;
}

/* Footer */
.footer {
    background: white;
    border-radius: 12px;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        border-radius: 8px !important;
        margin-bottom: 0.5rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Placeholder Panel */
#placeholderPanel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}

#placeholderPanel i {
    opacity: 0.3;
}

/* Error Panel */
.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

/* Success Panel */
.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* Preview Section */
.preview-section {
    background-color: var(--light-bg);
    padding: 1.25rem;
    border-radius: 8px;
}

/* Small text improvements */
.text-muted {
    color: #64748b !important;
}

small.form-text {
    display: block;
    margin-top: 0.375rem;
}

/* Icon spacing */
i.me-1 {
    margin-right: 0.375rem;
}

i.me-2 {
    margin-right: 0.5rem;
}
