body {
    /* Base properties */
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;

    /* Layout properties */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;

    /* Slightly more pronounced gradient */
    background: linear-gradient(
        135deg,
        #1a2942 0%,        /* keep dark navy edge */
        #4a6e9c 50%,       /* lightened middle blue */
        #1e3356 100%       /* keep dark navy edge */
    ) !important;

    color: #f2f2f2;
}
/* Add subtle animated gradient overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0.03) 80%
    );
    animation: subtleShift 15s ease-in-out infinite;
    pointer-events: none;
}

/* Add very subtle noise texture */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
}

@keyframes subtleShift {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}


/* Query Input Styles */
#queryInput {
    width: calc(100% - 2px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Query Types Styles */
.query-types {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.query-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}

#runQueryBtn, #clearBtn {
    padding: 10px 20px;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    margin: 0 10px;
    font-size: 16px;
}

.query-type-btn {
    padding: 10px;
    margin: 0 5px;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 14px;
    flex: 1;
    max-width: 200px;
}

.query-type-btn:hover {
    background-color: #72A0C1;
}

.query-type-btn.selected {
    background-color: #72A0C1;
}

.action-buttons {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

#runQueryBtn {
    background-color: #28a745;
}

#clearBtn {
    background-color: #A95C68;
}

#results {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    color: #333333;
}

.result-item {
    /* Keep existing properties */
    font-size: 18px;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap;
    margin-bottom: 15px;
    text-align: left;
    /* Update colors */
    color: rgba(255, 255, 255, 0.9);
}
/* General button/menu item styles */
.nav-menu-item,
button,
.support-btn,
.logout-btn {
    padding: 15px 30px;
    background-color: #f0f0f0;
    color: #1a2942;
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Hover state for all buttons */
.nav-menu-item:hover,
button:hover,
.support-btn:hover,
.logout-btn:hover {
    background-color: #72A0C1;
    color: white;
}

/* Universal header styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 300;
    letter-spacing: -0.03em;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.95) 0%,
        rgba(255,255,255,0.8) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Specific header sizes */
h1 {
    font-size: 2.5em;
    margin: 40px 40px 20px;
}

h2 {
    font-size: 2em;
    margin: 30px 0 15px;
}

h3 {
    font-size: 1.75em;
    margin: 25px 0 12px;
}

h4 {
    font-size: 1.5em;
    margin: 20px 0 10px;
}

h5 {
    font-size: 1.25em;
    margin: 15px 0 8px;
}

h6 {
    font-size: 1em;
    margin: 10px 0 5px;
}

/* Active state for all buttons */
.nav-menu-item.active,
button:active,
.support-btn.active,
.logout-btn:active {
    background-color: rgba(240, 244, 248, 0.9);
    color: white;
}

.result-item strong {
    /* Keep existing properties */
    font-weight: 700;
    display: inline-block;
    width: 150px;
    vertical-align: top;
    /* Update color */
    color: rgba(255, 255, 255, 0.95);
}

.result-item span,
.result-item a {
    /* Keep existing properties */
    display: inline-block;
    vertical-align: top;
    max-width: calc(100% - 160px);
    /* Update color */
    color: rgba(255, 255, 255, 0.8);
}

.result-item a {
    word-break: break-all;
    color: #333333;
    text-decoration: none;
    display: inline-block;
    vertical-align: top;
    max-width: calc(100% - 160px);
}

.result-item a:hover {
    text-decoration: underline;
}

.result-item .filing-link {
    display: inline-block;
    margin-left: 5px;
    font-weight: 400;
}

/* Comparison Styles */
.comparison-container {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.comparison-content {
    /* Keep existing properties */
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* Update color */
    color: rgba(255, 255, 255, 0.9);
}

.comparison-content p {
    margin-bottom: 10px;
}

.comparison-column {
    width: 48%;
}

.comparison-header {
    font-size: 1.1em;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.comparison-column h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #383838;
}

.comparison-column pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f1f3f5;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e2e6ea;
}

/* Save Query Button Styles */
.save-query-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.save-query-btn:hover {
    background-color: #45a049;
}

.view-all-codes-btn {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.view-all-codes-btn:hover {
    background-color: #e0e0e0;
}

#allGAAPCodes {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#gaapCodeFilter {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
}

#gaapCodesList {
    max-height: 300px;
    overflow-y: auto;
    padding-left: 20px;
}

#gaapCodesList li {
    margin-bottom: 5px;
}
.back-home-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 15px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s, opacity 0.3s;
    z-index: 1000;
    opacity: 0.7;
}
.stock-analysis-results {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stock-analysis-results .unavailable {
    color: #666;
    font-style: italic;
}

.stock-analysis-results .note {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    font-size: 0.9em;
    color: #666;
    border-radius: 4px;
}

.stock-analysis-results h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Enhance existing result-item styles */
.stock-analysis-results .result-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    padding: 8px 0;
}

.stock-analysis-results .result-item strong {
    font-weight: 600;
    color: #444;
    flex: 1;
}

.stock-analysis-results .result-item span {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1em;
    color: #333;
    text-align: right;
    flex: 1;
}


.error {
    color: #ff8a8a;
    padding: 10px;
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.2);
    border-radius: 4px;
    margin-top: 10px;
}