html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

/* Custom Styles for 4 Aviators */
body {
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background-color: #002D62; /* Navy Blue */
    border: none;
    border-radius: 0; /* Professional sharp edges */
    transition: 0.3s;
}

    .btn-primary:hover {
        background-color: #001a3a;
        transform: translateY(-2px);
    }

.hero-section h1 {
    letter-spacing: 2px;
}

.navbar-brand {
    font-weight: 900;
    letter-spacing: 1px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Dashboard admin cards styling */
.admin-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-width: 1px !important;
    border-color: var(--bs-primary, #0d6efd) !important;
}
.admin-card .card-body .text-primary { color: var(--bs-primary, #0d6efd) !important; }
.admin-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(13,110,253,0.08);
}

/* Moved from view-specific style blocks */
.bg-success-soft { background-color: #e8f5e9; }
.x-small { font-size: 0.65rem; }
.extra-small { font-size: 0.68rem; text-transform: uppercase; color: #6c757d; display: block; }
.bg-soft-dark { background-color: rgba(33,37,41,0.05); }
.btn-white { background-color: #fff; border-color: #dee2e6; }
.btn-white:hover { background-color: #f8f9fa; }

/* typography helpers */
.fw-black { font-weight: 900; }
.tracking-tight { letter-spacing: -2px; }
.tracking-wider, .ls-2 { letter-spacing: 2px; }

/* hover helpers used across views */
.hover-up { transition: transform 0.3s ease; }
.hover-up:hover { transform: translateY(-5px); }
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-8px); box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; }
.transition { transition: all 0.3s ease; }
.hover-opacity-100:hover { opacity: 1 !important; }

/* responsive border helpers */
.border-md-start { border-left: 1px solid rgba(255,255,255,0.1); }
.border-md-end { border-right: 1px solid rgba(255,255,255,0.1); }
@media (min-width: 768px) {
    .border-md-start { border-left: 1px solid rgba(255,255,255,0.1) !important; }
    .border-md-end { border-right: 1px solid rgba(255,255,255,0.1) !important; }
}

/* small table & badge tweaks moved from type-specific views */
.table thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6c757d; }
.table-hover tbody tr { transition: background-color 0.2s ease; }
.badge { font-weight: 600; }

/* Navigation fixes - Ensure nav items are not greyed out */
.navbar-nav .nav-link {
    color: #212529 !important; /* Dark text color for visibility */
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #0d6efd !important; /* Primary blue on hover */
}

.navbar-nav .nav-link.fw-bold {
    font-weight: 700 !important;
    opacity: 1 !important; /* Ensure no opacity reduction */
    color: #212529 !important; /* Force dark color */
}

/* Specific fix for dropdown toggle */
.navbar-nav .dropdown-toggle {
    color: #212529 !important;
    opacity: 1 !important;
}

.navbar-nav .dropdown-toggle:hover {
    color: #0d6efd !important;
}

.navbar-nav .dropdown-toggle:after {
    color: #212529 !important;
}

/* Admin Tools specific styling */
.navbar-nav .text-danger {
    color: #dc3545 !important;
    opacity: 1 !important;
}

.navbar-nav .text-danger:hover {
    color: #b02a37 !important;
}

/* Override any disabled appearance */
.navbar-nav .nav-item .nav-link:not(.disabled) {
    color: #212529 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Upload form helpers */
.transition-all { transition: all 0.3s ease-in-out; }
.border-warning-custom { border: 3px solid #ffc107 !important; border-radius: 8px; }

/* Form & card micro-interactions */
.form-control:focus, .form-select:focus { border-color: #0d6efd; box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.1); }
.card { transition: transform 0.2s; }
.sponsor-entry:hover { transform: translateY(-2px); }
.input-group-text { transition: all 0.3s ease; }

/* Breadcrumb separator used in admin views */
.breadcrumb-item + .breadcrumb-item::before { content: "›"; font-size: 1.2rem; }

/* About section image and icon tweaks */
.about-image {
    max-width: 100%;
    height: auto;
    display: block;
}
.about-icon {
    right: -18px; /* nudge icon slightly outside the image edge */
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-icon i { font-size: 1.4rem; }

/* Floating action buttons in the home view */
.floating-actions {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 2000;
    align-items: center;
}
.floating-actions .btn {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.floating-actions .btn i { font-size: 1.1rem; }

/* simple fade-in helper */
.fade-in { opacity: 1; transition: opacity 240ms ease-in; }
.floating-actions { opacity: 0; transition: opacity 180ms ease-out; }
/* Booking Grid Styles moved from Index.cshtml */
.booking-grid {
    table-layout: fixed;
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
}
.location-row:hover {
    background-color: rgba(253, 126, 20, 0.1);
}
.location-booking-cell {
    background-color: #fff8f0;
    border: 1px solid #ffd89b;
}
.booking-grid-container {
    max-width: 100vw;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}
}
.booking-grid thead {
    position: sticky;
    top: 0;
    z-index: 15;
    background: inherit;
}
.section-header td {
    position: sticky;
    z-index: 12;
}
.booking-grid-container::-webkit-scrollbar {
    height: 8px;
}
.booking-grid-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.booking-grid-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}
.sticky-col {
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 2px solid #dee2e6 !important;
    background: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
.aircraft-row:hover {
    background-color: rgba(23, 162, 184, 0.1);
}
.instructor-row:hover {
    background-color: rgba(102, 126, 234, 0.1);
}
.aircraft-booking-cell {
    background-color: #f8fffe;
    border: 1px solid #e3f2fd;
}
.instructor-booking-cell {
    background-color: #fafbff;
    border: 1px solid #f3e5f5;
}
.booking-cell {
    height: 60px;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-width: 90px;
    padding: 4px;
}
.booking-cell:hover {
    background-color: rgba(102, 126, 234, 0.1) !important;
    border: 2px solid #667eea !important;
}
.booking-cell:not(.booked):hover {
    background-color: rgba(102, 126, 234, 0.05);
}
.booking-cell.booked {
    padding: 5px;
}
.booking-info {
    padding: 2px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 100%;
}
.section-header {
    position: sticky;
    z-index: 5;
}
.time-header {
    writing-mode: horizontal-tb;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 4px !important;
    white-space: nowrap;
}
.user-cell {
    background: #f8f9fa;
    font-weight: 500;
    min-width: 180px;
}
.aircraft-cell {
    background: #e3f2fd;
    font-weight: 500;
}
.aircraft-notes {
    max-width: 180px;
    font-size: 0.75rem !important;
}
.section-header td {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-toolbar {
    gap: 0.5rem;
}
.past-time {
    background-color: #fff !important;
    color: #333 !important;
}
.past-time, th.past-time, td.past-time {
    background-color: #fff !important;
    color: #333 !important;
}
}
.future-time {
    background-color: #d4edda !important; /* Bootstrap green */
    color: #155724 !important;
}
.future-time, th.future-time, td.future-time {
    background-color: #d4edda !important;
    color: #155724 !important;
}
}

/* Grey out entire row if unavailable */
.row-unavailable {
    background-color: #e0e0e0 !important;
    opacity: 0.6;
}
.row-unavailable td,
.row-unavailable th {
    background-color: #e0e0e0 !important;
    color: #888 !important;
}
@media (max-width: 768px) {
    .btn-toolbar {
        flex-wrap: wrap;
    }
    .time-header {
        min-width: 70px !important;
        font-size: 0.75rem;
        padding: 6px 2px;
    }
    .sticky-col {
        min-width: 140px !important;
    }
    .booking-cell {
        min-width: 70px !important;
        height: 60px;
    }
    .booking-info {
        font-size: 0.7rem !important;
    }
}
