/* Dashboard Styles - Volt Dashboard Theme */

:root {
    --primary-color: #004354;
    --secondary-color: #f7fafc;
    --success-color: #2dce89;
    --info-color: #11cdef;
    --warning-color: #fb6340;
    --danger-color: #f5365c;
    --dark-color: #172b4d;
    --light-color: #f8f9fe;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --top-navbar-height: 70px;
    --border-radius: 0.375rem;
    --box-shadow: 0 0 2rem 0 rgba(136, 152, 170, 0.15);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.dashboard-body {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--primary-color) 0%, #825ee4 100%);
    color: white;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sidebar-logo {
    height: 80px;
    width: auto;
    max-width: 300px;
}

.sidebar-toggle {
    color: white;
    border: none;
    background: none;
    font-size: 1.25rem;
}

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

.sidebar-item {
    margin: 0.25rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    text-decoration: none;
}

.sidebar-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: white;
}

.sidebar-link i {
    font-size: 1.125rem;
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
}

/* Top Navigation */
.top-navbar {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    height: var(--top-navbar-height);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.top-navbar h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin: 0;
}

.sidebar-toggle {
    color: var(--dark-color);
    border: none;
    background: none;
    font-size: 1.25rem;
    padding: 0.5rem;
}

/* Page Content */
.page-content {
    padding: 2rem 0;
    min-height: calc(100vh - var(--top-navbar-height));
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 2rem rgba(136, 152, 170, 0.15);
}

.card-header {
    background: none;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    color: var(--dark-color);
    font-weight: 600;
    margin: 0;
    font-size: 1.125rem;
}

.card-subtitle {
    color: #8898aa;
    font-size: 0.875rem;
    margin: 0;
}

/* Stats Cards */
.stats-card {
    text-align: center;
    padding: 2rem 1.5rem;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Override for rental dashboard workflow steps */
.workflow-step .stats-card {
    padding: 0.25rem 0.5rem !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
}

/* Even more specific override */
.workflow-step .stats-card.stats-card-primary,
.workflow-step .stats-card.stats-card-success,
.workflow-step .stats-card.stats-card-warning {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 0.25rem 0.5rem !important;
}

.stats-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.stats-icon.primary { background-color: var(--primary-color); }
.stats-icon.secondary { background-color: #6c757d; }
.stats-icon.success { background-color: var(--success-color); }
.stats-icon.info { background-color: var(--info-color); }
.stats-icon.warning { background-color: var(--warning-color); }

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: #8898aa;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Tables */
.table-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.table-card .table {
    margin: 0;
}

.table-card .table th {
    border-top: none;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
    padding: 1rem;
}

.table-card .table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-primary:hover {
    background-color: #4a5fd1;
    border-color: #4a5fd1;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius);
    background-color: rgba(0, 67, 84, 0.05);
}

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

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    border-radius: var(--border-radius);
    background-color: rgba(108, 117, 125, 0.05);
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-info {
    color: var(--info-color);
    border-color: var(--info-color);
    border-radius: var(--border-radius);
    background-color: rgba(17, 205, 239, 0.05);
}

.btn-outline-info:hover {
    background-color: var(--info-color);
    border-color: var(--info-color);
}

.btn-outline-warning {
    color: var(--warning-color);
    border-color: var(--warning-color);
    border-radius: var(--border-radius);
    background-color: rgba(251, 99, 64, 0.05);
}

.btn-outline-warning:hover {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-outline-success {
    color: var(--success-color);
    border-color: var(--success-color);
    border-radius: var(--border-radius);
    background-color: rgba(45, 206, 137, 0.05);
}

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

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    padding: 0.75rem;
    font-size: 0.875rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.25);
}

.form-label {
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: rgba(45, 206, 137, 0.1);
    color: var(--success-color);
}

.alert-info {
    background-color: rgba(17, 205, 239, 0.1);
    color: var(--info-color);
}

.alert-warning {
    background-color: rgba(251, 99, 64, 0.1);
    color: var(--warning-color);
}

.alert-danger {
    background-color: rgba(245, 54, 92, 0.1);
    color: var(--danger-color);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
        transition: transform 0.3s ease;
    }

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

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

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.show {
        display: block;
        opacity: 1;
    }

    /* Prevent body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }

    /* Improve sidebar toggle button visibility */
    .sidebar-toggle {
        color: #004354 !important;
        border: none;
        background: none;
        font-size: 1.5rem;
        padding: 0.5rem;
        z-index: 1002;
        transition: color 0.2s ease;
    }

    .sidebar-toggle:hover {
        color: #003344 !important;
    }

    /* Ensure sidebar header is properly positioned */
    .sidebar-header {
        position: relative;
        z-index: 1002;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-info { background-color: var(--info-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Rental Dashboard Styles */
.workflow-step {
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.workflow-step.active {
    border-color: #007bff;
    background-color: #e7f3ff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.workflow-step.completed {
    border-color: #28a745;
    background-color: #e7f7ed;
}

.workflow-step input:disabled,
.workflow-step textarea:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.item-card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.item-card:hover {
    border-color: #007bff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 123, 255, 0.075);
}

.item-card.selected {
    border-color: #007bff;
    background-color: #e7f3ff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.location-group-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #007bff;
}

.location-hierarchy {
    font-weight: 500;
    color: #495057;
}

.quantity-controls .input-group {
    max-width: 120px;
}

.quantity-controls .form-control {
    text-align: center;
    border-left: 0;
    border-right: 0;
}

.quantity-controls .btn {
    border-radius: 0;
}

.quantity-controls .qty-minus {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.quantity-controls .qty-plus {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.selected-items-list .selected-item,
.selected-rooms-list .selected-room {
    transition: all 0.2s ease;
}

.selected-items-list .selected-item:hover,
.selected-rooms-list .selected-room:hover {
    background-color: #f8f9fa;
}

.remove-item-btn,
.remove-room-btn {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.remove-item-btn:hover,
.remove-room-btn:hover {
    opacity: 1;
}

/* Modal Styles */
.modal-xl {
    max-width: 1200px;
}

.room-item {
    transition: all 0.2s ease;
}

.room-item:hover:not(.disabled) {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.room-item.active {
    background-color: #e7f3ff;
    border-color: #007bff;
}

.room-item.disabled {
    cursor: not-allowed;
}

/* Calendar Styles */
.calendar-grid {
    display: grid;
    gap: 1px;
    background-color: #dee2e6;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.calendar-header {
    display: contents;
}

.calendar-row {
    display: contents;
}

.calendar-cell {
    background-color: white;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-cell.header {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: center;
    min-height: auto;
    padding: 0.75rem 0.5rem;
}

.calendar-cell.time-slot {
    background-color: #f8f9fa;
    font-weight: 500;
    font-size: 0.875rem;
    justify-content: flex-start;
    padding-left: 1rem;
}

.calendar-cell.available {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.calendar-cell.occupied {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.calendar-cell.today {
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.calendar-cell.weekend {
    background-color: #f8f9fa;
}

.day-name {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
}

.day-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
}

.slot-info {
    font-size: 0.75rem;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .workflow-step {
        margin-bottom: 1rem;
    }

    .item-card {
        margin-bottom: 1rem;
    }

    .quantity-controls .input-group {
        max-width: 100px;
    }

    .calendar-cell {
        min-height: 40px;
        padding: 0.25rem;
        font-size: 0.75rem;
    }

    .day-number {
        font-size: 1rem;
    }
}

/* Stats Card Details */
.stats-card .stats-details {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.stats-card .stats-details .text-primary {
    color: var(--primary-color) !important;
}

.stats-card .stats-details .text-success {
    color: var(--success-color) !important;
}

.stats-card .stats-details .text-warning {
    color: var(--warning-color) !important;
}

/* Compact stats cards for rental dashboard - more specific */
.workflow-step .stats-card {
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    color: white;
    min-height: 60px !important;
    max-height: 60px !important;
    height: 60px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin: 0.1rem;
}

.workflow-step .stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.workflow-step .stats-card .stats-number {
    font-size: 1rem !important;
    font-weight: bold;
    margin-bottom: 0.15rem !important;
    color: white;
}

.workflow-step .stats-card .stats-label {
    font-size: 0.65rem !important;
    opacity: 0.9;
    color: white;
}

.workflow-step .stats-card-primary {
    background-color: #0d6efd;
}

.workflow-step .stats-card-success {
    background-color: #198754;
}

.workflow-step .stats-card-warning {
    background-color: #ffc107;
}

/* Profile Card Styles */
.profile-info {
    padding: 1rem 0;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar i {
    font-size: 4rem;
    color: var(--primary-color);
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.profile-email {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.profile-meta-item {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--dark-color);
}

.profile-address {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.profile-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-status .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.profile-actions {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    height: fit-content;
}

.profile-actions h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive adjustments for profile */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-status {
        justify-content: center;
    }

    .profile-actions {
        margin-top: 1rem;
    }
}

/* Chart styles */
#dashboardChart {
    height: 300px !important;
    max-height: 300px;
    width: 100% !important;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Rental Details Modal Styles */
.rental-details-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 1.5rem;
    margin-bottom: 0;
    border-bottom: 2px solid #007bff;
}

.rental-details-header h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin: 0;
    font-size: 1.25rem;
}

.rental-details-header .user-info {
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.rental-details-content {
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.rental-details-content .rental-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.2s ease;
}

.rental-details-content .rental-card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.rental-details-content .rental-card:last-child {
    margin-bottom: 0;
}

.rental-details-content .rental-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.rental-details-content .rental-card-body {
    padding: 1.25rem;
}

.rental-details-content .rental-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rental-details-content .rental-info-item {
    flex: 1;
    min-width: 200px;
}

.rental-details-content .rental-info-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.rental-details-content .rental-info-value {
    color: #495057;
    font-size: 0.95rem;
}

.rental-details-content .rental-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.rental-details-content .rental-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.rental-details-content .rental-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rental-details-content .rental-section-title i {
    color: #007bff;
    font-size: 1.1rem;
}

.rental-details-content .table {
    margin-bottom: 0;
}

.rental-details-content .table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #6c757d;
}

.rental-details-content .table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.rental-details-content .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.rental-details-content .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.rental-details-content .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.rental-details-content .empty-state h6 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.rental-details-content .empty-state p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* Responsive adjustments for rental details */
@media (max-width: 768px) {
    .rental-details-content .rental-info-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .rental-details-content .rental-info-item {
        min-width: auto;
    }

    .rental-details-content .rental-card-header {
        padding: 0.75rem 1rem;
    }

    .rental-details-content .rental-card-body {
        padding: 1rem;
    }

    .rental-details-content .table-responsive {
        font-size: 0.8rem;
    }
}

/* Guest Welcome Page Styles */
.welcome-icon {
    animation: fadeInUp 0.8s ease-out;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

.dashboard-card .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.dashboard-card .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

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

/* Call to Action Card Styles */
.dashboard-card.call-to-action-card {
    min-height: auto !important;
    height: auto !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px solid #dee2e6 !important;
}

.dashboard-card.call-to-action-card .card-body {
    padding: 2rem 1.5rem !important;
}

.call-to-action-text {
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 2rem !important;
}

/* Responsive adjustments for guest welcome */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .welcome-icon i {
        font-size: 3rem !important;
    }

    .feature-icon i {
        font-size: 2rem !important;
    }

    /* Mobile call to action adjustments */
    .dashboard-card.call-to-action-card .card-body {
        padding: 1.5rem 1rem !important;
    }

    .call-to-action-text {
        font-size: 1rem;
        margin-bottom: 1.5rem !important;
    }

    .dashboard-card.call-to-action-card .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Stack buttons vertically on mobile */
    .dashboard-card.call-to-action-card .d-sm-flex {
        flex-direction: column !important;
    }

    .dashboard-card.call-to-action-card .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .dashboard-card.call-to-action-card .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .dashboard-card.call-to-action-card .card-body {
        padding: 1rem 0.75rem !important;
    }

    .call-to-action-text {
        font-size: 0.95rem;
        margin-bottom: 1.25rem !important;
    }
}

/* Form Styling Improvements */
.dashboard-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 2rem 1.5rem 1.5rem;
}

.dashboard-card .card-header h1,
.dashboard-card .card-header h2 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dashboard-card .card-body {
    padding: 2rem;
}

/* Form field improvements */
.form-control:focus,
.form-select:focus,
select:focus,
input:focus,
.form-control:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 67, 84, 0.25);
}

.form-control,
.form-select,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"],
input[type="number"] {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: #fff;
    color: #495057;
}

.form-control:hover,
.form-select:hover,
select:hover,
input:hover {
    border-color: #adb5bd;
}

/* Select field styling */
.form-select,
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Override browser default select styling */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-label,
label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
}

/* Date input styling */
input[type="date"] {
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Required field indicator */
.form-label.required::after,
label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Form group spacing */
.form-group {
    margin-bottom: 1.5rem;
}

/* Checkbox and radio styling */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 67, 84, 0.25);
}

/* Error states */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Success states */
.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
}

.form-control.is-valid:focus,
.form-select.is-valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Button improvements */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Link improvements */
.text-decoration-none:hover {
    text-decoration: underline !important;
}

/* Additional form improvements */
.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Crispy forms specific styling */
.asteriskField {
    color: #dc3545;
    font-weight: bold;
}

.help-block {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Form validation messages */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #198754;
}

/* Enhanced form styling */
.form-group,
.control-group {
    margin-bottom: 1.5rem;
}

/* Label styling improvements */
.form-label,
label,
.control-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

/* Required field styling */
.asteriskField,
.required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 0.25rem;
}

/* Form field sizing */
.form-control,
.form-select,
select,
input {
    min-height: 2.5rem;
}

/* Select option styling */
select option {
    padding: 0.5rem;
    background-color: #fff;
    color: #495057;
}

select option:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Date input specific styling */
input[type="date"] {
    position: relative;
    min-height: 2.5rem;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Form field states */
.form-control:disabled,
.form-select:disabled,
select:disabled,
input:disabled {
    background-color: #e9ecef;
    opacity: 0.65;
    cursor: not-allowed;
}

/* Crispy forms specific overrides */
.controls {
    margin-top: 0.5rem;
}

.controls select,
.controls input {
    width: 100%;
}

/* Form row spacing */
.row .form-group {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .row .form-group {
        margin-bottom: 1.5rem;
    }
}

/* Legal links styling */
.legal-links .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    transition: all 0.2s ease;
}

.legal-links .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-1px);
}

.legal-links .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Footer styling */
.dashboard-card .card-body .text-muted {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* COMING_SOON_CSS_START: Coming Soon button + modal styling */
.coming-soon-btn { position: relative; overflow: hidden; }
.coming-soon-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s; }
.coming-soon-btn:hover::before { left: 100%; }
.coming-soon-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3); }
.coming-soon-icon { animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1);} 50% { transform: scale(1.05);} 100% { transform: scale(1);} }
.progress-bar-striped { background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 1rem 1rem; }
/* COMING_SOON_CSS_END */

/* Dashboard layout improvements */
.dashboard-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chart-container {
    flex: 1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container canvas {
    max-height: 100%;
    width: 100% !important;
}

/* Ensure equal height for dashboard rows */
.row .col-xl-8 .dashboard-card,
.row .col-xl-4 .dashboard-card {
    height: 100%;
}

/* Table responsive improvements */
.table-responsive {
    flex: 1;
    min-height: 300px;
}

/* Chart improvements */
.chart-container {
    position: relative;
    height: 100%;
    min-height: 300px;
}

/* Contact Information styling */
.contact-info .fw-bold {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-info .address p {
    color: #495057;
    line-height: 1.4;
}

.contact-info .contact-details p {
    color: #495057;
    line-height: 1.4;
}

.contact-info .contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info .contact-details a:hover {
    text-decoration: underline;
}

.contact-info .website a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info .website a:hover {
    text-decoration: underline;
}

.contact-info .opening-hours {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border-left: 3px solid var(--primary-color);
}

.contact-info .opening-hours p {
    margin-bottom: 0.25rem;
}

.contact-info .opening-hours em {
    color: #6c757d;
    font-style: italic;
}

.contact-info .bi {
    color: var(--primary-color);
    width: 1rem;
    text-align: center;
}

/* Horizontal layout improvements */
.contact-info .row {
    margin-left: 0;
    margin-right: 0;
}

.contact-info .col-sm-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.contact-info .col-sm-6:first-child {
    padding-left: 0;
}

.contact-info .col-sm-6:last-child {
    padding-right: 0;
}

/* Custom width proportions */
.col-lg-5 {
    flex: 0 0 40%;
    max-width: 40%;
}

.col-lg-7 {
    flex: 0 0 60%;
    max-width: 60%;
}

/* Responsive breakpoints */
@media (max-width: 991.98px) {
    .col-lg-5,
    .col-lg-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Vertical divider line between columns */
.col-lg-7::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 1rem;
    bottom: 1rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #004354);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(0, 67, 84, 0.3);
}

/* Hide divider on mobile */
@media (max-width: 991.98px) {
    .col-lg-7::before {
        display: none;
    }
}

/* Responsive adjustments for horizontal layout */
@media (max-width: 767.98px) {
    .contact-info .row {
        flex-direction: column;
    }

    .contact-info .col-sm-6 {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .contact-info .col-sm-6:last-child {
        margin-bottom: 0;
    }
}

/* Additional Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    /* Dashboard stats cards */
    .stats-card {
        height: auto;
        min-height: 150px;
        padding: 1.5rem 1rem;
    }

    .stats-number {
        font-size: 1.5rem;
    }

    .stats-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    /* Profile section */
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-avatar i {
        font-size: 3rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-status {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Table responsiveness */
    .table-responsive {
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }

    /* Chart container */
    .chart-container {
        min-height: 250px;
    }

    #dashboardChart {
        height: 250px !important;
        max-height: 250px;
    }

    /* Quick actions */
    .dashboard-card .d-grid {
        gap: 0.75rem !important;
    }

    .dashboard-card .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    .dashboard-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .stats-card {
        padding: 1rem 0.75rem;
        min-height: 120px;
    }

    .stats-number {
        font-size: 1.25rem;
    }

    .stats-label {
        font-size: 0.75rem;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .profile-email {
        font-size: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-subtitle {
        font-size: 0.8rem;
    }

    /* Top navbar adjustments */
    .top-navbar {
        padding: 0.75rem 0;
        height: auto;
        min-height: 60px;
    }

    .top-navbar h4 {
        font-size: 1.1rem;
    }

    /* Sidebar toggle button */
    .sidebar-toggle {
        padding: 0.25rem;
        font-size: 1.1rem;
    }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .sidebar-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    .dropdown-item {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }

    /* Improve form field touch targets */
    .form-control,
    .form-select,
    select,
    input {
        min-height: 44px;
    }
}
