/**
 * Hotel Messaging Platform - Global Stylesheet
 * Design System inspired by Vizzy's clean, professional aesthetic
 * Pure Bootstrap 5 with minimal custom CSS
 */

/* ==========================================================================
   CSS VARIABLES - Bootstrap Color Palette & Enhanced Typography
   ========================================================================== */
:root {
    /* Colors - Bootstrap 5 */
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --border-color: #dee2e6;

    /* Shadows */
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);

    /* Spacing */
    --default-spacing: 1rem;
    --card-border-radius: 8px;

    /* Enhanced Typography Variables */
    --bs-body-font-size: 0.9375rem; /* 15px - improved readability */
    --bs-body-line-height: 1.6;
    --bs-heading-letter-spacing: -0.015em; /* tighter headings */

    /* Typography Scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 0.9375rem;  /* 15px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Gray Scale for better hierarchy */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* ==========================================================================
   GLOBAL STYLES & ENHANCED TYPOGRAPHY
   ========================================================================== */
body {
    background-color: var(--light-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: var(--bs-body-font-size);
    line-height: var(--bs-body-line-height);
    color: var(--gray-900);
}

/* Remove default gradients from body */
body::before,
body::after {
    display: none;
}

/* Enhanced Typography Hierarchy */
h1, .h1 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--bs-heading-letter-spacing);
    color: var(--gray-900);
    line-height: 1.2;
}

h2, .h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    letter-spacing: var(--bs-heading-letter-spacing);
    color: var(--gray-900);
    line-height: 1.3;
}

h3, .h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--gray-800);
    line-height: 1.4;
}

h4, .h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--gray-800);
    line-height: 1.4;
}

h5, .h5 {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--gray-700);
    line-height: 1.5;
}

/* Paragraph and text utilities */
p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.lead {
    font-size: var(--text-lg);
    font-weight: var(--font-normal);
    line-height: 1.6;
    color: var(--gray-600);
}

.text-muted {
    color: var(--gray-500) !important;
}

/* Text size utilities - Bootstrap extension */
.text-xs {
    font-size: var(--text-xs) !important;
}

.text-sm {
    font-size: var(--text-sm) !important;
}

.text-lg {
    font-size: var(--text-lg) !important;
}

.text-xl {
    font-size: var(--text-xl) !important;
}

/* ==========================================================================
   CARD PATTERN - Consistent across all pages
   ========================================================================== */
.card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.card-header {
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.card:hover {
    /* Subtle hover effect for interactive cards */
    box-shadow: var(--card-shadow-hover);
}

.card.no-hover:hover {
    /* Disable hover for static cards */
    box-shadow: var(--card-shadow);
}

/* ==========================================================================
   STATUS BADGES - Color-coded system
   ========================================================================== */
.status-running,
.badge.bg-running {
    background-color: var(--success-color) !important;
    color: white;
}

.status-stopped,
.badge.bg-stopped {
    background-color: var(--secondary-color) !important;
    color: white;
}

.status-error,
.badge.bg-error {
    background-color: var(--danger-color) !important;
    color: white;
}

.status-pending,
.badge.bg-pending {
    background-color: var(--warning-color) !important;
    color: #000;
}

.status-active {
    background-color: var(--success-color);
}

.status-inactive {
    background-color: var(--secondary-color);
}

/* ==========================================================================
   TOAST NOTIFICATIONS - Fixed bottom-right
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
}

/* Minimal save toast styling */
.toast-save {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    max-width: 200px;
}

.toast-save .toast-body {
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border-radius: 8px;
}

.toast-header {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Toast color variants */
.toast-header.bg-success {
    background-color: var(--success-color) !important;
    color: white;
}

.toast-header.bg-danger {
    background-color: var(--danger-color) !important;
    color: white;
}

.toast-header.bg-warning {
    background-color: var(--warning-color) !important;
    color: #000;
}

.toast-header.bg-info {
    background-color: #0dcaf0 !important;
    color: white;
}

/* ==========================================================================
   BUTTONS - Enhanced Bootstrap button states
   ========================================================================== */
.btn {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: var(--font-medium);
    transition: all 0.2s ease-in-out;
    position: relative;
}

/* Enhanced hover state - subtle lift */
.btn:not(:disabled):not(.disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Active state - press down */
.btn:not(:disabled):not(.disabled):active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Enhanced focus state for accessibility */
.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Button variants - ensure proper colors */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

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

.btn-success:hover:not(:disabled) {
    background-color: #157347;
    border-color: #146c43;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #bb2d3b;
    border-color: #b02a37;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

/* Loading state - Bootstrap compatible */
.btn-loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
    color: white;
}

.btn-loading.btn-outline-primary::after,
.btn-loading.btn-outline-secondary::after {
    color: var(--primary-color);
}

/* Button size variants */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: var(--text-sm);
    border-radius: 4px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-lg);
    border-radius: 8px;
}

/* Icon buttons */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
}

/* Ghost button - transparent background */
.btn-ghost {
    background: transparent;
    border: none;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
}

.btn-ghost:hover {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

/* Disabled state */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   FORMS - Enhanced Bootstrap form validation
   ========================================================================== */
.form-control,
.form-select,
.form-control-plaintext {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 0.625rem 0.875rem;
    font-size: var(--text-base);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Enhanced focus state */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    transform: scale(1.01);
}

/* Valid state - enhanced with icon */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: var(--success-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-select:valid,
.form-select.is-valid {
    border-color: var(--success-color);
}

/* Invalid state - enhanced with icon */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: var(--danger-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-select:invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
}

/* Validation feedback messages */
.valid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--success-color);
}

.invalid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--danger-color);
}

/* Show feedback when valid/invalid */
.was-validated .form-control:valid ~ .valid-feedback,
.form-control.is-valid ~ .valid-feedback {
    display: block;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Form text (help text) */
.form-text {
    margin-top: 0.25rem;
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* Floating labels - enhanced */
.form-floating {
    position: relative;
}

.form-floating > label {
    color: var(--gray-500);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    transition: all 0.2s ease;
}

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

.form-floating > .form-control.is-valid ~ label {
    color: var(--success-color);
}

.form-floating > .form-control.is-invalid ~ label {
    color: var(--danger-color);
}

/* Input groups */
.input-group {
    /* box-shadow removed for cleaner, flatter design */
    border-radius: 6px;
}

.input-group > .form-control:focus,
.input-group > .form-select:focus {
    z-index: 3;
}

/* Checkbox and radio improvements */
.form-check-input {
    width: 1.25em;
    height: 1.25em;
    border: 2px solid var(--border-color);
    transition: all 0.15s ease;
}

.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.25rem rgba(13, 110, 253, 0.25);
}

.form-check-label {
    font-size: var(--text-base);
    color: var(--gray-700);
    margin-left: 0.5rem;
}

/* Switch enhancement */
.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(0,0,0,0.25)'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* ==========================================================================
   TABLES - Clean design
   ========================================================================== */
.table {
    background: var(--white-color);
    border-radius: var(--card-border-radius);
    overflow: hidden;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
    cursor: pointer;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
}

/* ==========================================================================
   LOADING SPINNER - Consistent loading states
   ========================================================================== */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.25em;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Loading overlay for cards */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--card-border-radius);
}

/* ==========================================================================
   PAGE LAYOUT - Sidebar spacing
   ========================================================================== */
.main-content {
    min-height: 100vh;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

/* Fix for top navigation cutoff - accounts for 60px fixed header */
body.has-top-nav .main-content {
    padding-top: calc(60px + 2rem); /* 60px for nav + original padding */
    min-height: calc(100vh - 60px);
}

/* Special handling for full-viewport pages like messages */
body.has-top-nav .main-content.no-padding {
    padding-top: 60px !important;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

/* Ensure proper height calculation for full viewport containers */
body.has-top-nav .vh-100 {
    height: calc(100vh - 60px) !important;
}

@media (min-width: 992px) {
    .main-content {
        margin-left: 250px;
    }
}

@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    body.has-top-nav .main-content {
        padding-top: calc(60px + 1rem);
    }
}

/* ==========================================================================
   PAGE HEADER - Enhanced hierarchy and spacing
   ========================================================================== */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1,
.page-header .h1 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--bs-heading-letter-spacing);
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-header h2,
.page-header .h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.page-header p,
.page-header .lead {
    font-size: var(--text-base);
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Section Headers - for sub-sections within pages */
.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2,
.section-header .h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.section-header h3,
.section-header .h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.section-header p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ==========================================================================
   ALERTS - Clean design
   ========================================================================== */
.alert {
    border-radius: var(--card-border-radius);
    border: none;
    box-shadow: var(--card-shadow);
}

/* ==========================================================================
   MODALS - Consistent styling
   ========================================================================== */
.modal-content {
    border-radius: var(--card-border-radius);
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    background-color: #f8f9fa;
}

/* ==========================================================================
   SCROLLBAR STYLING - Auto-hiding scrollbars with hover/scroll visibility
   ========================================================================== */

/* Firefox - Use thin scrollbars that auto-hide */
* {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

/* Show scrollbar on hover for Firefox */
*:hover {
    scrollbar-color: rgba(136, 136, 136, 0.4) transparent;
}

/* WebKit browsers - Hide scrollbars by default */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
    transition: background 0.3s ease;
}

/* Show scrollbar on hover for specific scrollable containers */
.scrollable-container:hover::-webkit-scrollbar-thumb,
div[style*="overflow"]:hover::-webkit-scrollbar-thumb,
.overflow-auto:hover::-webkit-scrollbar-thumb,
.overflow-y-auto:hover::-webkit-scrollbar-thumb,
.overflow-x-auto:hover::-webkit-scrollbar-thumb,
*:hover::-webkit-scrollbar-thumb {
    background: rgba(136, 136, 136, 0.4);
}

*:hover::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.4);
}

/* Active scrolling state - show scrollbar more prominently */
.is-scrolling::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb:active {
    background: rgba(136, 136, 136, 0.6) !important;
}

.is-scrolling::-webkit-scrollbar-track,
*::-webkit-scrollbar-track:active {
    background: rgba(241, 241, 241, 0.6) !important;
}

/* Hover state for scrollbar thumb */
*::-webkit-scrollbar-thumb:hover {
    background: rgba(85, 85, 85, 0.7) !important;
}

/* Scrollable container class for better control */
.scrollable-container {
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* Hide scrollbar for IE, Edge and Firefox (alternative method) */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Show scrollbar on hover for containers that need it */
.show-scrollbar-on-hover {
    overflow-y: auto;
    scrollbar-width: none;
}

.show-scrollbar-on-hover:hover {
    scrollbar-width: thin;
}

.show-scrollbar-on-hover::-webkit-scrollbar {
    width: 0;
    transition: width 0.3s ease;
}

.show-scrollbar-on-hover:hover::-webkit-scrollbar {
    width: 8px;
}

/* Specific elements that should have auto-hiding scrollbars */
#sidebar-nav,
#guest-list,
#conversations-list,
#messages-area,
#broadcast-container,
#guest-selection-panel,
#broadcast-history {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

#sidebar-nav:hover,
#guest-list:hover,
#conversations-list:hover,
#messages-area:hover,
#broadcast-container:hover,
#guest-selection-panel:hover,
#broadcast-history:hover {
    scrollbar-color: rgba(136, 136, 136, 0.4) rgba(241, 241, 241, 0.2);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Padding for full-viewport pages is handled in the has-top-nav section above */

/* Remove animations */
.no-animation,
.no-animation * {
    animation: none !important;
    transition: none !important;
}

/* Glass effect (minimal use) */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Stat cards */
.stat-card {
    transition: transform 0.2s ease;
    border-left: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-left-color: var(--primary-color);
}

.stat-card .card-body h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: 0;
}

.stat-card .card-body p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ==========================================================================
   EMPTY STATES - Bootstrap-compatible empty state components
   ========================================================================== */
.empty-state {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--gray-50);
    border-radius: var(--card-border-radius);
    border: 2px dashed var(--border-color);
    margin: 2rem 0;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
    opacity: 0.6;
    display: inline-block;
}

.empty-state-icon i {
    display: block;
}

.empty-state-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: var(--text-base);
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.empty-state .btn {
    margin-top: 0.5rem;
}

/* Empty state variants */
.empty-state-sm {
    padding: 2rem 1.5rem;
}

.empty-state-sm .empty-state-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.empty-state-sm .empty-state-title {
    font-size: var(--text-lg);
}

.empty-state-sm .empty-state-text {
    font-size: var(--text-sm);
}

/* Empty state in cards */
.card .empty-state {
    border: none;
    background: transparent;
    margin: 1rem 0;
}

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */
@media (max-width: 767.98px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .main-content {
        padding: 1rem;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .sidebar,
    .toast-container,
    .btn,
    .modal {
        display: none !important;
    }

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

    .card {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}
