/* Infinito Safaris Booking System - Custom Styles */

/* ========================================
   Base Styles
   ======================================== */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ========================================
   Navigation
   ======================================== */

.navbar-brand {
    font-weight: 600;
}

/* ========================================
   Cards
   ======================================== */

.card {
    border-radius: 0.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* ========================================
   Forms
   ======================================== */

.form-label {
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-text {
    font-size: 0.8rem;
}

/* ========================================
   Tables
   ======================================== */

.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* ========================================
   Badges
   ======================================== */

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    font-weight: 500;
}

.btn-group-sm > .btn, .btn-sm {
    font-size: 0.8125rem;
}

/* ========================================
   Progress Bars
   ======================================== */

.progress {
    border-radius: 0.5rem;
    background-color: #e9ecef;
}

/* ========================================
   Sidebar (Admin)
   ======================================== */

#sidebar-wrapper {
    transition: margin 0.25s ease-out;
}

#sidebar-wrapper .list-group-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

#sidebar-wrapper .list-group-item i {
    width: 20px;
    text-align: center;
}

/* ========================================
   Toast Notifications
   ======================================== */

.toast-container {
    z-index: 1100;
}

.toast {
    min-width: 300px;
}

/* ========================================
   File Upload
   ======================================== */

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
}

.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

/* ========================================
   Stats Cards (Dashboard)
   ======================================== */

.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info,
.card.bg-danger {
    border: none;
}

.card.bg-primary .card-footer,
.card.bg-success .card-footer,
.card.bg-info .card-footer,
.card.bg-danger .card-footer {
    background-color: rgba(255, 255, 255, 0.1);
}

.card.bg-warning .card-footer {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ========================================
   Booking Form
   ======================================== */

.booking-form .form-group {
    margin-bottom: 1.5rem;
}

.booking-form .section-header {
    font-size: 1.25rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

/* Booking form section headers */
.form-field-wrapper.section-field {
    background: #f8f9fa;
    margin: 1.5rem -1.5rem 1rem;
    padding: 0.6rem 1rem;
    border-left: 3px solid #0d6efd;
}
.form-field-wrapper.section-field h4 {
    margin: 0;
    color: #212529;
    font-size: 1.1rem;
    font-weight: 600;
}
.form-field-wrapper.section-field .section-desc {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
}

/* Better field spacing */
.form-field-wrapper { margin-bottom: 1.25rem; }

/* HTML block spacing — tame imported Gravity Forms markup */
.form-field-wrapper.html-field {
    padding: 0.6rem 1rem;
    background: #f8f9fa;
    border-radius: 0.25rem;
    border-left: 3px solid #0d6efd;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}
.form-field-wrapper.html-field h3,
.form-field-wrapper.html-field h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #212529;
}
.form-field-wrapper.html-field hr {
    display: none;
}
.form-field-wrapper.html-field br {
    display: none;
}
.form-field-wrapper.html-field .gform_wrapper {
    display: none;
}

/* Conditional logic - hidden fields */
[data-field-id].field-hidden {
    display: none !important;
}

/* ========================================
   Client Portal
   ======================================== */

.booking-card {
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .no-print,
    .toast-container,
    #sidebar-wrapper,
    .navbar,
    .btn {
        display: none !important;
    }

    #page-content-wrapper {
        margin-left: 0 !important;
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .card-body {
        padding: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .btn-group-responsive {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-group-responsive .btn {
        width: 100%;
    }
}
