/* Aviation-themed CSS for Quick Hangar */

/* Light blue background theme */
body {
    background-color: #e3f2fd !important;
    color: #333 !important;
}

html {
    background-color: #e3f2fd !important;
}

/* Hero section styling */
.hero-section {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><path d="M20 50L30 40L50 50L70 40L80 50" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/></svg>') repeat;
    opacity: 0.1;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Feature icons */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: translateY(-5px);
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Navigation styling */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Form styling enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Hangar photo gallery */
.carousel-item img {
    border-radius: 0.375rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
}

/* Map styling */
#map,
#hangarMap {
    border-radius: 0.375rem;
}

/* Dashboard statistics cards */
.dashboard-stat-card {
    border: none;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
}

/* Badge styling */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* Button enhancements */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #0056b3);
}

/* Aviation-specific icons and elements */
.aviation-icon {
    color: var(--bs-primary);
}

/* Responsive logo styling */
.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
}

.features-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .hero-logo {
        max-width: 200px;
    }
    
    .features-logo {
        max-width: 160px;
    }
    
    /* Mobile typography adjustments */
    .lead {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.2rem;
    }
    
    /* Mobile form adjustments */
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile card adjustments */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Mobile spacing adjustments */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Feature icons mobile adjustment */
    .feature-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.2rem !important;
    }
    
    /* Modal adjustments for mobile */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    /* Table responsive improvements */
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Tablet responsive adjustments */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 250px;
    }
    
    .features-logo {
        max-width: 180px;
    }
    
    /* Tablet layout adjustments */
    .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.4rem !important;
    }
}

/* Large mobile/small tablet adjustments */
@media (max-width: 992px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Dashboard grid adjustments */
    .col-lg-8, .col-lg-4 {
        margin-bottom: 1rem;
    }
}

/* Photo upload preview */
.photo-preview {
    border: 2px dashed var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.photo-preview:hover {
    border-color: var(--bs-primary);
    background-color: rgba(13, 110, 253, 0.05);
}

.photo-preview.dragover {
    border-color: var(--bs-success);
    background-color: rgba(25, 135, 84, 0.1);
}

/* Table responsive styling */
.table-responsive {
    border-radius: 0.375rem;
    overflow: hidden;
}

.table th {
    border-bottom: 2px solid var(--bs-border-color);
    background-color: var(--bs-light);
    font-weight: 600;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Footer styling */
footer {
    background: linear-gradient(135deg, var(--bs-dark), #000);
}

footer a {
    color: var(--bs-secondary);
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--bs-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-light);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

/* Pricing display */
.pricing-highlight {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-success);
}

/* Status indicators */
.status-available {
    color: var(--bs-success);
}

.status-unavailable {
    color: var(--bs-danger);
}

.status-pending {
    color: var(--bs-warning);
}

/* Image placeholders */
.image-placeholder {
    background: linear-gradient(45deg, var(--bs-light) 25%, transparent 25%), 
                linear-gradient(-45deg, var(--bs-light) 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, var(--bs-light) 75%), 
                linear-gradient(-45deg, transparent 75%, var(--bs-light) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Animation for page transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none;
    }
    
    .container {
        max-width: none;
    }
}
