/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Dashboard Map */
#map {
    height: 500px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.map-info-window {
    padding: 10px;
    max-width: 250px;
}

.map-info-window h6 {
    margin-bottom: 8px;
    font-weight: bold;
}

.map-info-window p {
    margin-bottom: 4px;
    font-size: 0.9rem;
}

:root {
    --primary-color: #0f172a;
    /* Slate 900 */
    --secondary-color: #334155;
    /* Slate 700 */
    --accent-color: #0ea5e9;
    /* Sky 500 */
    --accent-hover: #0284c7;
    /* Sky 600 */
    --bg-light: #f8fafc;
    /* Slate 50 */
    --text-dark: #1e293b;
    /* Slate 800 */
    --text-light: #64748b;
    /* Slate 500 */
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
        0 2px 4px -2px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Navbar */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-top-left-radius: var(--border-radius) !important;
    border-top-right-radius: var(--border-radius) !important;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0.6rem 1rem;
}

.form-select {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    background-position: right 0.75rem center;
    min-width: 110px;
    /* Ensure enough width for year/month */
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    border-color: var(--accent-color);
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: #f1f5f9;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.table td {
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

/* Utilities */
.text-accent {
    color: var(--accent-color);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Login Page Specific */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

.login-card .card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    border-radius: 16px;
}

.login-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.login-header {
    margin-bottom: 2rem;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--accent-color);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating>.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* Badge Tweaks */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
    border-radius: 6px;
}

/* Modernized Report Styles */
.report-card {
    transition: all 0.3s ease;
}

.report-summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
}

.sig-pad-container {
    background: #ffffff;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    height: 200px;
    position: relative;
    touch-action: none;
    transition: border-color 0.3s ease;
}

.sig-pad-container:hover {
    border-color: #0d6efd;
}

.form-floating>label {
    font-weight: 500;
}

.btn-modern {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.vehicle-badge-modern {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}