/*
 * Analysis Runner - Custom Styles
 * ================================
 * Dark theme styling for the CarPulse Analysis Runner
 */

/* Root variables */
:root {
    --bg-darker: #1a1a2e;
    --bg-dark: #16213e;
    --accent-primary: #0f3460;
    --accent-secondary: #e94560;
    --text-primary: #eee;
    --text-muted: #aaa;
}

/* Body styling */
body {
    background-color: var(--bg-darker);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar customization */
.navbar {
    background: linear-gradient(90deg, var(--bg-dark) 0%, var(--accent-primary) 100%) !important;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Card styling */
.card {
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
    font-weight: 500;
}

/* Button styling */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

/* Progress bar styling */
.progress {
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    border-radius: 0.5rem;
    transition: width 0.3s ease;
}

/* Table styling */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.4em 0.65em;
}

/* Form controls */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-radius: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.25);
    color: var(--text-primary);
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Alert styling */
.alert {
    border-radius: 0.75rem;
    border: none;
}

/* Stats cards */
.bg-opacity-25 {
    --bs-bg-opacity: 0.15 !important;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animation for loading states */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Breadcrumb styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--text-primary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

/* Config section collapse animation */
.collapse {
    transition: height 0.3s ease;
}

/* Method-specific accent colors */
.border-primary { border-color: #0d6efd !important; }
.border-info { border-color: #0dcaf0 !important; }
.border-warning { border-color: #ffc107 !important; }
.border-success { border-color: #198754 !important; }

/* Stat boxes */
.p-3.rounded {
    transition: background-color 0.2s ease;
}

.p-3.rounded:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}
