/* Mobile Fixes for BlueRock Asset Management */

/* Fix alignment issues on mobile devices */
@media (max-width: 767px) {
  /* General alignment fixes */
  .container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  
  /* Fix text alignment */
  .text-center-mobile {
    text-align: center !important;
  }
  
  .text-left-mobile {
    text-align: left !important;
  }
  
  /* Fix button alignment */
  .btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .btn-container .btn {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
  }
  
  /* Fix header alignment */
  .header-content {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    max-width: 150px;
  }
  
  /* Fix navigation menu */
  .mobile-menu {
    width: 100%;
  }
  
  .mobile-menu a {
    width: 100%;
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid #eee;
  }
  
  /* Fix form alignment */
  .form-container {
    padding: 20px 15px;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-group {
    width: 100%;
    margin-bottom: 15px;
  }
  
  /* Fix card alignment */
  .card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Fix dashboard layout */
  .dashboard-content {
    padding: 15px;
  }
  
  .dashboard-card {
    width: 100%;
    margin-bottom: 15px;
  }
  
  /* Fix table alignment */
  .table-container {
    overflow-x: auto;
    width: 100%;
  }
  
  /* Fix footer alignment */
  .footer {
    padding: 30px 15px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  
  /* Fix investment plan cards */
  .investment-plan-card {
    width: 100%;
    margin-bottom: 20px;
  }
  
  /* Fix withdrawal form */
  .withdrawal-form {
    padding: 15px;
  }
  
  /* Fix modal dialogs */
  .modal-content {
    width: 95%;
    padding: 15px;
  }
  
  /* Fix spacing issues */
  .section {
    padding: 30px 0;
  }
  
  .section-title {
    margin-bottom: 20px;
  }
  
  /* Fix hero section */
  .hero-content {
    padding: 40px 15px;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.5;
  }
}

/* Fix for very small screens */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

/* Fix for iOS Safari specific issues */
@supports (-webkit-touch-callout: none) {
  /* Fix for 100vh issue in iOS Safari */
  .full-height {
    height: -webkit-fill-available;
  }
  
  /* Fix for input zoom */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px;
  }
}

/* Fix for touch targets */
@media (max-width: 767px) {
  /* Ensure all clickable elements are at least 44x44px for touch */
  .nav-link,
  .btn,
  button,
  input[type="submit"],
  input[type="button"],
  .mobile-menu a,
  .footer-link {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Fix for form elements */
  input,
  select,
  textarea {
    height: 44px;
    padding: 10px;
  }
  
  textarea {
    height: auto;
    min-height: 100px;
  }
}