body {
    padding-top: 56px; /* Bootstrap 5 navbar height */
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 16px;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* styles for validation helpers */
.field-validation-error {
    color: #b94a48;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}

/* ===== NAVBAR ENHANCEMENTS ===== */
.navbar-symbol-search {
    flex: 1;
    max-width: 300px;
    margin: 0 20px;
}

.symbol-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

#navbarSymbolInput {
    border-radius: 20px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    max-width: none;
    width: 200px;
}

#navbarSymbolInput:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    outline: none;
}

#navbarSymbolInput::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.autocomplete-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #f8f9fa;
}

.autocomplete-item .symbol {
    font-weight: 600;
    color: #495057;
}

.autocomplete-item .name {
    font-size: 0.875rem;
    color: #6c757d;
    margin-left: 8px;
}

/* Search Button */
#navbarSearchBtn {
    border-radius: 20px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    position: relative;
}

#navbarSearchBtn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

#navbarSearchBtn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

#navbarSearchBtn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Month Selector Pills */
.navbar-month-selector {
    margin-left: 20px;
}

.month-pill {
    border-radius: 20px !important;
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.month-pill:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    transform: translateY(-1px);
}

.month-pill.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Month Selector */
.month-selector-mobile {
    margin-bottom: 20px;
}

.month-pill-mobile {
    border-radius: 20px !important;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    border: 1px solid #0d6efd !important;
    background-color: transparent !important;
    color: #0d6efd !important;
}

.month-pill-mobile:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
    border-color: #0d6efd !important;
    color: #0d6efd !important;
    transform: translateY(-1px);
}

.month-pill-mobile.active {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.month-pill-mobile.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Chart Transitions */
.fade-transition {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* ===== MAIN CONTENT AREA STYLES ===== */
.symbol-search-container {
    margin-bottom: 8px;
}

.symbol-input-group {
    position: relative;
    display: block;
}

#mainSymbolInput {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    background-color: white;
    color: #495057;
    transition: all 0.3s ease;
    max-width: none;
    width: 100%;
    font-size: 1.25rem;
    font-weight: 700;
}

#mainSymbolInput:focus {
    background-color: white;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

#mainSymbolInput::placeholder {
    color: #6c757d;
}

#mainSymbolInput.searching {
    background-color: #f8f9fa;
    border-color: #0d6efd;
}

#mainSymbolInput.searching::after {
    content: "🔍";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.month-selector-container {
    margin-bottom: 8px;
}

.month-pill-main {
    border-radius: 20px !important;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    border: 1px solid #0d6efd !important;
    background-color: transparent !important;
    color: #0d6efd !important;
}

.month-pill-main:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
    border-color: #0d6efd !important;
    color: #0d6efd !important;
    transform: translateY(-1px);
}

.month-pill-main.active {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.month-pill-main.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-symbol-search {
        max-width: 250px;
        margin: 0 10px;
    }
    
    #navbarSymbolInput {
        width: 180px;
    }
    
    .navbar-month-selector {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .navbar-symbol-search {
        max-width: 200px;
        margin: 0 5px;
    }
    
    #navbarSymbolInput {
        width: 150px;
        font-size: 0.875rem;
    }
    
    .month-pill-mobile {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    
    .month-pill-main {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    
    #mainSymbolInput {
        font-size: 0.875rem;
        padding: 10px 14px;
    }
}

@media (max-width: 575.98px) {
    .navbar-symbol-search {
        max-width: 150px;
    }
    
    #navbarSymbolInput {
        width: 120px;
        font-size: 0.8rem;
    }
    
    .month-pill-mobile {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
    
    .month-pill-main {
        font-size: 0.7rem;
        padding: 6px 8px;
    }
    
    #mainSymbolInput {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}