/**
 * CO2 Analytics - Custom Styles
 * Extends Bootstrap with application-specific styling
 */

:root {
    --co2-green: #28a745;
    --co2-dark: #343a40;
    --co2-light: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f6fa;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.content {
    min-height: 60vh;
}

footer {
    border-top: 1px solid #dee2e6;
    margin-top: 5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1.25rem;
}

.card-header h5 {
    color: #212529;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
}

.btn-success {
    background-color: var(--co2-green);
}

/* Forms */
.form-control {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.625rem 0.875rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Tables */
.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.375rem;
}

.alert-info {
    background-color: #e7f3ff;
    color: #0056b3;
    border-left: 4px solid #0d6efd;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Code blocks */
code {
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    color: #e83e8c;
    font-size: 0.9em;
}

/* Utility classes */
.text-muted {
    color: #6c757d !important;
}

.min-vh-100 {
    min-height: 100vh;
}

/* Display utilities for responsive design */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .card {
        margin-bottom: 1rem;
    }
}
