/* Document Analyser Page Styles */

.document-analyser-page {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Header Styles */
.document-analyser-page h1 {
    color: #2c3e50;
    font-weight: 600;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

/* Form Controls */
.form-select, .form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
}

.form-select:focus, .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Checkbox Styles */
.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-label {
    font-weight: 500;
    color: #495057;
}

/* Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
}

/* Progress Bar */
.progress {
    border-radius: 6px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #007bff;
}

/* Health Score Badge */
#healthScoreBadge {
    font-weight: 600;
    padding: 0.5rem 1rem;
}

/* Tab Styles */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1rem;
    margin-right: 0.5rem;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #495057;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    background-color: transparent;
    border-bottom: 2px solid #007bff;
}

/* Tab Content */
.tab-content {
    padding: 1.5rem 0;
}

.tab-pane {
    min-height: 200px;
}

/* Issue Cards */
.issue-item .card {
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.issue-item.critical .card {
    border-left-color: #dc3545;
}

.issue-item.warning .card {
    border-left-color: #ffc107;
}

.issue-item.suggestion .card {
    border-left-color: #17a2b8;
}

.issue-item.strengths .card {
    border-left-color: #28a745;
}

/* Contextual Header */
.contextual-header {
    margin-bottom: 1.5rem;
}

.contextual-header .alert {
    border-radius: 6px;
    border: none;
}

/* Issue Content */
.issue-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.issue-problem .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.issue-solution .alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* History Items */
.history-item {
    transition: transform 0.2s ease;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.history-title h6 {
    color: #2c3e50;
    font-weight: 600;
}

.issue-badges .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

/* Health Score Colors */
.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Modal Styles */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

/* Loading States */
.d-none {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .history-item {
        transition: none;
    }
    
    .progress-bar-animated {
        animation: none;
    }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .document-analyser-page {
        background-color: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .btn,
    .modal,
    #progressSection {
        display: none !important;
    }
}

