/* FMLL App Custom Styles */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-secondary {
    border-radius: 10px;
    padding: 10px 20px;
}

.btn-info {
    background: linear-gradient(45deg, #17a2b8, #138496);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.alert {
    border-radius: 10px;
    border: none;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.home-buttons {
    gap: 20px;
}

@media (max-width: 768px) {
    .home-buttons {
        flex-direction: column;
    }
    .btn-primary {
        width: 100%;
        margin-bottom: 15px;
    }
}

.table th {
    border-top: none;
    font-weight: 600;
}

.progress {
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

.admin-stats-card {
    transition: transform 0.2s ease;
}

.admin-stats-card:hover {
    transform: translateY(-2px);
}

.admin-button-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-button-fixed .btn {
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: #ffffff !important;
    border: 2px solid #e9ecef !important;
    color: #495057 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-button-fixed .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #343a40 !important;
}

.admin-button-fixed .btn i {
    color: #6c757d;
}

.admin-button-fixed .btn:hover i {
    color: #495057;
}

/* Small Tablet Optimizations (4.7 inch tablets) */
@media (max-width: 576px) {
    /* Improved touch targets and spacing */
    .form-control-lg {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        min-height: 48px; /* Recommended touch target size */
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
        min-height: 48px;
    }
    
    /* Compact headers for small screens */
    h2.fs-4 {
        font-size: 1.25rem !important;
    }
    
    /* Better spacing for form elements */
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Optimize form text size */
    .form-text.small {
        font-size: 0.8rem;
    }
    
    /* Card padding optimization */
    .card .card-body {
        padding: 1rem;
    }
    
    /* Make buttons more touch-friendly */
    .btn {
        min-height: 44px;
        border-radius: 8px;
    }
    
    /* Adjust margins and padding for smaller screens */
    .me-2 {
        margin-right: 0.5rem !important;
    }
    
    .me-sm-3 {
        margin-right: 0.75rem !important;
    }
    
    /* Optimize main container padding */
    .main-container {
        padding: 10px;
    }
    
    /* Full width buttons on small screens */
    .w-100 {
        width: 100% !important;
    }
}

/* Landscape orientation optimizations for small tablets */
@media (max-width: 768px) and (orientation: landscape) {
    .main-container {
        padding: 15px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .card {
        max-width: 600px;
        width: 100%;
    }
}