/* HNF Resorts Mobile Dashboard Styles */

/* Mobile-first responsive design */
@media (max-width: 768px) {
    /* Hide desktop topbar on mobile */
    .topbar {
        display: none !important;
    }
    
    /* Adjust content wrapper for mobile header */
    #content-wrapper {
        margin-left: 0 !important;
    }
    
    /* Mobile header styling */
    .mobile-header {
        background: linear-gradient(135deg, #5a5c69 0%, #3d3f47 100%);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Compact container padding */
    .container-fluid {
        padding: 0.5rem !important;
    }
    
    /* Dashboard card mobile optimizations */
    .dashboard-card {
        margin-bottom: 0.75rem;
        border-radius: 12px;
    }
    
    .dashboard-card .card-body {
        padding: 1rem;
    }
    
    /* Metric cards mobile layout */
    .metric-value {
        font-size: 1.4rem;
    }
    
    .metric-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Quick stats mobile layout */
    .quick-stats {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-item {
        padding: 0.75rem 0;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    /* Page header mobile */
    .page-header {
        padding: 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .dashboard-title {
        font-size: 1.4rem;
    }
    
    .welcome-text {
        font-size: 0.9rem;
    }
    
    /* Chart container mobile */
    .chart-container {
        height: 180px;
        margin: 0.5rem 0;
    }
    
    /* Activity items mobile */
    .activity-item {
        padding: 0.75rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        background: #f8f9fc;
        border: none !important;
    }
    
    .activity-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.75rem;
    }
    
    /* List group mobile */
    .list-group-item {
        padding: 0.875rem;
        border-radius: 8px !important;
        margin-bottom: 0.5rem;
        border: 1px solid #e3e6f0 !important;
    }
    
    /* Button mobile optimizations */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Table mobile */
    .table-responsive {
        border-radius: 8px;
        overflow: hidden;
    }
    
    .table td, .table th {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Status badges mobile */
    .status-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    /* Card headers mobile */
    .card-header {
        padding: 0.75rem 1rem;
        background: transparent !important;
        border-bottom: 1px solid #e3e6f0;
    }
    
    .card-header h6 {
        font-size: 0.9rem;
    }
}

/* Ultra mobile (small phones) */
@media (max-width: 576px) {
    body {
        font-size: 0.875rem;
    }
    
    .container-fluid {
        padding: 0.25rem !important;
    }
    
    .dashboard-card {
        margin-bottom: 0.5rem;
        border-radius: 10px;
    }
    
    .dashboard-card .card-body {
        padding: 0.75rem;
    }
    
    .metric-value {
        font-size: 1.2rem;
    }
    
    .metric-label {
        font-size: 0.75rem;
    }
    
    .page-header {
        padding: 0.75rem;
    }
    
    .dashboard-title {
        font-size: 1.2rem;
    }
    
    .quick-stats {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .chart-container {
        height: 160px;
    }
    
    .activity-item {
        padding: 0.5rem;
    }
    
    .activity-icon {
        width: 30px;
        height: 30px;
        margin-right: 0.5rem;
        font-size: 0.8rem;
    }
    
    .list-group-item {
        padding: 0.75rem;
    }
}

/* Loading animations */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Pull to refresh indicator */
.pull-refresh {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(78, 115, 223, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pull-refresh.show {
    opacity: 1;
}

/* Swipe gestures */
.swipeable {
    touch-action: pan-y;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dashboard-card {
        background: #2d3748;
        color: white;
    }
    
    .page-header {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
    
    .activity-item {
        background: #4a5568;
        color: white;
    }
    
    .metric-label {
        color: #a0aec0;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .dashboard-card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

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

/* Focus indicators for accessibility */
.dashboard-card:focus-within {
    outline: 2px solid #4e73df;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .mobile-header,
    .sidebar,
    .btn,
    .dropdown {
        display: none !important;
    }
    
    .dashboard-card {
        break-inside: avoid;
        border: 1px solid #000;
    }
}