/* Custom CSS for the tools platform */

/* General styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5; /* Light gray background */
    color: #212529; /* Dark text for contrast */
}

main {
    flex: 1;
}

/* Card styling */
.card {
    border-radius: 8px;
    border: 1px solid #e0e0e0; /* Light gray border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    background-color: #ffffff; /* White card background */
}

.card-header {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa; /* Very light gray header */
    color: #212529; /* Dark text */
}

/* Form styling */
.form-control, .form-select {
    border: 1px solid #e0e0e0;
    color: #212529;
}

.form-control:focus, .form-select:focus {
    border-color: #a0a0a0;
    box-shadow: 0 0 0 0.15rem rgba(160, 160, 160, 0.15);
}

.form-text {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Button styling */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-outline-light {
    color: #212529;
    border-color: #e0e0e0;
}

/* Result content styling */
.markdown-content {
    line-height: 1.6;
    padding: 1rem;
    background-color: #ffffff;
    color: #212529;
    border-radius: 4px;
}

.markdown-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #212529;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #212529;
}

.markdown-content h3 {
    font-size: 1.2rem;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.markdown-content p {
    margin-bottom: 1rem;
    color: #212529;
}

.markdown-content hr {
    margin: 1.5rem 0;
    border-color: #e0e0e0;
}

.markdown-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* Carousel styling */
#exampleCarousel img {
    height: 250px;
    object-fit: cover;
}

.carousel-caption {
    padding: 0.5rem;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption {
        position: relative;
        background-color: var(--bs-dark);
        color: var(--bs-light);
        display: block !important;
        left: 0;
        right: 0;
        padding: 0.5rem;
    }
    
    #exampleCarousel img {
        height: 200px;
    }
}
