/**
 * @file app/shared/styles/mobile-complete.css
 * @brief Stylesheet for mobile-complete
 * 
 * @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
 */


/* Complete Mobile Support for Resource Manager Pro */
/* Production-Ready Responsive Design Implementation */

/* ========================================
   MOBILE BREAKPOINTS & VARIABLES
   ======================================== */
:root {
  /* Breakpoints */
  --mobile-xs: 480px;
  --mobile-sm: 576px;
  --mobile-md: 768px;
  --mobile-lg: 992px;
  --mobile-xl: 1200px;
  
  /* Touch-friendly sizes */
  --touch-target-min: 44px;
  --mobile-button-height: 48px;
  --mobile-input-height: 48px;
  --mobile-nav-height: 56px;
  
  /* Mobile spacing */
  --mobile-padding: 16px;
  --mobile-margin: 12px;
  --mobile-gap: 8px;
  
  /* Animation */
  --mobile-transition: 0.3s ease;
}

/* ========================================
   GLOBAL MOBILE STYLES
   ======================================== */
@media (max-width: 768px) {
  /* Prevent iOS zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="password"],
  input[type="date"],
  input[type="datetime-local"],
  input[type="tel"],
  input[type="url"],
  select,
  textarea {
    font-size: 16px !important;
  }
  
  /* Body adjustments */
  body {
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
    overflow-x: hidden;
  }
  
  /* Container responsiveness */
  .container,
  .container-fluid {
    padding-left: var(--mobile-padding);
    padding-right: var(--mobile-padding);
  }
  
  /* Typography scaling */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.9rem; }
  
  /* Touch-friendly interactive elements */
  .btn,
  button,
  a.btn,
  .btn-link,
  .dropdown-item,
  .nav-link,
  .list-group-item-action {
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
    padding: 12px 16px;
  }
  
  /* Form elements */
  .form-control,
  .form-select,
  .form-check-input {
    min-height: var(--mobile-input-height);
    padding: 12px 16px;
  }
  
  /* Checkbox and radio sizing */
  .form-check-input {
    width: 24px;
    height: 24px;
    margin-top: 0;
  }
  
  .form-check-label {
    padding-left: 8px;
    line-height: 24px;
  }
}

/* ========================================
   ADMIN PANEL MOBILE
   ======================================== */
@media (max-width: 768px) {
  /* Mobile sidebar overlay */
  #admin-app .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: white;
    transform: translateX(-100%);
    transition: transform var(--mobile-transition);
    z-index: 1050;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }
  
  #admin-app .sidebar.show {
    transform: translateX(0);
  }
  
  /* Sidebar backdrop */
  .sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
  }
  
  .sidebar-backdrop.show {
    display: block;
  }
  
  /* Mobile navbar */
  #admin-app .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    z-index: 1030;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0 var(--mobile-padding);
  }
  
  /* Menu toggle button */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
  }
  
  /* Main content adjustment */
  #admin-app .main-content {
    margin-left: 0 !important;
    padding-top: calc(var(--mobile-nav-height) + 16px);
    min-height: 100vh;
  }
  
  /* Component containers */
  .component-container {
    padding: var(--mobile-padding);
  }
  
  /* Admin tables */
  .admin-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }
  
  .admin-table {
    min-width: 600px;
  }
  
  /* Admin forms */
  .admin-form .row {
    margin-left: -8px;
    margin-right: -8px;
  }
  
  .admin-form .col-md-6,
  .admin-form .col-md-4,
  .admin-form .col-md-3 {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
  }
  
  /* Domain/Account/Group managers */
  .manager-grid {
    grid-template-columns: 1fr !important;
  }
  
  .manager-actions {
    flex-direction: column;
    align-items: stretch !important;
  }
  
  .manager-actions .btn {
    margin-bottom: 8px;
    width: 100%;
  }
}

/* ========================================
   MEETING PLANNER MOBILE
   ======================================== */
@media (max-width: 768px) {
  /* Meeting wizard steps */
  .meeting-steps-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px 16px;
  }
  
  .meeting-steps {
    display: flex;
    min-width: 600px;
    padding-bottom: 8px;
  }
  
  .meeting-step {
    min-width: 100px;
    text-align: center;
    padding: 8px;
  }
  
  .meeting-step-number {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
  }
  
  .meeting-step-label {
    font-size: 12px;
    margin-top: 4px;
  }
  
  /* Room selection */
  .room-selection-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  
  .room-card {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .room-card-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }
  
  .room-card-info {
    flex: 1;
  }
  
  .room-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
  }
  
  .room-card-feature {
    font-size: 12px;
    padding: 2px 8px;
  }
  
  /* Equipment selection */
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  
  .equipment-card {
    padding: 12px;
    text-align: center;
  }
  
  .equipment-icon {
    font-size: 24px;
    margin-bottom: 8px;
  }
  
  .equipment-name {
    font-size: 12px;
    margin-bottom: 4px;
  }
  
  .equipment-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
  }
  
  .equipment-quantity input {
    width: 60px;
    text-align: center;
  }
  
  /* Attendee selection */
  .attendee-search {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    padding: 16px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
  }
  
  .attendee-list {
    max-height: 400px;
    overflow-y: auto;
  }
  
  .attendee-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
  }
  
  .attendee-avatar {
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }
  
  /* Date time picker */
  .datetime-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .calendar-view {
    order: 1;
  }
  
  .time-slots {
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .time-slot {
    padding: 8px;
    text-align: center;
    font-size: 14px;
  }
  
  /* Review and confirm */
  .meeting-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .meeting-summary-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
  }
  
  .meeting-summary-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  /* Navigation buttons */
  .meeting-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 16px;
    display: flex;
    gap: 8px;
    z-index: 100;
  }
  
  .meeting-navigation .btn {
    flex: 1;
  }
  
  /* Adjust content for fixed navigation */
  .meeting-content {
    padding-bottom: 100px;
  }
}

/* ========================================
   RESOURCE PLANNER MOBILE
   ======================================== */
@media (max-width: 768px) {
  /* Calendar view toggle */
  .calendar-view-toggle {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 16px;
  }
  
  .calendar-view-toggle .btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 14px;
  }
  
  .calendar-view-toggle .btn.active {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  /* Mobile calendar */
  .calendar-mobile {
    background: white;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8f9fa;
  }
  
  .calendar-header h3 {
    margin: 0;
    font-size: 18px;
  }
  
  .calendar-nav {
    display: flex;
    gap: 8px;
  }
  
  .calendar-nav .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Day view for mobile */
  .calendar-day-view {
    padding: 16px;
  }
  
  .time-slot-mobile {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
  }
  
  .time-slot-time {
    width: 60px;
    font-size: 14px;
    color: #6c757d;
  }
  
  .time-slot-content {
    flex: 1;
    padding-left: 16px;
  }
  
  .booking-card-mobile {
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 4px;
  }
  
  .booking-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
  }
  
  .booking-time {
    font-size: 12px;
    color: #6c757d;
  }
  
  /* Resource list mobile */
  .resource-list-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  
  .resource-card-mobile {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .resource-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
  }
  
  .resource-info {
    flex: 1;
  }
  
  .resource-name {
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .resource-type {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
  }
  
  .resource-availability {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #d4edda;
    color: #155724;
  }
  
  .resource-availability.busy {
    background: #f8d7da;
    color: #721c24;
  }
}

/* ========================================
   MODALS & OVERLAYS MOBILE
   ======================================== */
@media (max-width: 768px) {
  /* Full screen modals on mobile */
  .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
  }
  
  .modal-content {
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  
  .modal-header {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
  }
  
  .modal-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
  }
  
  .modal-footer {
    padding: 16px;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
    display: flex;
    gap: 8px;
  }
  
  .modal-footer .btn {
    flex: 1;
  }
  
  /* Dropdown adjustments */
  .dropdown-menu {
    width: calc(100vw - 32px);
    max-width: 320px;
  }
  
  /* Tooltips */
  .tooltip {
    font-size: 12px;
  }
  
  /* Popovers */
  .popover {
    max-width: 280px;
  }
}

/* ========================================
   TABLES MOBILE
   ======================================== */
@media (max-width: 768px) {
  /* Responsive table wrapper */
  .table-responsive {
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Card-based table for mobile */
  .table-cards {
    display: none;
  }
  
  @media (max-width: 768px) {
    .table {
      display: none;
    }
    
    .table-cards {
      display: block;
    }
    
    .table-card {
      background: white;
      border: 1px solid #e9ecef;
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 12px;
    }
    
    .table-card-header {
      font-weight: 600;
      margin-bottom: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid #e9ecef;
    }
    
    .table-card-row {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;
    }
    
    .table-card-label {
      color: #6c757d;
      font-size: 14px;
    }
    
    .table-card-value {
      font-weight: 500;
      text-align: right;
    }
    
    .table-card-actions {
      display: flex;
      gap: 8px;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #e9ecef;
    }
    
    .table-card-actions .btn {
      flex: 1;
      font-size: 14px;
      padding: 8px;
    }
  }
}

/* ========================================
   NAVIGATION MOBILE
   ======================================== */
@media (max-width: 768px) {
  /* Tab navigation */
  .nav-tabs {
    border-bottom: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    margin: 0 -16px;
    padding: 0 16px;
  }
  
  .nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 16px;
    margin-right: 8px;
    background: #f8f9fa;
  }
  
  .nav-tabs .nav-link.active {
    background: white;
    border-color: #dee2e6;
  }
  
  /* Breadcrumb */
  .breadcrumb {
    padding: 8px 0;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  
  .breadcrumb-item {
    display: inline-block;
  }
  
  /* Pagination */
  .pagination {
    justify-content: center;
  }
  
  .pagination .page-link {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* ========================================
   FORMS MOBILE
   ======================================== */
@media (max-width: 768px) {
  /* Stack form columns */
  .form-row,
  .row {
    margin-left: -8px;
    margin-right: -8px;
  }
  
  .form-row > [class*="col-"],
  .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  /* Form groups */
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  /* Input groups */
  .input-group {
    flex-wrap: nowrap;
  }
  
  .input-group-text {
    font-size: 14px;
    padding: 12px;
  }
  
  /* Floating labels */
  .form-floating {
    margin-bottom: 16px;
  }
  
  .form-floating > label {
    padding: 16px;
  }
  
  /* Form validation */
  .invalid-feedback,
  .valid-feedback {
    font-size: 12px;
    margin-top: 4px;
  }
}

/* ========================================
   UTILITIES MOBILE
   ======================================== */
@media (max-width: 768px) {
  /* Hide on mobile */
  .d-mobile-none {
    display: none !important;
  }
  
  /* Show on mobile */
  .d-mobile-block {
    display: block !important;
  }
  
  .d-mobile-flex {
    display: flex !important;
  }
  
  /* Text alignment */
  .text-mobile-center {
    text-align: center !important;
  }
  
  .text-mobile-left {
    text-align: left !important;
  }
  
  .text-mobile-right {
    text-align: right !important;
  }
  
  /* Spacing utilities */
  .p-mobile-0 { padding: 0 !important; }
  .p-mobile-1 { padding: 8px !important; }
  .p-mobile-2 { padding: 16px !important; }
  .p-mobile-3 { padding: 24px !important; }
  
  .m-mobile-0 { margin: 0 !important; }
  .m-mobile-1 { margin: 8px !important; }
  .m-mobile-2 { margin: 16px !important; }
  .m-mobile-3 { margin: 24px !important; }
  
  /* Width utilities */
  .w-mobile-100 { width: 100% !important; }
  .w-mobile-75 { width: 75% !important; }
  .w-mobile-50 { width: 50% !important; }
  .w-mobile-25 { width: 25% !important; }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
@media (max-width: 768px) {
  /* Reduce animations on mobile */
  * {
    animation-duration: 0.2s !important;
    transition-duration: 0.2s !important;
  }
  
  /* Optimize scrolling */
  .scrollable {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  /* Reduce shadows for performance */
  .card,
  .modal-content,
  .dropdown-menu {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  /* Optimize images */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* ========================================
   LANDSCAPE MOBILE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) and (orientation: landscape) {
  /* Reduce vertical spacing in landscape */
  .modal-header,
  .modal-footer {
    padding: 12px 16px;
  }
  
  .navbar {
    height: 48px;
  }
  
  .btn {
    min-height: 40px;
    padding: 8px 16px;
  }
  
  .form-control,
  .form-select {
    min-height: 40px;
    padding: 8px 12px;
  }
  
  /* Grid adjustments for landscape */
  .equipment-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .time-slots {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   TABLET SPECIFIC (768px - 992px)
   ======================================== */
@media (min-width: 768px) and (max-width: 992px) {
  /* Sidebar width adjustment */
  .sidebar {
    width: 240px;
  }
  
  .main-content {
    margin-left: 240px;
  }
  
  /* Grid adjustments */
  .room-selection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .equipment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .resource-list-mobile {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Modal size */
  .modal-dialog {
    max-width: 600px;
    margin: 1.75rem auto;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  /* Hide non-essential elements */
  .sidebar,
  .navbar,
  .mobile-menu-toggle,
  .meeting-navigation,
  .btn-print,
  .modal-footer {
    display: none !important;
  }
  
  /* Adjust layout for print */
  .main-content {
    margin-left: 0 !important;
    padding-top: 0 !important;
  }
  
  /* Ensure content fits on page */
  .container,
  .container-fluid {
    max-width: 100% !important;
    padding: 0 !important;
  }
  
  /* Break pages appropriately */
  .page-break {
    page-break-after: always;
  }
  
  .no-break {
    page-break-inside: avoid;
  }
}