/* Custom styles for Email Spam Checker */

/* Override Bootstrap theme for light background */
body {
    background-color: white !important;
    color: #212529 !important;
}

/* Custom button colors */
.btn-primary {
    background-color: #006A43 !important;
    border-color: #006A43 !important;
}

.btn-primary:hover {
    background-color: #005235 !important;
    border-color: #005235 !important;
}

.btn-primary:focus, .btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 106, 67, 0.25) !important;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    background-color: #004429 !important;
    border-color: #004429 !important;
}

/* Smooth transitions for interactive elements */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Custom card styling */
.card {
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Textarea styling */
#htmlContent {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 300px;
}

/* Score visualization */
.score-bar {
    position: relative;
    background: var(--bs-gray-600);
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease-in-out;
}

/* Analysis results styling */
.analysis-details .border {
    background: #f8f9fa !important;
    border-color: #dee2e6 !important;
}

/* Badge styling improvements */
.badge {
    font-weight: 500;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Preview iframe styling */
iframe {
    background: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    #htmlContent {
        min-height: 200px;
    }
    
    .score-bar {
        width: 80px !important;
    }
}

/* Loading state for button */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Smooth fade-in for results */
#resultsContainer > div {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon spacing */
.fas, .far {
    width: 1em;
    text-align: center;
}

/* Footer styling */
footer {
    border-top: 1px solid #dee2e6;
    margin-top: 2rem;
    padding-top: 1rem;
}

/* Card styling for light theme */
.card {
    border: 1px solid #dee2e6 !important;
    background-color: white !important;
}

/* Text colors for light theme */
.text-muted {
    color: #6c757d !important;
}

/* CTA section styling */
.bg-light {
    background-color: #f8f9fa !important;
}

.btn-lg {
    font-weight: 600;
    letter-spacing: 0.025em;
}
