/* ===========================================
   KIWI SHUTTLE ADMIN PANEL
=========================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --primary:#0058BF;
    --secondary:#1e293b;
    --light:#f8fafc;
    --white:#ffffff;
    --border:#e5e7eb;
    --text:#64748b;
    --success:#22c55e;
    --warning:#f59e0b;
    --danger:#ef4444;
    --purple:#8b5cf6;

}

body{

    font-family:'Poppins',sans-serif;
    background:#f4f7fb;
    color:#1e293b;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

}

/* =====================================
        LOGIN PAGE
===================================== */

.login-page{

    min-height:100vh;
    background:#eef3fa;

}

.login-container{

    display:grid;
    grid-template-columns:55% 45%;
    min-height:100vh;

}

.login-left{

    position:relative;

    background:url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80");

    background-size:cover;
    background-position:center;

}

.login-left .overlay{

    position:absolute;
    inset:0;

    background:rgba(9,18,35,.75);

}

.login-left .content{

    position:relative;
    z-index:2;

    color:#fff;

    padding:80px;

}

.login-left h1{

    font-size:42px;
    margin-bottom:20px;

}

.login-left h2{

    font-size:30px;
    margin-bottom:20px;

}

.login-left p{

    line-height:1.8;
    margin-bottom:35px;

}

.login-features div{

    margin-bottom:18px;

}

.login-features i{

    color:#22c55e;
    margin-right:10px;

}

/* =====================================
        LOGIN CARD
===================================== */

.login-right{

    display:flex;
    justify-content:center;
    align-items:center;

}

.login-card{

    width:420px;
    background:#fff;

    border-radius:20px;

    padding:45px;

    box-shadow:0 20px 50px rgba(0,0,0,.08);

}

.login-card .logo{

    width:80px;
    height:80px;

    margin:auto;

    border-radius:50%;

    background:#2563eb;

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:34px;

    margin-bottom:25px;

}

.login-card h2{

    text-align:center;
    margin-bottom:10px;

}

.login-card p{

    text-align:center;
    color:#64748b;
    margin-bottom:25px;

}

.form-group{

    margin-bottom:20px;

}

.form-group label{

    display:block;
    margin-bottom:8px;
    font-weight:600;

}

.form-group input{

    width:100%;

    height:52px;

    border:1px solid #ddd;

    border-radius:10px;

    padding:0 15px;

    outline:none;

}

.password-box{

    position:relative;

}

.password-box i{

    position:absolute;
    right:18px;
    top:18px;

    cursor:pointer;

    color:#888;

}

.remember{

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:25px;

    font-size:14px;

}

.remember a{

    color:#2563eb;

}

.login-btn{

    width:100%;
    height:55px;

    border:none;

    background:#2563eb;

    color:#fff;

    border-radius:10px;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.login-btn:hover{

    background:#174ec5;

}

.demo{

    margin-top:25px;

    background:#f5f8ff;

    border-radius:12px;

    padding:18px;

}

.demo strong{

    display:block;
    margin-bottom:10px;

}

/* =====================================
        ADMIN LAYOUT
===================================== */

.admin-wrapper{

    display:flex;

}

.sidebar{

    width:270px;

    min-height:100vh;

    background:#0f172a;

    color:#fff;

    position:fixed;

    left:0;
    top:0;

}

.sidebar-logo{

    padding:30px;

    font-size:22px;

    font-weight:700;

    border-bottom:1px solid rgba(255,255,255,.08);

}

.sidebar-logo i{

    color:#facc15;
    margin-right:10px;

}

.sidebar-menu{

    padding:20px;

}

.sidebar-menu li{

    margin-bottom:12px;

}

.sidebar-menu a{

    display:flex;
    align-items:center;

    gap:15px;

    color:#cbd5e1;

    padding:14px 18px;

    border-radius:12px;

    transition:.3s;

}

.sidebar-menu li.active a,

.sidebar-menu a:hover{

    background:#2563eb;

    color:#fff;

}

.main-content{

    margin-left:270px;

    width:calc(100% - 270px);

    padding:35px;

}

/* =====================================
        TOPBAR
===================================== */

.topbar{

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:35px;

}

.top-right{

    display:flex;
    align-items:center;
    gap:20px;

}

.search-box{

    width:300px;

    height:50px;

    background:#fff;

    border-radius:10px;

    display:flex;
    align-items:center;

    padding:0 18px;

}

.search-box input{

    width:100%;

    border:none;

    outline:none;

    margin-left:10px;

}

.admin-profile{

    display:flex;
    align-items:center;
    gap:15px;

}

.admin-profile img{

    width:50px;
    height:50px;

    border-radius:50%;

}

/* =====================================
        DASHBOARD CARDS
===================================== */

.dashboard-cards{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

    margin-bottom:35px;

}

.card{

    background:#fff;

    border-radius:18px;

    padding:25px;

    display:flex;

    align-items:center;

    gap:20px;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

}

.card .icon{

    width:70px;
    height:70px;

    border-radius:16px;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:28px;

    color:#fff;

}

.blue{

    background:#2563eb;

}

.green{

    background:#22c55e;

}

.orange{

    background:#f59e0b;

}

.purple{

    background:#8b5cf6;

}

.card h3{

    font-size:30px;

}

.card p{

    color:#64748b;

}

/* =====================================
        QUICK STATS
===================================== */

.quick-stats{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

    margin-bottom:35px;

}

.stat-box{

    background:#fff;

    border-radius:18px;

    padding:30px;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

}

.stat-box h4{

    color:#64748b;

    margin-bottom:15px;

}

.stat-box h2{

    font-size:38px;

    margin-bottom:10px;

}

.stat-box span{

    color:#22c55e;

    font-size:14px;

}
/* =====================================
        CHARTS
===================================== */

.dashboard-grid{

    display:grid;
    grid-template-columns:2fr 1fr;
    gap:25px;
    margin-bottom:35px;

}

.chart-card,
.activity-card{

    background:#fff;
    border-radius:18px;
    padding:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);

}

.chart-card h3,
.activity-card h3{

    margin-bottom:25px;

}

.activity-card ul{

    list-style:none;

}

.activity-card li{

    padding:14px 0;
    border-bottom:1px solid #eee;
    color:#475569;

}

.activity-card li:last-child{

    border-bottom:none;

}

/* =====================================
        TABLE
===================================== */

.recent-bookings{

    background:#fff;
    border-radius:18px;
    padding:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
    margin-bottom:30px;

}

.table-header{

    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;

}

.table-actions{

    display:flex;
    gap:15px;

}

.table-actions input{

    width:260px;
    height:45px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:0 15px;
    outline:none;

}

.export-btn{

    background:#2563eb;
    color:#fff;
    border:none;
    padding:0 22px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
    transition:.3s;

}

.export-btn:hover{

    background:#174ec5;

}

.table-responsive{

    overflow:auto;

}

table{

    width:100%;
    border-collapse:collapse;

}

table thead{

    background:#f8fafc;

}

table th{

    padding:18px;
    text-align:left;
    font-size:14px;
    color:#475569;
    white-space:nowrap;

}

table td{

    padding:18px;
    border-top:1px solid #eef2f7;
    white-space:nowrap;

}

tbody tr{

    transition:.3s;

}

tbody tr:hover{

    background:#f8fbff;

}

/* =====================================
        STATUS
===================================== */

.status{

    display:inline-block;
    padding:8px 16px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;

}

.pending{

    background:#fff7e6;
    color:#f59e0b;

}

.confirmed{

    background:#ecfdf5;
    color:#22c55e;

}

.completed{

    background:#e0f2fe;
    color:#0284c7;

}

.cancelled{

    background:#fee2e2;
    color:#dc2626;

}

/* =====================================
        BUTTONS
===================================== */

.view-btn{

    background:#2563eb;
    color:#fff;
    border:none;
    padding:9px 16px;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;

}

.view-btn:hover{

    background:#174ec5;

}

.edit-btn{

    background:#22c55e;
    color:#fff;
    border:none;
    padding:9px 16px;
    border-radius:8px;
    cursor:pointer;
    margin-right:8px;

}

.delete-btn{

    background:#ef4444;
    color:#fff;
    border:none;
    padding:9px 16px;
    border-radius:8px;
    cursor:pointer;

}

/* =====================================
        MODAL
===================================== */

.modal{

    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;

}

.modal-content{

    width:650px;
    max-width:95%;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    animation:popup .35s ease;

}

@keyframes popup{

    from{

        transform:translateY(40px);
        opacity:0;

    }

    to{

        transform:translateY(0);
        opacity:1;

    }

}

.modal-header{

    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 25px;
    background:#2563eb;
    color:#fff;

}

.modal-header span{

    cursor:pointer;
    font-size:30px;

}

.modal-body{

    padding:30px;

}

.detail-item{

    display:flex;
    justify-content:space-between;
    padding:15px 0;
    border-bottom:1px solid #eee;

}

.detail-item:last-child{

    border-bottom:none;

}

/* =====================================
        FOOTER
===================================== */

.admin-footer{

    text-align:center;
    padding:25px;
    color:#64748b;
    font-size:14px;

}

/* =====================================
        SCROLLBAR
===================================== */

::-webkit-scrollbar{

    width:8px;
    height:8px;

}

::-webkit-scrollbar-thumb{

    background:#2563eb;
    border-radius:30px;

}

/* =====================================
        RESPONSIVE
===================================== */

@media(max-width:1200px){

.dashboard-cards{

grid-template-columns:repeat(2,1fr);

}

.quick-stats{

grid-template-columns:1fr;

}

.dashboard-grid{

grid-template-columns:1fr;

}

}

@media(max-width:992px){

.sidebar{

left:-270px;
transition:.35s;

}

.sidebar.active{

left:0;

}

.main-content{

margin-left:0;
width:100%;

}

.topbar{

flex-direction:column;
align-items:flex-start;
gap:20px;

}

.top-right{

width:100%;
flex-direction:column;

}

.search-box{

width:100%;

}

.dashboard-cards{

grid-template-columns:1fr;

}

}

@media(max-width:768px){

.table-header{

flex-direction:column;
align-items:flex-start;
gap:15px;

}

.table-actions{

width:100%;
flex-direction:column;

}

.table-actions input{

width:100%;

}

.modal-content{

width:95%;

}

.login-container{

grid-template-columns:1fr;

}

.login-left{

display:none;

}

.login-card{

width:92%;

}

}

.logo{
    display:flex;
    align-items:center;
    justify-content:flex-start;
}

.logo-img{
    height:95px;
    width:auto;
    object-fit:contain;
    display:block;
    filter:drop-shadow(0 4px 12px rgba(0,0,0,.30));
    transition:.3s;
}

.logo-img:hover{
    transform:scale(1.05);
}


@media (max-width:768px){

.logo-img{
    height:65px;
}

}


.details-card{
    background:#fff;
    padding:25px;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:18px;
}

.form-group{
    display:flex;
    flex-direction:column;
    margin-bottom:15px;
}

.form-group label{
    font-weight:600;
    margin-bottom:6px;
}

.form-group input,
.form-group select,
.form-group textarea{
    padding:10px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:15px;
}

.btn-primary{
    background:#0d6efd;
    color:#fff;
    border:none;
    padding:12px 22px;
    border-radius:8px;
    cursor:pointer;
}

.btn-secondary{
    background:#6c757d;
    color:#fff;
    border:none;
    padding:12px 22px;
    border-radius:8px;
    cursor:pointer;
    margin-left:10px;
}


/* =====================================================
   BOOKING DETAILS PAGE
===================================================== */

.booking-details-page{

    padding-bottom:40px;

}

.booking-details-page .card{

    border:none;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.05);
    transition:.3s;

}

.booking-details-page .card:hover{

    transform:translateY(-3px);

    box-shadow:0 15px 35px rgba(0,0,0,.08);

}

.booking-details-page .card-header{

    background:#fff;

    border-bottom:1px solid #ececec;

    padding:20px 25px;

}

.booking-details-page .card-header h4{

    margin:0;

    font-size:20px;

    font-weight:700;

}

.booking-details-page .card-body{

    padding:25px;

}

/* =======================
        FORM
======================= */

.booking-details-page .form-label{

    font-weight:600;

    color:#475569;

    margin-bottom:8px;

}

.booking-details-page .form-control,
.booking-details-page .form-select{

    min-height:52px;

    border-radius:12px;

    border:1px solid #d8dee8;

    transition:.25s;

}

.booking-details-page textarea.form-control{

    min-height:130px;

    resize:vertical;

}

.booking-details-page .form-control:focus,
.booking-details-page .form-select:focus{

    border-color:#2563eb;

    box-shadow:0 0 0 .18rem rgba(37,99,235,.15);

}

/* =======================
       HEADER
======================= */

.booking-details-page h2{

    font-weight:700;

}

.booking-details-page .badge{

    border-radius:30px;

    font-size:14px;

    padding:10px 18px;

}

/* =======================
       BUTTONS
======================= */

.booking-details-page .btn{

    border-radius:10px;

    font-weight:600;

    padding:10px 20px;

    transition:.25s;

}

.booking-details-page .btn:hover{

    transform:translateY(-2px);

}

/* =======================
     READ ONLY INPUTS
======================= */

.booking-details-page input[readonly]{

    background:#f8fafc;

    cursor:not-allowed;

}

/* =======================
      ACTION BUTTONS
======================= */

.booking-details-page .action-buttons{

    display:flex;

    gap:12px;

    flex-wrap:wrap;

    margin-top:20px;

}

/* =======================
        MOBILE
======================= */

@media(max-width:768px){

.booking-details-page .card-body{

    padding:18px;

}

.booking-details-page .card-header{

    padding:18px;

}

.booking-details-page .action-buttons{

    flex-direction:column;

}

.booking-details-page .action-buttons .btn{

    width:100%;

}

.booking-details-page h2{

    font-size:24px;

}

}
/* =====================================================
   HEADER
===================================================== */

.booking-details-page h2{

    font-size:30px;
    font-weight:700;
    color:#0f172a;

}

.booking-details-page p{

    color:#64748b;

}

.booking-details-page #bookingId{

    font-size:20px;
    font-weight:700;

}

/* =====================================================
   BADGES
===================================================== */

.booking-details-page .badge{

    font-size:13px;

    font-weight:600;

    padding:10px 18px;

    border-radius:50px;

    letter-spacing:.3px;

}

/* =====================================================
   BUTTONS
===================================================== */

.booking-details-page .btn{

    border-radius:12px;

    font-weight:600;

    transition:.25s;

}

.booking-details-page .btn:hover{

    transform:translateY(-2px);

}

.booking-details-page .btn-success{

    background:#16a34a;

    border:none;

}

.booking-details-page .btn-primary{

    border:none;

}

.booking-details-page .btn-danger{

    border:none;

}

.booking-details-page .btn-outline-primary{

    border-width:2px;

}

/* =====================================================
   ACTION BAR
===================================================== */

.booking-details-page .action-buttons{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

}

.booking-details-page .action-buttons .btn{

    min-width:170px;

    height:48px;

}

/* =====================================================
   READ ONLY INPUTS
===================================================== */

.booking-details-page input[readonly]{

    background:#f8fafc;

    color:#475569;

    font-weight:500;

}

/* =====================================================
   CARD TITLES
===================================================== */

.booking-details-page .card-header i{

    font-size:20px;

    margin-right:8px;

}

/* =====================================================
   CARD ANIMATION
===================================================== */

.booking-details-page .card{

    animation:fadeUp .35s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(18px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}
/* =====================================================
   STICKY ACTION BAR
===================================================== */

.booking-details-page .action-buttons{

    position:sticky;

    bottom:15px;

    z-index:100;

    background:#ffffff;

    padding:18px;

    border-radius:18px;

    box-shadow:0 12px 30px rgba(15,23,42,.12);

    justify-content:flex-end;

}

/* =====================================================
   CUSTOM SCROLLBAR
===================================================== */

.booking-details-page ::-webkit-scrollbar{

    width:10px;

    height:10px;

}

.booking-details-page ::-webkit-scrollbar-track{

    background:#f1f5f9;

    border-radius:20px;

}

.booking-details-page ::-webkit-scrollbar-thumb{

    background:#cbd5e1;

    border-radius:20px;

}

.booking-details-page ::-webkit-scrollbar-thumb:hover{

    background:#94a3b8;

}

/* =====================================================
   MOBILE RESPONSIVE
===================================================== */

@media (max-width:991px){

    .booking-details-page{

        padding:20px 12px 100px;

    }

    .booking-details-page h2{

        font-size:24px;

    }

    .booking-details-page .card-body{

        padding:18px;

    }

    .booking-details-page .card-header{

        padding:16px 18px;

    }

    .booking-details-page .action-buttons{

        justify-content:center;

    }

    .booking-details-page .action-buttons .btn{

        width:100%;

        min-width:unset;

    }

}

@media (max-width:576px){

    .booking-details-page .badge{

        display:block;

        width:100%;

        text-align:center;

        margin-top:10px;

    }

    .booking-details-page .form-control,
    .booking-details-page .form-select{

        height:46px;

        font-size:14px;

    }

    .booking-details-page textarea.form-control{

        min-height:100px;

    }

}

/* =====================================================
   PRINT MODE
===================================================== */

@media print{

    .sidebar,
    .navbar,
    .action-buttons,
    .btn{

        display:none !important;

    }

    .booking-details-page{

        padding:0;

        margin:0;

        max-width:100%;

    }

    .booking-details-page .card{

        box-shadow:none;

        border:1px solid #ddd;

        margin-bottom:15px;

        break-inside:avoid;

    }

    body{

        background:#fff !important;

    }

}


/* ======================================================
   DRIVER PAGE
====================================================== */

.driver-page{

    max-width:1450px;

    margin:auto;

    padding:30px 20px 60px;

}


/* ======================================================
   PAGE HEADER
====================================================== */

.driver-page .page-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:20px;

}

.driver-page .page-header h2{

    font-size:30px;

    font-weight:700;

    color:#0f172a;

}

.driver-page .page-header p{

    color:#64748b;

}


/* ======================================================
   STATS CARDS
====================================================== */

.stats-card{

    background:#fff;

    border-radius:18px;

    padding:24px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:0 8px 24px rgba(15,23,42,.06);

    transition:.3s;

    border:1px solid #edf2f7;

}

.stats-card:hover{

    transform:translateY(-4px);

    box-shadow:0 18px 40px rgba(15,23,42,.08);

}

.stats-card small{

    color:#64748b;

    font-weight:600;

}

.stats-card h3{

    margin-top:8px;

    margin-bottom:0;

    font-size:32px;

    font-weight:700;

}

.stats-card i{

    font-size:42px;

    opacity:.15;

}

.stats-card.success{

    border-left:5px solid #16a34a;

}

.stats-card.warning{

    border-left:5px solid #f59e0b;

}

.stats-card.danger{

    border-left:5px solid #dc2626;

}


/* ======================================================
   TOOLBAR
====================================================== */

.toolbar-card .card-body{

    padding:28px;

}

.toolbar-card .form-control{

    height:50px;

}

.toolbar-card .form-select{

    height:50px;

}

.toolbar-card .btn{

    height:50px;

    min-width:160px;

}

.driver-page .input-group-text{

    background:#fff;

    border-right:none;

}

.driver-page .form-control{

    border-left:none;

}
.driver-page .card{

    border:none;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 10px 35px rgba(15,23,42,.06);

}


.driver-avatar-large{

    width:110px;

    height:110px;

    border-radius:50%;

    margin:auto;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:36px;

    font-weight:700;

    color:#fff;

    background:linear-gradient(135deg,#2563eb,#4f46e5);

    box-shadow:0 15px 35px rgba(37,99,235,.30);

}

.offcanvas{

    width:420px !important;

}

/* ======================================================
   TABLE
====================================================== */
.driver-page table{

    width:100%;

}

.driver-page table thead th{

    padding:18px;

    font-weight:700;

    color:#475569;

    background:#f8fafc;

    border-bottom:2px solid #e5e7eb;

}

.driver-page table tbody td{

    padding:22px 18px;

    vertical-align:middle;

}

.driver-page table tbody tr{

    transition:.25s;

}

.driver-page table tbody tr:hover{

    background:#f8fbff;

}
/* ======================================================
   DRIVER AVATAR
====================================================== */
.driver-avatar{

    width:58px;

    height:58px;

    border-radius:50%;

    background:linear-gradient(135deg,#2563eb,#4f46e5);

    color:#fff;

    font-size:22px;

    font-weight:700;

    display:flex;

    justify-content:center;

    align-items:center;

    box-shadow:0 10px 25px rgba(37,99,235,.30);

}


/* ======================================================
   STATUS PILLS
====================================================== */

.status-pill{

    display:inline-flex;

    align-items:center;

    gap:6px;

    padding:8px 14px;

    border-radius:30px;

    font-size:13px;

    font-weight:600;

}

.status-pill.available{

    background:#dcfce7;

    color:#166534;

}

.status-pill.trip{

    background:#fef3c7;

    color:#92400e;

}

.status-pill.off{

    background:#e5e7eb;

    color:#374151;

}

.powered-by{
    margin-top:30px;
    padding-top:20px;
    border-top:1px solid #e9ecef;
    text-align:center;
}

.powered-by span{
    display:block;
    font-size:12px;
    color:#6c757d;
    letter-spacing:1px;
    text-transform:uppercase;
    margin-bottom:10px;
}

.powered-by img{
    height:60px;
    width:auto;
    display:block;
    margin:0 auto;
}

.powered-by small{
    display:block;
    margin-top:8px;
    color:#495057;
    font-size:13px;
    font-weight:600;
}