body {
    background-color: #ffffff;
    color: #333333;
}

#block-wrapper .card-img-top {
	height: 100%;
	width: 200px;
	object-fit: cover;
    border-radius: 6px 0 0 6px;
    object-position: center;
    opacity: 0.85;
}
#block-wrapper .card:hover .card-img-top{
    opacity: 1;
}
@media screen and (max-width: 1200px) {

    #block-wrapper .card-img-top {
        width: 120px;
    }
}
#block-wrapper .card {
    background-color: #e0e0e075;
    border-color: #373b3e;
    transition: transform 0.2s ease;
    transform-origin: center;
    will-change: transform;
    position: relative;
    flex-direction: row;
    cursor: pointer;
    border: 0;
    color: #242424;
}

#block-wrapper .card:hover {
	transform: scale(1.01);
	z-index: 100;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.15);
}

#block-wrapper .card-body {
	flex: 1;
    transition: all 0.2s ease;
}


#block-wrapper .card-text {
	font-size: 0.8rem;
    line-height: 1rem;
	margin-bottom: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
#block-wrapper .card-title {
    font-size: 1rem;
    line-height: 1.2rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col {
	position: relative;
	overflow: visible;
}

a:hover {
	text-decoration: none;
    color: inherit;
}
.text-muted {
	color: #8c959d !important;
}

.modal-image-link {
    display: block;
    overflow: hidden;
    border-radius: 0.375rem;
    transition: transform 0.2s ease;
}

.modal-image-link:hover {
    transform: scale(1.02);
}

.modal-image-link img {
    transition: transform 0.2s ease;
}

.modal-image-link:hover img {
    transform: scale(1.02);
}

.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Nested Element Transitions */
#block-wrapper .card img, 
#block-wrapper .card-body {
    transition: all 0.2s ease;
}



.img-container {
    position: relative;
    overflow: hidden;
}

.badge {
    z-index: 2;
}

.info-icon {
    font-size: 2rem;
    cursor: pointer;
    color: rgba(0,0,0,0.3);
}
.info-icon:hover {
    color: rgba(0,0,0,0.9);
}
.form-range::-webkit-slider-thumb {
    width: 2rem;
    height: 2rem;
    margin-top: -0.75rem;
}


.form-range::-webkit-slider-thumb {
    background-color: #ffffff;
    box-shadow: 1px 1px 4px #000000bf
}

.form-range::-webkit-slider-runnable-track {
    background-color: #d5d5d6;
}

.tab-content {
    min-height: 300px;
}
.tab-pane {
    position: relative;
}

canvas {
    min-height: 300px;
    max-height: 300px !important;
}

#trendsChart {
    height: 300px !important;
}



.range-wrapper {
    position: relative;
    width: 100%;
}

.range-value {
    position: absolute;
    bottom: -20px;
    font-size: 13px;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
    background: none;
    color: #d2d2d2;
}

.form-range {
    width: 100%;
    padding: 0;
    margin: 0;
}


.nav-tabs .nav-link {
    border-radius: 7px;
    border: 0;
    font-size: 13px;
    color: #495057;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    border-color: #dee2e6 #dee2e6 #fff;
    background-color: #ececec;
}
#ai_engine_selector {
    position: absolute;
    top: 0px;
    left: 42px;
    border: 0px;
    z-index: 1;
}
#navTabsAISummary {
    position: absolute;
    top: 41px;
    left: 42px;
    border: 0px;
    z-index: 1;
}

#ai-charts-tabs {
    padding-top: 75px;
    padding-bottom: 15px;
}

#slider-container {
    overflow: hidden; 
    padding-bottom: 30px;
    padding-left: 2rem; 
    padding-right: 1.5rem;
    background: rgb(33 49 65) !important;
    border-radius: 6px;
}

@media screen and (max-width: 800px) {
    .nav-tabs li {

        display: block;
        width: 100%;
    }

    #ai_engine_selector {
        left: 15px;
    }
        
    #navTabsAISummary {
        position: relative;
        top: 50px;
        left: 0px;
        border: 0px;
        z-index: 1;
    }
}
/* Disable tab animations */
.tab-content > .tab-pane {
    display: none;
    transition: none;
}

.tab-content > .active {
    display: block;
}

.label-ai-summary-top {
    font-size: 1rem;
    color: #4b535c;
    margin-bottom: 0.5rem;
    position: absolute;
    top: 34px;
    left: 45px;
}
.label-ai-summary-bottom {
    font-size: 1rem;
    color: #4b535c;
    margin-bottom: 0.5rem;
    position: absolute;
    bottom: 25px;
    left: 45px;

}

.daily-summary {
    font-size: 0.82rem;
    line-height: 1.4;
    padding: 10px 0;
    text-align: left;
    color: #212529;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(255,255,255,0.1);
}

.criteria-section {
    padding-left: 1rem;
    border-left: 3px solid rgba(255,255,255,0.1);
}

pre code {
    color: #666;
    display: block;
    overflow-x: auto;
}

body footer {
    padding-top: 40px !important;
    font-size: 12px;
    color: #a6a6a6;
    padding-bottom: 20px;
}
body footer a {
    color: #a6a6a6;
}

.card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.125);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (max-width: 991.98px) {
    .news-entries {
        max-height: 100px;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .news-entries.expanded {
        max-height: none;
    }
    .expand-btn {
        width: 100%;
        background: rgba(0,0,0,0.05);
        border: none;
        padding: 8px;
        margin-top: -1px;
        position: relative;
        z-index: 1;
    }
}


.navbar {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255,255,255,1);
}
.navbar-brand {
    font-size: 1.1rem;
    font-weight: 500;
}