/**
 * OpsSim Styles
 */

/* Global */
body {
    background-color: #1a1d23;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.cursor-pointer { cursor: pointer; }
#briefingBody.collapsing ~ .card-header #briefingChevron,
#briefingBody.show ~ .card-header #briefingChevron { transform: rotate(0); }
#briefingBody:not(.show) ~ .card-header #briefingChevron { transform: rotate(-90deg); }
#briefingChevron { transition: transform 0.2s; }

#app-content {
    min-height: calc(100vh - 56px);
}

/* Cards */
.card {
    transition: border-color 0.2s;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Inject Feed */
.inject-card {
    transition: all 0.3s ease;
    border-left-width: 3px !important;
}

.inject-card:hover {
    transform: translateX(3px);
}

/* Severity borders */
.border-critical,
.border-danger {
    border-left-color: #dc3545 !important;
}

.border-warning {
    border-left-color: #ffc107 !important;
}

.border-success {
    border-left-color: #198754 !important;
}

.border-secondary {
    border-left-color: #6c757d !important;
}

/* Navbar */
.navbar-brand i {
    color: #0d6efd;
}

/* Score gauge */
.score-gauge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Timeline */
.timeline .d-flex {
    border-left: 2px solid #333;
    padding-left: 10px;
    margin-left: 5px;
}

.timeline .d-flex:last-child {
    border-left-color: transparent;
}

/* AAR Print styles */
@media print {
    .navbar,
    .btn-outline-primary,
    .btn-outline-secondary,
    #sessionControls {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    .card {
        border: 1px solid #ccc !important;
        background: white !important;
        break-inside: avoid;
    }

    .card-body,
    .card-header {
        background: white !important;
        color: black !important;
    }

    .table-dark {
        color: black !important;
        background: white !important;
    }

    .table-dark th,
    .table-dark td {
        border-color: #ccc !important;
        color: black !important;
        background: white !important;
    }

    .badge {
        border: 1px solid #999;
        color: black !important;
        background: white !important;
    }
}

/* DataTables dark theme adjustments */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background-color: #2b2f38;
    color: #fff;
    border-color: #495057;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #999;
}

/* SweetAlert dark theme */
.swal2-popup.bg-dark {
    background-color: #212529 !important;
}

.swal2-popup.bg-dark .swal2-title,
.swal2-popup.bg-dark .swal2-html-container {
    color: #f8f9fa !important;
}

.swal2-popup.bg-dark .swal2-input,
.swal2-popup.bg-dark .swal2-textarea,
.swal2-popup.bg-dark .swal2-select {
    background-color: #2b2f38 !important;
    color: #f8f9fa !important;
    border-color: #495057 !important;
}

/* Pulse animation for live status */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.badge.bg-success {
    animation: pulse 2s infinite;
}

/* Session status badges */
.badge {
    font-weight: 500;
}

/* AAR AI content */
.aar-ai-content {
    line-height: 1.7;
}

.aar-ai-content li {
    margin-bottom: 0.5rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .display-6 {
        font-size: 1.5rem;
    }
}
