/* RIA Document Management System - Custom Styles */

/* Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand i {
    margin-right: 0.5rem;
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Tables */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Buttons */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
}

/* Forms */
.form-label {
    font-weight: 500;
}

textarea.form-control {
    font-family: 'Consolas', 'Monaco', monospace;
}

/* Section tabs */
.nav-tabs .nav-link {
    color: #495057;
}

.nav-tabs .nav-link.active {
    font-weight: 600;
}

/* Issue cards */
.issue-card {
    transition: all 0.2s ease;
}

.issue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.issue-card.selected {
    border-color: #0d6efd !important;
    border-width: 2px;
}

/* Severity indicators */
.severity-blocker {
    border-left: 4px solid #dc3545;
}

.severity-major {
    border-left: 4px solid #ffc107;
}

.severity-minor {
    border-left: 4px solid #17a2b8;
}

/* Diff viewer */
.diff-content {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
}

.diff-line-add {
    background: #d4edda;
}

.diff-line-del {
    background: #f8d7da;
}

.diff-line-info {
    color: #6c757d;
    font-style: italic;
}

/* Evidence chunks */
.evidence-chunk {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0 4px 4px 0;
}

/* Suggested rewrite */
.suggested-rewrite {
    background: #d4edda;
    padding: 1rem;
    border-radius: 4px;
    font-family: inherit;
}

/* Workflow */
.workflow-step {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
}

.workflow-step.active {
    background: #0d6efd;
    color: white;
}

.workflow-step.completed {
    background: #198754;
    color: white;
}

.workflow-step.pending {
    background: #e9ecef;
    color: #6c757d;
}

.workflow-arrow {
    font-size: 1.5rem;
    color: #6c757d;
}

/* Timeline */
.timeline-item {
    border-left: 3px solid #dee2e6;
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.timeline-item.submit {
    border-color: #0d6efd;
}

.timeline-item.approve {
    border-color: #198754;
}

.timeline-item.reject {
    border-color: #dc3545;
}

.timeline-item.release {
    border-color: #6f42c1;
}

/* Footer */
.footer {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .workflow-step {
        min-width: 60px;
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .workflow-arrow {
        font-size: 1rem;
    }
}

/* Loading spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Tooltip for HITL reminder */
[data-bs-toggle="tooltip"] {
    cursor: help;
}
