/* ===================================
   STAFF DASHBOARD - RESPONSIVE DESIGN
   ==================================== */

:root {
    --staff-primary: #4CAF50;
    --staff-primary-dark: #358a3f;
    --staff-primary-light: #81C784;
    --staff-secondary: #2E7D32;
    --danger: #F44336;
    --success: #4CAF50;
    --warning: #FF9800;
    --info: #2196F3;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Jost', Helvetica, Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navbar/Header */
.staff-navbar {
    background: var(--staff-secondary);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-logo {
    max-height: 40px;
    width: auto;
    border-radius: 4px;
}

.navbar-title {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
    color: white;
}

.staff-navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 8px 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
}

.staff-navbar .nav-link:hover,
.staff-navbar .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.staff-navbar .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
}

.staff-navbar .dropdown-item {
    padding: 10px 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.staff-navbar .dropdown-item:hover {
    background: var(--bg-light);
    color: var(--staff-primary);
}

.staff-navbar .dropdown-item i {
    width: 18px;
    text-align: center;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dashboard Wrapper with Sidebar */
.staff-dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 80px);
    position: relative;
}

/* Sidebar Styling */
.staff-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-sm);
    z-index: 998;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--staff-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    font-size: 20px;
}

.btn-close-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s ease;
    display: none;
}

.btn-close-sidebar:hover {
    color: var(--text-dark);
    transform: scale(1.1);
}

.btn-toggle-sidebar {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--staff-primary);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: all 0.3s ease;
}

.btn-toggle-sidebar:hover {
    background: var(--staff-primary-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 15px 0;
}

.nav-section {
    padding: 15px 0;
}

.nav-section:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.nav-section-title {
    padding: 0 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    margin: 0 0 12px 0;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.nav-link span:first-of-type {
    flex: 1;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--staff-primary);
    border-left-color: var(--staff-primary);
    transform: translateX(3px);
}

.nav-link.active {
    background: rgba(76, 175, 80, 0.1);
    color: var(--staff-primary);
    font-weight: 600;
    border-left-color: var(--staff-primary);
}

.nav-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-link .badge {
    margin-left: auto;
    font-size: 11px;
}

.nav-count {
    display: inline-block;
    background: rgba(76, 175, 80, 0.2);
    color: var(--staff-primary);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.sidebar-shortcut {
    background: var(--bg-light);
    padding: 10px;
    border-radius: 6px;
    color: var(--text-light);
    font-size: 11px;
    line-height: 1.4;
}

/* Main Content Area */
.staff-main-content {
    height: 100%;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-light);
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 997;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Reservation Items */
.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reservation-item {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

.reservation-item:hover {
    border-color: var(--staff-primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.reservation-item.service-item {
    border-left: 4px solid var(--info);
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pending-mixed-item .reservation-header {
    flex-wrap: wrap;
    gap: 8px;
}

.pending-mixed-item .reservation-title {
    min-width: 180px;
}

/* Service Details Modal */
.service-res-modal-dialog {
    max-width: 760px;
}

.service-res-modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.service-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.service-detail-card {
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
}

.service-detail-card label {
    margin: 0 0 5px 0;
    font-size: 12px;
    font-weight: 700;
    color: red;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.service-detail-card p {
    margin: 0;
    font-size: 15px;
    color: black;
    word-break: break-word;
}

.service-detail-card-wide {
    grid-column: span 2;
}

.reservation-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
    flex: 1;
}

.reservation-details {
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reservation-details p {
    margin: 0;
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
}

.reservation-details i {
    color: var(--staff-primary);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.reservation-details strong {
    color: var(--text-dark);
}

.reservation-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.reservation-actions .btn {
    flex: 1;
    font-size: 12px;
    padding: 8px 12px;
}

.reservation-actions-wrap {
    flex-wrap: wrap;
    align-items: center;
}

.status-select {
    min-width: 170px;
    flex: 1 1 170px;
}

.status-update-btn {
    flex: 1 1 150px;
}

.payment-select {
    min-width: 150px;
    flex: 1 1 150px;
}

.payment-update-btn {
    flex: 1 1 160px;
}

.room-view-btn,
.service-view-btn {
    flex: 1 1 170px;
}

.payment-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.payment-unpaid {
    background: #ffebee;
    color: #c62828;
}

.payment-partial {
    background: #fff8e1;
    color: #f57f17;
}

.payment-paid {
    background: #e8f5e9;
    color: #1b5e20;
}
/* Profile Section */
.profile-form {
    width: 100%;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

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

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    display: block;
}

.profile-field .form-control {
    border-radius: 8px;
    min-height: 42px;
    padding: 10px 13px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background: white;
    color: black;
}

.profile-field .form-control:focus {
    border-color: var(--staff-primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

.profile-field .form-control:disabled,
.profile-field .form-control[readonly] {
    background: var(--bg-light);
    color: black;
    cursor: not-allowed;
}

.profile-field-wide {
    grid-column: span 2;
}

.profile-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-actions .btn {
    min-width: 160px;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.profile-actions .btn-success {
    background: var(--staff-primary);
    color: white;
}

.profile-actions .btn-success:hover {
    background: var(--staff-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.profile-actions .btn-warning {
    background: var(--warning);
    color: white;
}

.profile-actions .btn-warning:hover {
    background: #e68900;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Profile Image Section */
.profile-image-section {
    text-align: center;
}

.profile-image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--staff-primary) 0%, var(--staff-secondary) 100%);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.profile-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--staff-primary);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image-wrapper:hover .profile-image-overlay {
    opacity: 1;
}

.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    color: var(--staff-primary);
    font-size: 24px;
}

#profileImageUploadBtn {
    background: var(--staff-primary);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

#profileImageUploadBtn:hover {
    background: var(--staff-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.image-info {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 12px;
    margin-bottom: 0;
}

#imageUploadStatus {
    font-size: 12px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

#imageUploadStatus.success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

#imageUploadStatus.error {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

#imageUploadStatus.loading {
    background: rgba(33, 150, 243, 0.1);
    color: var(--info);
    border: 1px solid var(--info);
}

#imageUploadStatus i {
    margin-right: 6px;
}


.guest-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.guest-detail-item {
    border: 1px solid var(--border-color);
    background: #FAFAFA;
    border-radius: 10px;
    padding: 14px;
}

.guest-detail-item .guest-name {
    margin-bottom: 8px;
}

.guest-detail-item p {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 7px;
}

.guest-detail-item p i {
    color: var(--staff-primary);
}

.active-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.active-booking-item {
    border: 1px solid var(--border-color);
    background: #FAFAFA;
    border-radius: 10px;
    padding: 12px;
    border-left: 3px solid var(--staff-primary);
}

.active-booking-item.service {
    border-left-color: var(--info);
}

.active-booking-item h5 {
    margin: 0 0 8px;
    font-size: 15px;
}

.active-booking-item p {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--text-light);
    word-break: break-word;
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.loading-state i {
    font-size: 32px;
    color: var(--staff-primary);
    display: block;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Welcome Card */
.staff-welcome-card {
    background: linear-gradient(135deg, var(--staff-primary) 0%, var(--staff-secondary) 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    animation: slideInDown 0.5s ease-out;
}

.welcome-content {
    flex: 1;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-title i {
    font-size: 32px;
}

.welcome-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.welcome-date {
    text-align: right;
    min-width: 200px;
}

.current-date {
    font-size: 13px;
    opacity: 0.95;
    display: block;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid var(--staff-primary);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-card-guests {
    border-left-color: #2196F3;
}

.stat-card-reservations {
    border-left-color: #FF9800;
}

.stat-card-active {
    border-left-color: #4CAF50;
}

.stat-card-checkin {
    border-left-color: #9C27B0;
}

.stat-card-service {
    border-left-color: #00ACC1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
}

.stat-card-guests .stat-icon {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.stat-card-reservations .stat-icon {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.stat-card-active .stat-icon {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.stat-card-checkin .stat-icon {
    background: rgba(156, 39, 176, 0.2);
    color: #9C27B0;
}

.stat-card-service .stat-icon {
    background: rgba(0, 172, 193, 0.2);
    color: #00838F;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin: 5px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.card-header {
    background: #FAFAFA;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.card-title i {
    font-size: 20px;
    color: var(--staff-primary);
}

.card-body {
    padding: 20px;
}

.badge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Check-in List */
.checkin-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkin-item {
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    border-left: 3px solid var(--staff-primary);
}

.checkin-item:hover {
    background: #EEEEEE;
}

.checkin-guest {
    flex: 1;
}

.guest-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-dark);
}

.guest-room {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guest-room i {
    font-size: 14px;
    color: var(--staff-primary);
}

.checkin-status {
    flex-shrink: 0;
    margin-left: 15px;
}

/* Pending List */
.pending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pending-item {
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--warning);
    transition: all 0.2s ease;
}

.pending-item:hover {
    background: #fff3e0;
}

.pending-info {
    flex: 1;
}

.pending-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-dark);
}

.pending-dates {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pending-dates i {
    color: var(--warning);
}

.pending-action {
    flex-shrink: 0;
    margin-left: 15px;
}

.btn-outline-success {
    color: var(--staff-primary);
    border-color: var(--staff-primary);
}

.btn-outline-success:hover {
    background: var(--staff-primary);
    border-color: var(--staff-primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    color: #BDBDBD;
    margin-bottom: 15px;
    display: block;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.staff-table {
    font-size: 14px;
    margin-bottom: 0;
}

.staff-table thead th {
    border-bottom: 2px solid var(--border-color);
    font-weight: 700;
    background: #FAFAFA;
    color: var(--text-dark);
    padding: 15px;
    text-transform: uppercase;
    font-size: 12px;
}

.staff-table tbody tr {
    transition: all 0.2s ease;
}

.staff-table tbody tr:hover {
    background: #FAFAFA;
}

.staff-table td {
    padding: 15px;
    border-color: var(--border-color);
    vertical-align: middle;
}

.guest-info {
    line-height: 1.5;
}

.guest-info strong {
    color: var(--text-dark);
    display: block;
}

.guest-info small {
    font-size: 12px;
}

.room-badge {
    background: var(--bg-light);
    color: var(--staff-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-pending {
    background: #FFF3E0;
    color: #E65100;
}

.status-confirmed {
    background: #E8F5E9;
    color: #1B5E20;
}

.status-checked_in {
    background: #E1F5FE;
    color: #01579B;
}

.status-checked_out {
    background: #F3E5F5;
    color: #4A148C;
}

.status-cancelled {
    background: #FFEBEE;
    color: #B71C1C;
}

.status-completed {
    background: #E8F5E9;
    color: #1B5E20;
}

.btn-action {
    color: var(--staff-primary);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.btn-action:hover {
    background: var(--bg-light);
    color: var(--staff-primary-dark);
    transform: scale(1.1);
}

/* Footer */
.staff-footer {
    background: var(--text-dark);
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.staff-footer p {
    margin: 0;
    font-size: 13px;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Extra Large Screens */
@media (min-width: 1201px) {
    .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

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

    .profile-field-wide {
        grid-column: span 2;
    }

    .profile-field label {
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .profile-field .form-control {
        min-height: 44px;
        padding: 11px 14px;
        font-size: 14px;
    }

    .profile-actions {
        margin-top: 22px;
        gap: 12px;
    }

    .profile-actions .btn {
        min-width: 170px;
        padding: 11px 22px;
        font-size: 13px;
    }
}

/* Large Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .profile-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

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

    .profile-field {
        gap: 7px;
    }

    .profile-field label {
        font-size: 11px;
    }

    .profile-field .form-control {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .profile-field-wide {
        grid-column: span 2;
    }

    .profile-actions {
        margin-top: 18px;
        gap: 10px;
    }

    .profile-actions .btn {
        min-width: 145px;
        padding: 9px 16px;
        font-size: 12px;
    }
}

/* Tablets (Landscape) */
@media (max-width: 1024px) {
    .staff-dashboard-container {
        padding: 15px 0;
    }

    .stat-card {
        padding: 20px;
        gap: 15px;
    }

    .stat-number {
        font-size: 24px;
    }

    .staff-table {
        font-size: 13px;
    }

    .staff-table th,
    .staff-table td {
        padding: 12px;
    }

    .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .profile-field label {
        font-size: 11px;
    }

    .profile-field .form-control {
        min-height: 41px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .profile-actions .btn {
        min-width: 155px;
        padding: 9px 16px;
        font-size: 12px;
    }
}

/* Tablets (Portrait) */
@media (max-width: 768px) {
    .staff-navbar {
        padding: 12px 0;
    }

    .navbar-logo {
        max-height: 35px;
    }

    .navbar-title {
        font-size: 16px;
    }

    .staff-navbar .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }

    .staff-welcome-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .welcome-date {
        text-align: center;
        min-width: auto;
    }

    .stat-card {
        padding: 18px;
        gap: 15px;
    }

    .stat-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }

    .profile-image-wrapper {
        width: 150px;
        height: 150px;
        margin: 0 auto 15px;
    }

    #profileImageUploadBtn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .image-info {
        font-size: 11px;
    }

    .upload-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .card-header {
        padding: 15px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-body {
        padding: 15px;
    }

    .dashboard-section {
        margin-bottom: 24px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-title-sm {
        font-size: 16px;
    }

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

    .status-select {
        min-width: 140px;
    }

    .payment-select {
        min-width: 140px;
    }

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

    .service-detail-card-wide {
        grid-column: span 1;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

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

    .profile-field {
        gap: 7px;
    }

    .profile-field label {
        font-size: 11px;
    }

    .profile-field .form-control {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .profile-field-wide {
        grid-column: span 1;
    }

    .profile-actions {
        margin-top: 18px;
        gap: 10px;
    }

    .profile-actions .btn {
        min-width: 140px;
        padding: 9px 16px;
        font-size: 12px;
    }

    .profile-image-wrapper {
        width: 150px;
        height: 150px;
        margin: 0 auto 15px;
    }

    #profileImageUploadBtn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .image-info {
        font-size: 11px;
    }

    .upload-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .staff-table {
        font-size: 12px;
    }

    .staff-table th,
    .staff-table td {
        padding: 10px 8px;
    }

    .room-badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .status-badge {
        padding: 5px 10px;
        font-size: 10px;
    }

    .btn-action {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .checkin-item,
    .pending-item {
        padding: 12px;
    }

    .guest-name,
    .pending-name {
        font-size: 14px;
    }
}

/* Mobile Devices */
@media (max-width: 576px) {
    .staff-dashboard-container {
        padding: 12px 0;
    }

    .staff-navbar {
        padding: 10px 0;
    }

    .navbar-logo {
        max-height: 32px;
    }

    .navbar-title {
        font-size: 14px;
        display: none;
    }

    .navbar-brand {
        gap: 8px;
    }

    .staff-navbar .nav-link {
        padding: 6px 10px;
        font-size: 12px;
        gap: 6px;
    }

    .staff-navbar .nav-link i {
        font-size: 16px;
    }

    .staff-welcome-card {
        padding: 15px;
        border-radius: 8px;
        gap: 10px;
    }

    .welcome-title {
        font-size: 18px;
        gap: 10px;
    }

    .welcome-title i {
        font-size: 24px;
    }

    .welcome-subtitle {
        font-size: 12px;
    }

    .current-date {
        font-size: 11px;
    }

    .dashboard-section {
        margin-bottom: 18px;
    }

    .section-header {
        margin-bottom: 10px;
    }

    .section-title {
        font-size: 16px;
        gap: 8px;
    }

    .section-title-sm {
        font-size: 15px;
    }

    .section-subtitle {
        font-size: 12px;
    }

    .row {
        margin-bottom: 12px !important;
    }

    .g-3,
    .g-md-4 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }

    .stat-card {
        padding: 15px;
        gap: 12px;
        margin-bottom: 10px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .card-header {
        padding: 12px 15px;
    }

    .card-title {
        font-size: 15px;
        gap: 8px;
    }

    .card-title i {
        font-size: 18px;
    }

    .badge {
        padding: 4px 10px;
        font-size: 11px;
    }

    .card-body {
        padding: 12px 15px;
    }

    .checkin-item,
    .pending-item {
        padding: 10px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .checkin-status,
    .pending-action {
        margin-left: 0;
        align-self: flex-start;
    }

    .guest-name,
    .pending-name {
        font-size: 13px;
    }

    .guest-room,
    .pending-dates {
        font-size: 11px;
    }

    /* Table optimized for mobile */
    .table-responsive {
        overflow-x: auto;
    }

    .staff-table {
        font-size: 11px;
        margin-bottom: 0;
    }

    .staff-table th {
        padding: 8px 6px;
        font-size: 10px;
    }

    .staff-table td {
        padding: 8px 6px;
    }

    .guest-info small {
        font-size: 10px;
        display: none;
    }

    .room-badge {
        padding: 3px 8px;
        font-size: 10px;
    }

    .status-badge {
        padding: 4px 8px;
        font-size: 9px;
    }

    .btn-action {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .text-end {
        text-align: right !important;
    }

    .staff-footer {
        padding: 15px 10px;
    }

    .staff-footer p {
        font-size: 11px;
    }

    .service-res-modal-dialog {
        max-width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }

    .service-detail-card {
        padding: 10px 12px;
    }

    .service-detail-card p {
        font-size: 14px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 15px;
    }

    .profile-field {
        gap: 6px;
    }

    .profile-field label {
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .profile-field .form-control {
        min-height: 38px;
        padding: 8px 11px;
        font-size: 12px;
    }

    .profile-field .form-control:focus {
        box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
    }

    .profile-field-wide {
        grid-column: span 1;
    }

    .profile-actions {
        justify-content: stretch;
        margin-top: 15px;
        gap: 8px;
        flex-direction: column;
    }

    .profile-actions .btn {
        width: 100%;
        min-width: 0;
        padding: 8px 12px;
        font-size: 11px;
    }

    .profile-actions .btn i {
        font-size: 13px;
    }

    .profile-image-wrapper {
        width: 140px;
        height: 140px;
        margin: 0 auto 12px;
    }

    #profileImageUploadBtn {
        padding: 7px 12px;
        font-size: 11px;
    }

    .image-info {
        font-size: 10px;
        margin-top: 10px;
    }

    .upload-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    #imageUploadStatus {
        font-size: 11px;
        padding: 8px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .navbar-brand {
        gap: 4px;
    }

    .welcome-title {
        font-size: 16px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 10px;
    }

    .card-header {
        padding: 10px 12px;
    }

    .card-title {
        font-size: 13px;
    }

    .card-body {
        padding: 10px 12px;
    }

    .staff-table th,
    .staff-table td {
        padding: 6px 4px;
        font-size: 10px;
    }

    .staff-table th {
        font-size: 9px;
    }

    .btn-action {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }

    .profile-field {
        gap: 5px;
    }

    .profile-field label {
        font-size: 9px;
        letter-spacing: 0.2px;
    }

    .profile-field .form-control {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 11px;
    }

    .profile-field .form-control:focus {
        box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.08);
    }

    .profile-field-wide {
        grid-column: span 1;
    }

    .profile-actions {
        margin-top: 12px;
        gap: 6px;
        flex-direction: column;
    }

    .profile-actions .btn {
        width: 100%;
        min-width: 0;
        padding: 7px 10px;
        font-size: 10px;
    }

    .profile-actions .btn i {
        font-size: 12px;
    }

    .profile-image-wrapper {
        width: 120px;
        height: 120px;
        margin: 0 auto 10px;
    }

    #profileImageUploadBtn {
        padding: 6px 10px;
        font-size: 10px;
    }

    .image-info {
        font-size: 9px;
        margin-top: 8px;
    }

    .upload-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    #imageUploadStatus {
        font-size: 10px;
        padding: 6px;
        margin-top: 8px;
    }
}

/* ===================================
   SIDEBAR RESPONSIVE DESIGN
   ==================================== */

/* Tablets (Portrait) - Show sidebar */
@media (max-width: 768px) {
    .staff-dashboard-wrapper {
        flex-direction: column;
    }

    .staff-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: auto;
        padding-top: 80px;
        transition: left 0.3s ease;
        z-index: 1000;
        width: 280px;
        max-width: 80vw;
    }

    .staff-sidebar.open {
        left: 0;
    }

    .sidebar-backdrop {
        display: block;
    }

    .staff-main-content {
        width: 100%;
        min-height: 100%;
    }

    .btn-toggle-sidebar {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-close-sidebar {
        display: block;
    }

    .sidebar-header {
        padding: 15px;
    }

    .sidebar-title {
        font-size: 16px;
    }

    .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }

    .nav-section-title {
        padding: 0 15px;
        font-size: 11px;
    }
}

/* Small Tablets (Landscape) - Adjusted sidebar */
@media (min-width: 769px) and (max-width: 1024px) {
    .staff-sidebar {
        width: 250px;
    }

    .sidebar-title {
        font-size: 16px;
    }

    .nav-link {
        padding: 10px 15px;
        font-size: 13px;
    }

    .reservation-title {
        font-size: 14px;
    }

    .reservation-details p {
        font-size: 12px;
    }
}

/* Desktop - Full sidebar visible */
@media (min-width: 1025px) {
    .staff-sidebar {
        width: 280px;
        position: sticky;
        top: 80px;
        height: auto;
    }

    .btn-toggle-sidebar {
        display: none !important;
    }

    .btn-close-sidebar {
        display: none !important;
    }

    .sidebar-backdrop {
        display: none !important;
    }
}

/* Mobile Devices */
@media (max-width: 576px) {
    .staff-sidebar {
        left: -100%;
        width: 100%;
        max-width: 100%;
    }

    .sidebar-header {
        padding: 12px;
    }

    .sidebar-title {
        font-size: 14px;
    }

    .sidebar-title i {
        font-size: 16px;
    }

    .btn-close-sidebar {
        font-size: 18px;
    }

    .nav-link {
        padding: 9px 12px;
        font-size: 13px;
    }

    .nav-count {
        font-size: 10px;
        padding: 2px 6px;
    }

    .reservation-item {
        padding: 12px;
    }

    .reservation-details {
        gap: 6px;
    }

    .reservation-details p {
        font-size: 12px;
    }

    .reservation-actions .btn {
        font-size: 11px;
        padding: 6px 10px;
    }

    .status-select,
    .payment-select,
    .payment-update-btn,
    .status-update-btn,
    .reservation-actions-wrap .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .guest-detail-item {
        padding: 12px;
    }

    .guest-detail-item p,
    .active-booking-item p {
        font-size: 12px;
    }

    .btn-toggle-sidebar {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
        font-size: 18px;
    }

    .sidebar-backdrop {
        display: block;
    }
}

/* ===================================
   DARK MODE SUPPORT
   ==================================== */

/* ===================================
   SECTION SWITCHING & NAVIGATION
   ==================================== */

.dashboard-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    min-height: 400px;
}

.dashboard-section.section-active {
    display: block;
    opacity: 1;
}

.section-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
}

.section-header .container-fluid {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.section-content {
    padding: 0;
    background: white;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--staff-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    font-size: 28px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin: 5px 0 0 0;
}

/* Sidebar Active Link */
.sidebar-section-link {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.sidebar-section-link span:first-of-type {
    flex: 1;
}

.sidebar-section-link.active {
    background: rgba(76, 175, 80, 0.1);
    border-left-color: var(--staff-primary) !important;
    color: var(--staff-primary) !important;
    font-weight: 600;
}

/* Responsive Sections */
@media (max-width: 768px) {
    .section-header {
        border-bottom: 2px solid var(--staff-primary);
    }

    .section-title {
        font-size: 20px;
    }

    .section-content {
        background: var(--bg-light);
    }

    .dashboard-section {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 18px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .section-header .container-fluid {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
}

/* Dark Mode Sections */
@media (prefers-color-scheme: dark) {
    .section-header {
        background: #1a1a1a;
        border-bottom-color: var(--border-color);
    }

    .section-content {
        background: #1a1a1a;
    }

    .section-title {
        color: #81C784;
    }

    .section-subtitle {
        color: #999;
    }
}

/* ===================================
   END SECTION SWITCHING
   ==================================== */


    :root {
        --text-dark: #ffffff;
        --text-light: #cccccc;
        --bg-light: #2a2a2a;
        --bg-white: #1a1a1a;
        --border-color: #404040;
    }

    body {
        background: #1a1a1a;
        color: #ffffff;
    }

    .staff-navbar {
        background: #0d3614;
    }

    .staff-welcome-card {
        background: linear-gradient(135deg, #5cb85c 0%, #1b5e20 100%);
    }

    .dashboard-card {
        background: #2a2a2a;
        border: 1px solid var(--border-color);
    }

    .card-header {
        background: #1a1a1a;
    }

    .stat-card {
        background: #2a2a2a;
        border: 1px solid var(--border-color);
    }

    .card-body {
        border-color: var(--border-color);
    }

    .checkin-item,
    .pending-item {
        background: #1a1a1a;
        border-left-color: var(--staff-primary);
    }

    .checkin-item:hover,
    .pending-item:hover {
        background: #262626;
    }

    .staff-table thead th {
        background: #1a1a1a;
        border-color: var(--border-color);
    }

    .staff-table tbody tr:hover {
        background: #262626;
    }

    .room-badge {
        background: #1a1a1a;
    }

    .empty-state {
        color: #999;
    }

    .staff-footer {
        background: #0d0d0d;
        border-color: var(--border-color);
    }

    .staff-sidebar {
        background: #2a2a2a;
        border-right-color: var(--border-color);
    }

    .sidebar-header {
        border-bottom-color: var(--border-color);
    }

    .sidebar-title {
        color: #81C784;
    }

    .btn-close-sidebar {
        color: #cccccc;
    }

    .btn-close-sidebar:hover {
        color: #ffffff;
    }

    .nav-section {
        border-bottom-color: var(--border-color);
    }

    .nav-section-title {
        color: #999999;
    }

    .nav-link {
        color: #cccccc;
    }

    .nav-link:hover {
        background: #1a1a1a;
        color: #81C784;
        border-left-color: #81C784;
    }

    .nav-link.active {
        background: rgba(76, 175, 80, 0.15);
        color: #81C784;
        border-left-color: #81C784;
    }

    .nav-count {
        background: rgba(76, 175, 80, 0.2);
        color: #81C784;
    }

    .sidebar-footer {
        border-top-color: var(--border-color);
    }

    .sidebar-shortcut {
        background: #1a1a1a;
        color: #999999;
    }

    .reservation-item {
        background: #1a1a1a;
        border-color: var(--border-color);
    }

    .reservation-item:hover {
        border-color: #81C784;
    }

    .reservation-title {
        color: #ffffff;
    }

    .reservation-details p {
        color: #cccccc;
    }

    .reservation-details strong {
        color: #ffffff;
    }

    .guest-detail-item,
    .active-booking-item {
        background: #1a1a1a;
        border-color: var(--border-color);
    }

    .loading-state {
        color: #cccccc;
    }

    .loading-state i {
        color: #81C784;
    }

    .empty-state {
        color: #999;
    }

    .profile-image-wrapper {
        background: linear-gradient(135deg, #5cb85c 0%, #1b5e20 100%);
    }

    #profileImageUploadBtn {
        background: #5cb85c;
    }

    #profileImageUploadBtn:hover {
        background: #4caf50;
    }

    .image-info {
        color: #999999;
    }

    #imageUploadStatus.success {
        background: rgba(92, 184, 92, 0.15);
        color: #81C784;
        border-color: #81C784;
    }

    #imageUploadStatus.error {
        background: rgba(244, 67, 54, 0.15);
        color: #ff7675;
        border-color: #ff7675;
    }

    #imageUploadStatus.loading {
        background: rgba(33, 150, 243, 0.15);
        color: #64b5f6;
        border-color: #64b5f6;
    }

    .sidebar-backdrop {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: more) {
    .stat-card {
        border-width: 2px;
    }

    .dashboard-card {
        border: 2px solid var(--border-color);
    }
}

/* ===================================
   FINAL SIDEBAR RESPONSIVE FIX
   ==================================== */
:root {
    --staff-navbar-height: 76px;
}

@media (max-width: 1024px) {
    .staff-sidebar {
        position: fixed;
        top: var(--staff-navbar-height);
        left: 0;
        width: min(320px, 86vw);
        height: 100%;
        max-width: 100%;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        z-index: 1100;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    }

    .staff-sidebar.open {
        transform: translateX(0);
    }

    .staff-main-content {
        min-height: calc(100dvh - var(--staff-navbar-height));
        width: 100%;
    }

    .btn-close-sidebar {
        display: block;
    }

    .btn-toggle-sidebar {
        display: none !important;
    }

    .sidebar-backdrop {
        display: block;
        z-index: 1090;
    }

    body.sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 576px) {
    .staff-sidebar {
        width: 88vw;
    }
}

@media (min-width: 1025px) {
    .staff-sidebar {
        transform: none !important;
    }

    body.sidebar-open {
        overflow: auto;
    }
}


/*  */

section{
    padding: 0px 0 0px 0;
}
