/* SMA Graph Analyzer - Custom Styles */

:root {
    --primary-color: #0078d4;
    --success-color: #107c10;
    --warning-color: #ff8c00;
    --danger-color: #d13438;
}

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

main {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
}

/* Cards */
.card {
    transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-check.card {
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.form-check.card:hover {
    transform: translateY(-2px);
}

.form-check.card:has(input:checked) {
    border-width: 2px;
}

/* Tables */
.table-responsive {
    scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Status Badge */
#session-status .badge {
    font-size: 0.85em;
}

/* Activity Log */
#activity-log li {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

#activity-log li:last-child {
    border-bottom: none;
}

/* Progress */
.progress {
    height: 8px;
}

/* Sticky headers */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Form controls */
.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
}

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

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(0, 120, 212, 0.1);
    color: var(--primary-color);
}

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

/* Loading spinner */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

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

.card {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-text {
        margin-top: 10px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}
