/* =========================================================
   GLOBAL
========================================================= */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f1f5f9;
    color:#0f172a;
    overflow-x:hidden;
    min-height:100vh;
    min-height:100dvh;
}

/* =========================================================
   SCROLLBAR
========================================================= */

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

::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#94a3b8;
}

/* =========================================================
   LINKS
========================================================= */

a{
    text-decoration:none;
}

/* =========================================================
   FORM ELEMENTS
========================================================= */

input,
select,
textarea,
button{
    font-family:'Poppins',sans-serif;
    font-size:16px;
}

input:focus,
select:focus,
textarea:focus{
    outline:none;
}

/* =========================================================
   FILE INPUT
========================================================= */

input[type="file"]{
    width:100%;
    background:#f1f5f9;
    border:1px solid #e2e8f0;
    border-radius:1rem;
    padding:0.8rem;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar{
    width:280px;
    background:#020617;
    color:#fff;
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    z-index:50;
    overflow-y:auto;
    transition:transform 0.3s ease;
}

.sidebar::-webkit-scrollbar{
    width:5px;
}

.sidebar::-webkit-scrollbar-thumb{
    background:#475569;
    border-radius:20px;
}

.sidebar-hidden{
    transform:translateX(-100%);
}

/* =========================================================
   OVERLAY
========================================================= */

.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.5);
    z-index:40;
    display:none;
    backdrop-filter:blur(2px);
}

.overlay.active{
    display:block;
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content{
    margin-left:280px;
    min-height:100vh;
    min-height:100dvh;
}

.page-content{
    padding:24px;
    padding-bottom:100px;
}

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

.top-header{
    background:#fff;
    border-bottom:1px solid #e2e8f0;
    padding:18px 24px;
    position:sticky;
    top:0;
    z-index:30;
    backdrop-filter:blur(10px);
}

.mobile-menu-btn{
    display:none;
    align-items:center;
    justify-content:center;
    border:none;
    cursor:pointer;
}

/* =========================================================
   CARDS
========================================================= */

.dashboard-card{
    background:#63e5e7c7;
    border-radius:24px;
    padding:24px;
    border:1px solid #e2e8f0;
    box-shadow:0 1px 2px rgba(0,0,0,0.04);
    transition:0.25s ease;
    min-width:0;
    will-change:transform;
}

.dashboard-card:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(0,0,0,0.06);
}

/* =========================================================
   STATISTICS
========================================================= */

.stat-title{
    font-size:14px;
    color:#000000;
    font-weight:500;
}

.stat-value{
    font-size:clamp(28px,5vw,42px);
    font-weight:700;
    margin-top:10px;
    line-height:1.1;
}

.stat-subtitle{
    font-size:13px;
    color:#1f2936;
    margin-top:8px;
}

/* =========================================================
   STATUS BOX
========================================================= */

.status-box{
    padding:22px;
    border-radius:20px;
}

.status-value{
    font-size:clamp(28px,5vw,40px);
    font-weight:700;
    margin-top:10px;
}

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

.primary-btn{
    background:#dc2626;
    color:#fff;
    padding:12px 18px;
    border-radius:14px;
    border:none;
    font-weight:600;
    transition:0.25s ease;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    cursor:pointer;
    text-decoration:none;
}

.primary-btn:hover{
    background:#b91c1c;
}

.primary-btn:active{
    transform:scale(0.98);
}

/* =========================================================
   FORM SYSTEM
========================================================= */

.form-label{
    display:block;
    font-size:0.95rem;
    font-weight:600;
    color:#334155;
    margin-bottom:0.6rem;
}

.form-input{
    width:100%;
    background:#f1f5f9;
    border:1px solid #e2e8f0;
    border-radius:1rem;
    padding:0.9rem 1rem;
    outline:none;
    transition:0.2s ease;
}

.form-input:focus{
    border-color:#ef4444;
    background:#fff;
}

.form-input[readonly]{
    background:#e2e8f0;
    cursor:not-allowed;
}

/* =========================================================
   BOOKING SOURCE
========================================================= */

.booking-source-card{
    border:1px solid #dbe2ea;
    border-radius:1rem;
    padding:1rem;
    background:#f8fafc;
    display:flex;
    align-items:center;
    gap:0.75rem;
    cursor:pointer;
    transition:0.2s ease;
}

.booking-source-card:hover{
    border-color:#ef4444;
    background:#fff;
}

/* =========================================================
   AMENITY CARD
========================================================= */

.amenity-card{
    border:1px solid #e2e8f0;
    border-radius:1.25rem;
    padding:1rem;
    background:#fff;
    cursor:pointer;
    transition:0.2s ease;
}

.amenity-card:hover{
    border-color:#ef4444;
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,0.05);
}

/* =========================================================
   TABLES
========================================================= */

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

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

.badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
}

/* =========================================================
   MOBILE BOTTOM NAV
========================================================= */

.mobile-bottom-nav{
    display:none;
}

/* =========================================================
   UTILITIES
========================================================= */

.text-break{
    word-break:break-word;
}

.transition-fast{
    transition:0.2s ease;
}

.shadow-soft{
    box-shadow:0 10px 30px rgba(0,0,0,0.04);
}

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

@media(max-width:1024px){

    .sidebar{
        transform:translateX(-100%);
    }

    .sidebar.active{
        transform:translateX(0);
    }

    .main-content{
        margin-left:0;
    }

    .mobile-menu-btn{
        display:flex;
    }

}

@media(max-width:768px){

    .page-content{
        padding:16px;
        padding-bottom:100px;
    }

    .dashboard-card{
        padding:18px;
        border-radius:20px;
    }

    .top-header{
        padding:16px;
    }

    .mobile-bottom-nav{
        position:fixed;
        bottom:0;
        left:0;
        right:0;
        background:#fff;
        border-top:1px solid #e2e8f0;
        display:block;
        z-index:40;
    }

    .primary-btn{
        width:100%;
    }

}

@media(max-width:480px){

    .sidebar{
        width:85%;
    }

    .page-content{
        padding:14px;
    }

    .dashboard-card{
        padding:16px;
        border-radius:18px;
    }

    .top-header{
        padding:14px;
    }

}



/* ==========================================
   GLOBAL FORM GROUP
========================================== */

.form-group{
    display:flex;
    flex-direction:column;
    gap:0.7rem;
    width:100%;
}

/* ==========================================
   FORM LABEL
========================================== */

.form-label{
    font-size:0.95rem;
    font-weight:600;
    color:#0f172a;
}

/* ==========================================
   FORM HELPER
========================================== */

.form-helper{
    font-size:0.82rem;
    color:#64748b;
    margin-top:-2px;
}

/* ==========================================
   FORM INPUT
========================================== */

.form-input{
    width:100%;
    min-height:54px;
    background:#f8fafc;
    border:1px solid #dbe2ea;
    border-radius:16px;
    padding:0 16px;
    font-size:15px;
    color:#0f172a;
    transition:0.2s ease;
}

.form-input::placeholder{
    color:#94a3b8;
}

.form-input:focus{
    background:#fff;
    border-color:#dc2626;
    box-shadow:
    0 0 0 4px rgba(220,38,38,0.08);
}

/* ==========================================
   BOOKING SOURCE GRID
========================================== */

.booking-source-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

/* ==========================================
   BOOKING SOURCE CARD
========================================== */

.booking-source-card{
    position:relative;
    display:flex;
    align-items:center;
    gap:10px;
    min-height:54px;
    padding:0 16px;
    background:#fff;
    border:1px solid #dbe2ea;
    border-radius:16px;
    cursor:pointer;
    transition:0.2s ease;
}

.booking-source-card:hover{
    border-color:#dc2626;
    background:#fef2f2;
}

/* ==========================================
   RADIO BUTTON
========================================== */

.booking-radio{
    accent-color:#dc2626;
    transform:scale(1.05);
    cursor:pointer;
}

/* ==========================================
   SOURCE TEXT
========================================== */

.booking-source-text{
    font-size:14px;
    font-weight:500;
    color:#0f172a;
}

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

@media(max-width:768px){

    .booking-source-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:480px){

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

}



/* ==========================================
   SUCCESS ALERT
========================================== */

.success-alert{

    background: linear-gradient(
        135deg,
        #dcfce7,
        #bbf7d0
    );

    color: #166534;

    border: 1px solid #86efac;

    padding: 18px 22px;

    border-radius: 18px;

    font-weight: 600;

    box-shadow:
        0 4px 12px rgba(34,197,94,0.12);

}

/* ==========================================
   ERROR ALERT
========================================== */

.error-alert{

    background: linear-gradient(
        135deg,
        #fee2e2,
        #fecaca
    );

    color: #991b1b;

    border: 1px solid #fca5a5;

    padding: 18px 22px;

    border-radius: 18px;

    font-weight: 600;

    box-shadow:
        0 4px 12px rgba(239,68,68,0.12);

}




