/* custom.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: #f0f4f8;
    /* Softer, richer background */
    color: #1e293b;
}

/* Sidebar Styling */
.sidebar-container {
    height: 100vh;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1040;
    transition: all 0.3s ease;
}

.sidebar-container .nav-link {
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 10px 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #cbd5e1 !important;
}

.sidebar-container .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    transform: translateX(5px);
}

.sidebar-container .nav-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    font-weight: 600;
}

.content-container {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f4f7fa;
}

/* Glassmorphism & Colorful Premium Cards */
.card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

/* Floor map / Room cards */
.room-card {
    cursor: pointer;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0 !important;
}

.room-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15) !important;
    border-color: #bfdbfe !important;
}

/* Scrollable lists */
.available-rooms-list {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.dashboard-sidebar-panels {
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    border-left: 1px solid #e2e8f0;
}

/* Modern Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1.2rem;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.3);
}

/* Beautiful Tables */
.table {
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-bottom: 0;
}

.table thead th {
    border-bottom: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #64748b;
    background: transparent;
    padding-bottom: 4px;
}

.table tbody tr {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    transition: all 0.2s;
}

.table tbody tr:hover {
    transform: translateY(-2px) scale(1.005);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

.table tbody td {
    border-top: none;
    border-bottom: none;
    vertical-align: middle;
    padding: 1rem;
}

.table tbody td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table tbody td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Status Badges */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
}

.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modals */
.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 1.25rem;
}

/* Inputs */
.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 0.7rem 1rem;
    background-color: #f8fafc;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

/* =========================================
   Mobile Responsiveness (Bottom Navigation)
   ========================================= */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
        /* Space for bottom nav */
    }

    /* Transform Sidebar into Bottom Bar */
    .sidebar-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        height: 75px !important;
        min-height: 75px !important;
        width: 100%;
        padding: 0 !important;
        z-index: 1050;
        background: rgba(15, 23, 42, 0.95) !important;
        backdrop-filter: blur(15px);
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .sidebar-container .d-flex.flex-column {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        height: 100%;
        padding: 0 !important;
        min-height: auto !important;
    }

    .sidebar-container #menu {
        flex-direction: row !important;
        justify-content: space-evenly !important;
        align-items: center;
        width: 100%;
        margin: 0 !important;
        padding: 0 5px !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .sidebar-container #menu::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .sidebar-container .nav-item {
        width: auto !important;
        margin: 0 !important;
    }

    .sidebar-container .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        margin: 0;
        font-size: 10px;
        border-radius: 12px;
        color: #94a3b8 !important;
        min-width: 65px;
    }

    .sidebar-container .nav-link:hover {
        transform: translateY(-2px);
    }

    .sidebar-container .nav-link.active {
        box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
        transform: translateY(-4px);
    }

    .sidebar-container .nav-link i {
        font-size: 1.3rem !important;
        margin-bottom: 4px;
        margin-right: 0 !important;
    }

    /* Reveal some text on mobile nav, but very small */
    .sidebar-container .nav-link .d-none.d-sm-inline {
        display: block !important;
        font-size: 9px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.9;
    }

    /* Hide Logo, Profile dropdown, HR in mobile nav */
    .sidebar-container>.d-flex>a.border-bottom,
    .sidebar-container hr,
    .sidebar-container .dropdown {
        display: none !important;
    }

    .content-container {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 15px !important;
    }

    /* Stack cards differently on mobile */
    .dashboard-sidebar-panels {
        height: auto;
        border-left: none;
        margin-top: 20px;
        border-radius: 16px;
    }

    .room-card {
        width: 100% !important;
        /* Full width cards on mobile */
        margin-bottom: 5px;
    }

    .d-flex.flex-wrap.gap-3 {
        gap: 15px !important;
    }
}