/**
 * @file app/shared/styles/mobile-enhancements.css
 * @brief Stylesheet for mobile-enhancements
 * 
 * @version 
 *  - Major: 1
 *  - Minor: 1
 *  - Subversion: 0
 * 
 * @date 
 *  - Created: 2025-08-07 11:33:53
 *  - Modified: 2025-08-07 11:33:53
 * 
 * @author [core] Informationstechnologie
 * 
 * @copyright [core] Informationstechnologie, 2025
 */


/* Mobile Enhancements for Resource Manager Pro */
/* Comprehensive Mobile-First Responsive Design */

/* Mobile Breakpoints */
:root {
  --mobile-xs: 480px;
  --mobile-sm: 576px;
  --mobile-md: 768px;
  --mobile-lg: 992px;
  --mobile-xl: 1200px;
  
  /* Mobile-specific spacing */
  --mobile-padding: 1rem;
  --mobile-margin: 0.75rem;
  --mobile-border-radius: 0.5rem;
  
  /* Touch-friendly sizes */
  --touch-target: 44px;
  --mobile-button-height: 48px;
  --mobile-input-height: 48px;
}

/* Mobile Base Styles */
@media (max-width: 768px) {
  /* Body adjustments */
  body {
    font-size: 16px; /* Prevent zoom on iOS */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
  }
  
  /* Container padding */
  .container,
  .container-fluid {
    padding-left: var(--mobile-padding);
    padding-right: var(--mobile-padding);
  }
  
  /* Typography adjustments */
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: var(--mobile-margin);
  }
  
  /* Touch-friendly buttons */
  .btn,
  .rmp-btn,
  .btn-modern,
  button {
    min-height: var(--mobile-button-height);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--mobile-border-radius);
    touch-action: manipulation;
  }
  
  /* Form inputs */
  input,
  select,
  textarea,
  .form-control,
  .rmp-input,
  .form-modern {
    min-height: var(--mobile-input-height);
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.75rem;
    border-radius: var(--mobile-border-radius);
  }
  
  /* Cards and modals */
  .card,
  .rmp-card,
  .modern-card {
    margin-bottom: var(--mobile-margin);
    border-radius: var(--mobile-border-radius);
  }
  
  /* Modal adjustments */
  .modal,
  .rmp-modal,
  .modal-modern {
    padding: 0;
  }
  
  .modal-dialog,
  .rmp-modal,
  .modal-content {
    margin: 0;
    border-radius: var(--mobile-border-radius) var(--mobile-border-radius) 0 0;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* Admin Interface Mobile Styles */
@media (max-width: 768px) {
  /* Sidebar mobile behavior */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px;
    z-index: 1050;
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0 !important;
  }
  
  /* Navbar mobile adjustments */
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Tab navigation mobile */
  .rmp-tab-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .rmp-tab-list::-webkit-scrollbar {
    display: none;
  }
  
  .rmp-tab-list li a {
    white-space: nowrap;
    min-width: 120px;
    justify-content: center;
  }
}

/* Meeting Planner Mobile Styles */
@media (max-width: 768px) {
  /* Step navigation */
  .meeting-steps {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  
  .meeting-steps .step {
    min-width: 100px;
    text-align: center;
  }
  
  /* Room selection grid */
  .rooms-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  .room-card {
    padding: 1rem;
    border-radius: var(--mobile-border-radius);
  }
  
  /* Equipment grid */
  .equipment-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  
  .equipment-card {
    padding: 0.75rem;
    border-radius: var(--mobile-border-radius);
  }
  
  /* Date/time picker mobile */
  .datetime-picker {
    flex-direction: column;
    gap: 1rem;
  }
  
  .datetime-picker .form-group {
    width: 100%;
  }
}

/* Bundle Manager Mobile Styles */
@media (max-width: 768px) {
  .bundles-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  .bundle-card {
    padding: 1rem;
    border-radius: var(--mobile-border-radius);
  }
  
  .bundle-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .bundle-actions .rmp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Table Mobile Enhancements */
@media (max-width: 768px) {
  .table-responsive {
    border: none;
  }
  
  .rmp-table,
  .table-modern,
  .table {
    font-size: 0.875rem;
  }
  
  /* Stack table for mobile */
  .table-mobile-stack thead {
    display: none;
  }
  
  .table-mobile-stack tr {
    display: block;
    margin-bottom: 1rem;
    background: white;
    border-radius: var(--mobile-border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }
  
  .table-mobile-stack td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid #e9ecef;
  }
  
  .table-mobile-stack td:last-child {
    border-bottom: none;
  }
  
  .table-mobile-stack td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6c757d;
    margin-right: 1rem;
  }
}

/* Form Mobile Enhancements */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
  
  .form-row .form-group {
    width: 100% !important;
    margin-bottom: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

/* iOS Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
  /* Fix viewport height on iOS */
  .modal-content,
  .sidebar {
    height: 100vh;
    height: -webkit-fill-available;
  }
  
  /* Fix scroll momentum */
  .scrollable {
    -webkit-overflow-scrolling: touch;
  }
}