img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}
a {
    text-decoration: none;
    color: inherit;
}
.logo-img {
    width: 300px;
    object-fit: contain;
}
.form-control, .form-select {
    height: 45px;
    outline: none;
    box-shadow: none;
    &:focus {
        box-shadow: none;
    }
}
.form-label {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
}
.form-control::placeholder {
    font-size: 16px;
    font-weight: 400;
    color: #cccccc;
}
.container {
    max-width: 1440px;
    padding-left: 25px;
    padding-right: 25px;
}
.btn {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 16px;
    height: 45px;
    padding: 10px 20px;
    outline: none;
    box-shadow: none;
    &:focus {
        box-shadow: none;
    }
}
.btn-sm {
    font-size: 12px;
    padding: 5px 10px;
    height: 30px;
}
.display-1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin: 0;
}
.display-2 {
    font-size: 18px;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin: 0;
}

.sc-card {
    border: 1px solid #dee2e6;
    padding: 15px;
    border-radius: 5px;
    background-color: #ffffff;
}

.sc-fs-10 {
    font-size: 10px !important;
}
.sc-fs-12 {
    font-size: 12px !important;
}
.sc-fs-14 {
    font-size: 14px !important;
}
.sc-fs-16 {
    font-size: 16px !important;
}
.sc-fs-18 {
    font-size: 18px !important;
}
.sc-fs-20 {
    font-size: 20px !important;
}
.sc-fs-22 {
    font-size: 22px !important;
}
.sc-fs-24 {
    font-size: 24px !important;
}

@media (max-width: 992px) {
    .sc-fs-16-sm {
        font-size: 16px !important;
    }
    .sc-fs-14-sm {
        font-size: 14px !important;
    }
    .sc-fs-12-sm {
        font-size: 12px !important;
    }
}


.table>:not(caption)>*>* {
    background-color: transparent;
    color: #000000;
    border: 1px solid #dee2e6;
}

.table thead {
    background: #f5f5f5;
}


/* Autocomplete dropdown styles */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a291a;
    border: 1px solid #243324;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #243324;
    transition: background-color 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
    background-color: #243324;
}

.autocomplete-item .stock-name {
    font-weight: 500;
    color: #fff;
}

.autocomplete-item .stock-symbol {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.stock-of-day-ltp.updating {
    opacity: 0.6;
}
.table-ltp.updating {
    opacity: 0.6;
}


/* Progress Indicator - Bottom Left */
#progressIndicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #1a291a 0%, #407840 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 350px;
}
    
#progressIndicator.show {
    opacity: 1;
    visibility: visible;
}
    
#progressIndicator .progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
    
#progressIndicator .progress-title {
    font-weight: bold;
    font-size: 14px;
}
    
#progressIndicator .progress-counter {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 5px;
}
    
#progressIndicator .progress-sector {
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
    
#progressIndicator .progress-sector .spinner-border {
    width: 16px;
    height: 16px;
    border-width: 2px;
    margin-right: 8px;
}
    
#progressIndicator .progress-bar-container {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    height: 6px;
    overflow: hidden;
}
    
#progressIndicator .progress-bar-fill {
    background: white;
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}
    
@media screen and (max-width: 768px) {
    #progressIndicator {
        left: 10px;
        bottom: 20px;
        min-width: 250px;
        max-width: calc(100% - 20px);
    }
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a291a 0%, #407840 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
    
#backToTop.show {
    opacity: 1;
    visibility: visible;
}
    
#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #1a291a 0%, #407840 100%);
}
    
#backToTop:active {
    transform: translateY(-2px);
}
    
@media screen and (max-width: 768px) {
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

.sc-scroll {
    max-height: 511px; 
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}
.sc-scroll::-webkit-scrollbar {
    width: 12px;
}
.sc-scroll::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}
.sc-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.25));
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: padding-box;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.sc-scroll::-webkit-scrollbar-thumb:hover {
    transform: scale(1.03);
}
.sc-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.25) transparent;
}