/* Safari iOS Mobile Fixes */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
    -webkit-appearance: none;
    border-radius: 0;
}

/* Fix viewport issues */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

/* Fix button clicks on iOS */
button, .btn, a {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

/* Fix form inputs on iOS */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="tel"], 
input[type="number"] {
    -webkit-appearance: none;
    -webkit-border-radius: 0;
    border-radius: 4px;
    background-color: white;
}

/* Fix modal z-index issues */
.modal {
    -webkit-overflow-scrolling: touch;
}

/* Fix navbar collapse on mobile */
@media (max-width: 767px) {
    .navbar-collapse {
        max-height: none !important;
    }
    
    .navbar-toggler {
        border: none !important;
        padding: 4px 8px;
    }
}

/* Fix card layouts on mobile */
@media (max-width: 576px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}