/* BMW ICOM Relay Admin - Custom Styles */

:root {
    --bs-primary: #0d6efd;
    --bs-success: #198754;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
}

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

main {
    flex: 1;
}

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

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

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Stats Cards */
.stats-card {
    transition: transform 0.2s;
}

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

.stats-card .card-body {
    padding: 1.5rem;
}

.stats-card .stats-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 1.5rem;
}

.stats-card .stats-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.stats-card .stats-label {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Session Status Badges */
.badge-waiting {
    background-color: #ffc107;
    color: #000;
}

.badge-active {
    background-color: #198754;
    color: #fff;
}

.badge-paused {
    background-color: #6c757d;
    color: #fff;
}

.badge-ended {
    background-color: #dc3545;
    color: #fff;
}

/* VIN Display */
.vin-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Session Code */
.session-code {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #0d6efd;
}

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

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Action Buttons */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Real-time indicator */
.realtime-dot {
    width: 8px;
    height: 8px;
    background-color: #198754;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Traffic stats */
.traffic-stats {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.login-logo {
    font-size: 3rem;
    color: #0d6efd;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-card .stats-value {
        font-size: 1.5rem;
    }

    .session-code {
        font-size: 1rem;
    }
}

/* Copy button */
.btn-copy {
    cursor: pointer;
}

.btn-copy:active {
    transform: scale(0.95);
}

/* DataTables customization */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 0.375rem;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 0.375rem;
}
