Sindbad~EG File Manager

Current Path : /home/copmadinaarea/thecopmadinaarea.org/attendance/assets/css/
Upload File :
Current File : /home/copmadinaarea/thecopmadinaarea.org/attendance/assets/css/mobile.css

/* Mobile Optimization Styles */

/* Touch-friendly buttons and links */
@media (max-width: 768px) {
    /* Increase touch targets */
    button, .btn, a.button, input[type="submit"], input[type="button"] {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
    }
    
    /* Mobile-friendly form inputs */
    input[type="text"], 
    input[type="email"], 
    input[type="tel"], 
    input[type="password"],
    select, 
    textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }
    
    /* Mobile navigation improvements */
    .mobile-nav-item {
        padding: 16px 20px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    /* Card spacing on mobile */
    .card-mobile {
        margin-bottom: 16px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Table improvements for mobile */
    .table-mobile {
        font-size: 14px;
    }
    
    .table-mobile th,
    .table-mobile td {
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    /* Mobile-specific text sizes */
    .text-mobile-sm {
        font-size: 12px;
    }
    
    .text-mobile-base {
        font-size: 14px;
    }
    
    .text-mobile-lg {
        font-size: 16px;
    }
    
    /* GPS location mobile display */
    .gps-mobile {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .gps-coords-mobile {
        font-family: monospace;
        font-size: 11px;
        word-break: break-all;
    }
    
    /* Mobile modal improvements */
    .modal-mobile {
        margin: 16px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }
    
    /* Mobile form layout */
    .form-mobile .form-group {
        margin-bottom: 20px;
    }
    
    .form-mobile label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    /* Mobile button groups */
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Mobile-friendly alerts */
    .alert-mobile {
        padding: 16px;
        margin: 16px;
        border-radius: 8px;
        font-size: 14px;
    }
    
    /* Sticky mobile header */
    .header-mobile-sticky {
        position: sticky;
        top: 0;
        z-index: 30;
        background: white;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile pagination */
    .pagination-mobile {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 16px;
    }
    
    .pagination-mobile .page-link {
        padding: 8px 12px;
        min-width: 40px;
        text-align: center;
    }
    
    /* Hide elements on mobile */
    .hide-mobile {
        display: none !important;
    }
    
    /* Show only on mobile */
    .show-mobile {
        display: block !important;
    }
    
    /* Mobile-specific spacing */
    .p-mobile {
        padding: 16px;
    }
    
    .px-mobile {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .py-mobile {
        padding-top: 16px;
        padding-bottom: 16px;
    }
    
    .m-mobile {
        margin: 16px;
    }
    
    .mb-mobile {
        margin-bottom: 16px;
    }
    
    /* Mobile export buttons */
    .export-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .export-buttons-mobile .btn {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
    
    /* Mobile search */
    .search-mobile {
        width: 100%;
        margin-bottom: 16px;
    }
    
    .search-mobile input {
        width: 100%;
        border-radius: 8px;
        border: 1px solid #d1d5db;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    /* Mobile filter dropdown */
    .filter-mobile {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .filter-mobile select {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 8px;
        border: 1px solid #d1d5db;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .table-tablet {
        font-size: 14px;
    }
    
    .btn-group-tablet {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .card-tablet {
        margin-bottom: 20px;
    }
}

/* Large mobile devices */
@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .text-xs-mobile {
        font-size: 11px;
    }
    
    .p-xs-mobile {
        padding: 12px;
    }
    
    .btn-xs-mobile {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    /* Stack export buttons vertically on very small screens */
    .export-stack-xs {
        flex-direction: column;
    }
    
    /* Smaller GPS display for tiny screens */
    .gps-xs-mobile {
        font-size: 10px;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .landscape-mobile {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .form-landscape-mobile {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .form-landscape-mobile .form-group-full {
        grid-column: 1 / -1;
    }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .dark-mobile {
        background-color: #1f2937;
        color: #f9fafb;
    }
    
    .dark-mobile .card-mobile {
        background-color: #374151;
        border-color: #4b5563;
    }
    
    .dark-mobile input,
    .dark-mobile select,
    .dark-mobile textarea {
        background-color: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    /* Focus indicators */
    button:focus,
    input:focus,
    select:focus,
    textarea:focus,
    a:focus {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
    }
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .high-contrast-mobile {
            border: 2px solid;
            background: white;
            color: black;
        }
        
        .high-contrast-mobile button {
            border: 2px solid black;
            background: white;
            color: black;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .no-motion-mobile * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Print optimizations for mobile */
@media print {
    .no-print-mobile {
        display: none !important;
    }
    
    .print-mobile {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .print-mobile table {
        font-size: 10px;
    }
    
    .print-mobile .gps-coords-mobile {
        font-size: 9px;
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists