/* ============================================================================
   RiderAssist - Clean Professional Styling
   ============================================================================ */

/* Base Styles */
html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Links */
a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary {
  background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.btn-primary:hover {
    background-color: #0b5ed7;
 border-color: #0a58ca;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.btn-success:hover {
    background-color: #157347;
}

.btn-danger {
    background-color: #dc3545;
  border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
 background-color: #bb2d3b;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #ffca2c;
}

.btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

.btn-info:hover {
    background-color: #31d2f2;
}

.btn:focus, .btn:active:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Cards */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
 transition: box-shadow 0.3s ease;
    background: white;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: #1a2332 !important;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0;
    font-size: 1.125rem;
    color: #fff !important;
}

    .card-header h5,
    .card-header h3 {
        color: #fff !important;
    }

    .card-body {
        padding: 1.5rem;
    }

/* Content Area */
.content {
    padding: 2rem;
    background-color: #f5f6fa;
    min-height: calc(100vh - 3.5rem);
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h1:focus {
    outline: none;
}

/* Dashboard specific */
.display-4 {
    font-size: 3rem;
    font-weight: 700;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Validation */
.valid.modified:not([type=checkbox]) {
    border-color: #198754;
}

.invalid {
    border-color: #dc3545;
}

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Tables */
.table {
    background-color: white;
    font-size: 0.95rem;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    padding: 0.875rem;
}

.table tbody td {
  padding: 0.875rem;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badges */
.badge {
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Shadows */
.shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1) !important;
}

/* Error Boundary */
.blazor-error-boundary {
    background: #dc3545;
    padding: 1.5rem;
    color: white;
    border-radius: 8px;
    margin: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
    font-weight: 600;
}

/* Checkboxes */
.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Form Floating */
.form-floating > .form-control::placeholder {
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .content {
      padding: 1rem;
    }
    
    h1 {
    font-size: 1.75rem;
    }
 
    .display-4 {
      font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1rem;
  }
}

/* Utility Classes */
.text-muted {
    color: #6c757d !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

/* Icon sizing */
i.bi {
    font-size: 1.25rem;
}

/* Card specific icon sizing */
.card-body i.bi {
    font-size: 1.25rem;
}

/* Large background icons in stat cards */
.card-body > div[style*="font-size: 3rem"] i.bi {
    font-size: 3rem !important;
}