/* Custom styles for lvl Analytics */
/* Dark theme colors */
:root {
    --color-dark-bg: #22201c;      /* Background color */
    --color-input-bg: #22201c;     /* Text Entry Field */
    --color-text-bg: #f6f4f0;      /* Text background */
    --color-button-bg: #13321f;    /* Radio Button background */
    --color-text-light: #ffffff;
    --color-text-dark: #22201c;
}
/* Base styles */
body {
    background-color: var(--color-dark-bg);
    color: var(--color-text-light);
    font-family: "Arial Rounded MT Bold", "Helvetica Rounded", "Arial", system-ui, -apple-system, sans-serif;
}
/* Background and cards */
.bg-dark {
    background-color: var(--color-dark-bg);
}
.bg-dark-card {
    background-color: #1a1a1a !important;
    color: #ffffff;
}
.bg-dark-input {
    background-color: var(--color-input-bg);
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
/* Button styles */
.btn-primary {
    background-color: var(--color-button-bg);
    color: var(--color-text-light);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #1a4229;
    transform: translateY(-1px);
}
/* Shadow effects */
.shadow-glow {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}
/* Logo container */
.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 0;  /* Removed bottom margin */
    padding: 1rem;
}
.logo-container::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-button-bg), transparent);
}
/* Update header alignment */
.header-container {
    display: flex;
    justify-content: flex-start;  /* Align to left */
    width: 100%;
    padding: 1rem 2rem;
}
/* Input field styles with enhanced shadow */
.input-field {
    background-color: #44403a;  /* Text Entry Field color */
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}
.input-field:focus {
    border-color: var(--color-button-bg);
    box-shadow: 
        0 0 0 2px rgba(19, 50, 31, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
}
.input-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
/* Loading animation */
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--color-button-bg);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Results section */
.results-container {
    background-color: #1a1a1a;  /* Dark background */
    color: #ffffff;  /* White text */
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.results-container h2 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: bold;
}

.results-container h3 {
    color: #ffffff;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.results-container p {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.results-container a {
    color: #4CAF50;  /* Green for links */
    text-decoration: underline;
}

.results-container a:hover {
    color: #45a049;  /* Darker green on hover */
}

/* Pre-formatted text in results */
.results-container pre {
    background-color: #2d2d2d;  /* Slightly lighter than container background */
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.results-container .whitespace-pre-wrap {
    color: #ffffff;
    white-space: pre-wrap;
}

#results {  /* Add specific styling for the results div */
    color: #ffffff;
    background-color: #1a1a1a;
    border-radius: 12px;
    margin-top: 1rem;
}

#results .bg-white {  /* Override any white backgrounds in results */
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

#results p strong {  /* Make strong text stand out */
    color: #4CAF50;
    font-weight: bold;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-input-bg);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: var(--color-button-bg);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a4229;
}
/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    h1 br {
        display: none;
    }
}
/* Error states */
.error-message {
    background-color: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #ef4444;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Analysis section specific styles */
.analysis-section {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 0.5rem;
}

.analysis-section h3 {
    color: #4CAF50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Filing Information section */
.filing-info {
    background-color: #2d2d2d;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.filing-info h3 {
    color: #4CAF50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Company name styling */
.company-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 1.5rem;
}

/* Links in results */
.results-container a {
    color: #4CAF50;
    text-decoration: underline;
}

.results-container a:hover {
    color: #45a049;
}

/* Override any white backgrounds */
.bg-white {
    background-color: #1a1a1a !important;
}

.text-white {
    color: #ffffff !important;
}

/* Analysis text container */
.whitespace-pre-wrap {
    white-space: pre-wrap;
    font-family: monospace;
    background-color: #2d2d2d;
    padding: 1rem;
    border-radius: 0.5rem;
    color: #ffffff;
}

/* CIK and other metadata */
.metadata {
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.filing-info a {
    color: #4CAF50;
    text-decoration: underline;
}

.filing-info a:hover {
    color: #66BB6A;
} 