/* RESET */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    background: #f7f8fc;

    color: #333;

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
overscroll-behavior: none;
padding-bottom: env(safe-area-inset-bottom);
}

* {
    -webkit-tap-highlight-color: transparent;
    transition: background .15s,
            border .15s,
            box-shadow .15s,
            transform .15s;
}


/* THEME VARIABLES */

:root {

    --theme: #ff7a18;

    --theme-light: #ffb347;

    --gradient: linear-gradient(135deg, #ff7a18, #ffb347);

    --white: #ffffff;

    --bg: #f7f8fc;

    --border: #e6e8ee;

    --text: #333;

    --text-light: #777;

    --danger: #e74c3c;

    --success: #2ecc71;

    --warning: #f39c12;

    --radius: 8px;

    --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);

}


/* TYPOGRAPHY */

h1,
h2,
h3,
h4,
h5,
h6 {

    font-weight: 600;

    margin-bottom: 10px;

    color: var(--text);

}

p {
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    color: var(--theme);
}

a:hover {
    opacity: .9;
}


/* CONTAINER */

.container {

    max-width: 1200px;

    margin: auto;

    padding: 15px;

}


/* FLEX */

.flex {
    display: flex;
}

.flex-center {

    display: flex;

    align-items: center;

    justify-content: center;

}

.flex-between {

    display: flex;

    align-items: center;

    justify-content: space-between;

}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}


/* GRID */

.grid {

    display: grid;

    gap: 15px;

}

.grid-1 {
    grid-template-columns: 1fr;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: 1fr;
}


/* SPACING */

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

.p-30 {
    padding: 30px;
}


/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    min-height: 40px;
    transition: .2s;
}

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

.btn-theme {

    background: var(--gradient);

    color: #fff;

}

.btn-outline {

    border: 1px solid var(--theme);

    background: #fff;

    color: var(--theme);

}

.btn-outline:hover {

    background: var(--theme);

    color: #fff;

}

.btn-danger {

    background: var(--danger);

    color: #fff;

}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 22px;
    font-size: 16px;
}


/* FORM ELEMENTS */

.form-group {
    margin-bottom: 15px;
}

label {

    display: block;

    margin-bottom: 5px;

    font-weight: 500;

    font-size: 14px;

}

/* =========================================
   FORM INPUTS
========================================= */

input,
select,
textarea {

    width: 100%;

    min-height: 42px;

    padding: 10px 12px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: #fff;

    font-size: 16px;
    /* prevent iOS zoom */

    font-family: inherit;

    line-height: 1.4;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;

    touch-action: manipulation;

    -webkit-text-size-adjust: 100%;

}


/* =========================================
   INPUT FOCUS
========================================= */

input:focus,
select:focus,
textarea:focus {

    outline: none;

    border-color: var(--theme);

    box-shadow: 0 0 0 2px rgba(255, 122, 24, 0.15);

    background: #fff;

}


/* =========================================
   TEXTAREA SPECIAL
========================================= */

textarea {

    resize: vertical;

    min-height: 80px;

}


/* =========================================
   SELECT FIX
========================================= */

select {

    cursor: pointer;

}


/* =========================================
   PLACEHOLDER STYLE
========================================= */

input::placeholder,
textarea::placeholder {

    color: #999;

    font-size: 14px;

}


/* CARD */

.card {

    background: #fff;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition: .2s;

    overflow: hidden;

}

.card:hover {

    box-shadow: var(--shadow-hover);

}

.card-header {

    padding: 15px;

    border-bottom: 1px solid var(--border);

    font-weight: 600;

}

.card-body {
    padding: 15px;
}

.card-footer {

    padding: 12px 15px;

    border-top: 1px solid var(--border);

    background: #fafafa;

}


/* =====================================================
   TABLE WRAPPER
===================================================== */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}


/* =====================================================
   TABLE BASE
===================================================== */

.table {

    width: 100%;
    min-width: 600px;

    border-collapse: collapse;

    background: #fff;

    border-radius: 6px;
    overflow: hidden;

}


/* =====================================================
   TABLE HEADER
===================================================== */

.table thead th {

    background: #fafafa;

    font-weight: 600;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: .4px;

    color: #666;

}


/* =====================================================
   TABLE CELLS
===================================================== */

.table th,
.table td {

    padding: 12px 14px;

    border-bottom: 1px solid var(--border);

    text-align: left;

    font-size: 14px;

    vertical-align: middle;

}


/* =====================================================
   ROW HOVER
===================================================== */

.table tbody tr:hover {

    background: #fafafa;

}


/* =====================================================
   LAST ROW BORDER REMOVE
===================================================== */

.table tbody tr:last-child td {

    border-bottom: none;

}


/* =====================================================
   ACTION BUTTONS
===================================================== */

.table .btn-sm {

    padding: 5px 10px;

    font-size: 12px;

    border-radius: 4px;

}


/* =====================================================
   STATUS BADGES
===================================================== */

.status-badge {

    padding: 4px 8px;

    font-size: 12px;

    border-radius: 5px;

    font-weight: 500;

}


/* ACTIVE */

.status-active {

    background: #e6f6ea;

    color: #1e7e34;

}


/* INACTIVE */

.status-inactive {

    background: #ffe5e5;

    color: #c82333;

}


/* =====================================================
   MOBILE IMPROVEMENTS
===================================================== */

@media(max-width:768px) {

    .table th,
    .table td {

        padding: 10px;

        font-size: 13px;

    }

}


/* ALERTS */

.alert {

    padding: 12px;

    border-radius: 6px;

    margin-bottom: 15px;

    font-size: 14px;

}

.alert-success {

    background: #ecfdf5;

    color: #16a34a;

}

.alert-error {

    background: #fee2e2;

    color: #dc2626;

}

.alert-warning {

    background: #fff7ed;

    color: #d97706;

}


/* BADGES */

.badge {

    display: inline-block;

    padding: 3px 8px;

    border-radius: 4px;

    font-size: 12px;

    background: var(--gradient);

    color: #fff;

}


/* CALENDAR */

.calendar {

    background: #fff;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;

}

.calendar-header {

    padding: 15px;

    background: var(--gradient);

    color: #fff;

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.calendar-grid {

    display: grid;

    grid-template-columns: repeat(7, 1fr);

}

.calendar-day {

    padding: 12px;

    border: 1px solid var(--border);

    text-align: center;

    font-size: 13px;

    font-weight: 500;

    background: #fafafa;

}

.calendar-date {

    min-height: 70px;

    padding: 8px;

    border: 1px solid var(--border);

    font-size: 13px;

}

.calendar-date:hover {

    background: #fafafa;

    cursor: pointer;

}

.calendar-today {

    background: var(--theme);

    color: #fff;

    border-radius: 6px;

}


/* MODAL */

.modal {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.4);

    display: none;

    align-items: center;

    justify-content: center;

    z-index: 1000;

}

.modal-content {

    background: #fff;

    padding: 20px;

    border-radius: 8px;

    width: 90%;

    max-width: 500px;

    box-shadow: var(--shadow-hover);

}


/* TEXT HELPERS */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-light {
    color: var(--text-light);
}

.hidden {
    display: none;
}

.pointer {
    cursor: pointer;
}


/* MOBILE NAV */

.mobile-hide {
    display: none;
}


/* SCROLLBAR */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}


/* TABLET */

@media(min-width:768px) {

    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .mobile-hide {
        display: block;
    }

}


/* DESKTOP */

@media(min-width:1024px) {

    .grid-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .container {
        padding: 20px;
    }

}
.page-title {

    font-size: 24px;

    font-weight: 600;

    margin-bottom: 20px;

    color: #333;

    border-bottom: 2px solid var(--theme);

    padding-bottom: 8px;

    display: inline-block;
    

}
.page-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;

}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 20px;
}



/* =====================================================
   CREATE TRIP FORM
===================================================== */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #444;
}


/* =====================================================
   FORM INPUTS
===================================================== */

.form-group input {
    width: 100%;
    height: 42px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border .2s, box-shadow .2s;
}

.form-group input:focus {
    border-color: #917DF2;
    box-shadow: 0 0 0 2px rgba(145, 125, 242, 0.15);
    outline: none;
}

/* Better focus for accessibility */

:focus-visible {
    outline: 2px solid var(--theme);
    outline-offset: 2px;
}

/* =====================================================
   DATE TIME ROW
===================================================== */

.form-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}


/* =====================================================
   TRIP DURATION TEXT
===================================================== */

#tripDuration {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}


/* =====================================================
   FORM BUTTONS
===================================================== */

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}


/* =====================================================
   BUTTON STYLE IMPROVEMENT
===================================================== */

.form-actions .btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* =====================================================
   FLATPICKR DATE PICKER STYLE
===================================================== */

.flatpickr-calendar {
    font-size: 14px;
}

.flatpickr-day {
    height: 38px;
    line-height: 38px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:1000px) {

    .form-row-4 {
        grid-template-columns: 1fr 1fr;
    }

}

@media(max-width:600px) {

    .form-row-4 {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

}

img,
video {
    max-width: 100%;
    height: auto;
}

.scroll-hidden::-webkit-scrollbar {
    display: none;
}

.scroll-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}