/* Custom styles for Email Classification System */

/* Header Styles */
header {
    border-bottom: 1px solid #e9ecef;
    background-color: #F37A94;
}

.nav-link.active {
    color: #0d6efd !important;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 1rem;
}

.nav-link {
    color: #6c757d;
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.nav-link:hover {
    color: #0d6efd;
}

/* Category Cards */
.category-card {
    transition: all 0.2s ease-in-out;
    border: 1px solid #e9ecef;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: #0d6efd;
}

/* Statistics Cards */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

/* Email Cards */
.email-card {
    transition: all 0.2s ease-in-out;
    border: 1px solid #e9ecef;
    border-left: 4px solid #0d6efd;
}

.email-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.email-content {
    margin: 1rem 0;
    line-height: 1.6;
}

/* Loading spinner overlay */
#loading-spinner {
    z-index: 9999;
}

/* Form styling */
.form-control {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-control-lg {
    padding: 16px 20px;
    font-size: 1.1rem;
}

/* Button styling */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
}

.btn-primary {
    background: #0d6efd;
    border: none;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* Card improvements */
.card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24) !important;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 6px 12px;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #198754;
}

/* Responsive design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 15px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .d-flex.justify-content-between > div {
        text-align: center;
    }
    
    .nav {
        margin-bottom: 1rem !important;
    }
}

/* Empty state styling */
.text-center.py-5 {
    padding: 3rem 1rem;
}

.text-center.py-5 i {
    opacity: 0.4;
}

.col-12 {
    text-align: center;
}

/* Footer styling */
footer {
    background-color: #1F1F1F;
    padding: 1rem 0;
    color: #ffffff;
}
