/* Custom styles for Doctora Hybrid Battery Analysis */

/* Sticky footer */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

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

.card-header h5,
.card-header h6 {
    margin-bottom: 0;
}

/* Dashboard status cards */
.status-card {
    text-align: center;
    padding: 1rem;
}

.status-card h2,
.status-card h3,
.status-card h4 {
    margin-bottom: 0.25rem;
}

/* SOH colors */
.soh-good {
    color: #198754;
}

.soh-warning {
    color: #ffc107;
}

.soh-danger {
    color: #dc3545;
}

/* Chart containers */
canvas {
    max-height: 300px;
}

@media (min-width: 768px) {
    canvas {
        max-height: 400px;
    }
}

/* Table styles */
.table td, .table th {
    vertical-align: middle;
}

.table-sm td, .table-sm th {
    padding: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    h5 {
        font-size: 1rem;
    }
}

/* Badge styles */
.badge {
    font-size: 0.875rem;
    padding: 0.35em 0.65em;
}

/* Animation for status indicators */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.status-pulse {
    animation: pulse 2s infinite;
}

/* Temperature display */
.temp-display {
    font-family: monospace;
    font-size: 1.1em;
}

/* Voltage display */
.voltage-display {
    font-family: monospace;
    font-size: 1.1em;
}

/* Progress bar for SOH */
.soh-progress {
    height: 1.5rem;
    font-size: 0.875rem;
}

/* Nav link active state */
.navbar-nav .nav-link.active {
    font-weight: bold;
}

/* Card border highlights */
.border-highlight {
    border-width: 2px;
}

/* Loading spinner */
.spinner {
    width: 3rem;
    height: 3rem;
}

/* Data table scrolling */
.table-container {
    max-height: 400px;
    overflow-y: auto;
}

/* Print styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }

    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
