/* Additional Mobile Components */

/* Mobile Toast Notifications */
.mobile-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 1rem 1.5rem;
    z-index: 9999;
    min-width: 280px;
    max-width: 90vw;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mobile-toast-content {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-toast-success {
    border-left: 4px solid #28a745;
    color: #155724;
}

.mobile-toast-error {
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.mobile-toast-warning {
    border-left: 4px solid #ffc107;
    color: #856404;
}

.mobile-toast-info {
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

/* Mobile Loading Overlay */
.mobile-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-loading-content {
    text-align: center;
    padding: 2rem;
}

.mobile-loading-text {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Mobile Confirmation Modal */
.mobile-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.mobile-confirm-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mobile-confirm-dialog {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mobile-confirm-header {
    padding: 1.5rem 1.5rem 0;
}

.mobile-confirm-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.mobile-confirm-body {
    padding: 1rem 1.5rem;
}

.mobile-confirm-body p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.mobile-confirm-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
}

.mobile-confirm-footer .btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
}

/* Mobile Swipe Animations */
.swiped-left {
    transform: translateX(-10px);
    transition: transform 0.3s ease;
}

.swiped-right {
    transform: translateX(10px);
    transition: transform 0.3s ease;
}

/* Mobile Pull-to-Refresh */
.mobile-pull-refresh {
    position: relative;
    overflow: hidden;
}

.mobile-pull-refresh-indicator {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-pull-refresh-indicator.active {
    top: 10px;
}

/* Mobile Bottom Sheet */
.mobile-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-bottom-sheet.show {
    transform: translateY(0);
}

.mobile-bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 12px auto 20px;
}

.mobile-bottom-sheet-content {
    padding: 0 1.5rem 2rem;
}

/* Mobile Floating Action Button */
.mobile-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #667eea;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.mobile-fab:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

.mobile-fab:active {
    transform: scale(0.95);
}

/* Mobile Search Bar */
.mobile-search-bar {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    z-index: 100;
}

.mobile-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.mobile-search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.9rem;
}

/* Mobile Filter Chips */
.mobile-filter-chips {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-filter-chip {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-filter-chip.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.mobile-filter-chip:hover {
    background: #e9ecef;
}

.mobile-filter-chip.active:hover {
    background: #5a6fd8;
}

/* Mobile Card Stack */
.mobile-card-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.mobile-card-stack .card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.mobile-card-stack .card:active {
    transform: scale(0.98);
}

/* Mobile Status Indicators */
.mobile-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.mobile-status-dot.online {
    background: #28a745;
}

.mobile-status-dot.offline {
    background: #6c757d;
}

.mobile-status-dot.busy {
    background: #ffc107;
}

.mobile-status-dot.away {
    background: #fd7e14;
}

/* Mobile Progress Indicators */
.mobile-progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#667eea var(--progress, 0%), #f8f9fa 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-progress-circle::before {
    content: '';
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    position: absolute;
}

.mobile-progress-circle .progress-text {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
}

/* Mobile Skeleton Loading */
.mobile-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: mobile-skeleton-loading 1.5s infinite;
}

@keyframes mobile-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.mobile-skeleton-text {
    height: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.mobile-skeleton-text.short {
    width: 60%;
}

.mobile-skeleton-text.medium {
    width: 80%;
}

.mobile-skeleton-text.long {
    width: 100%;
}

.mobile-skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.mobile-skeleton-card {
    height: 120px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Mobile Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .mobile-toast,
    .mobile-bottom-sheet,
    .mobile-fab,
    .stats-card,
    .assignment-card {
        transition: none;
    }
    
    .mobile-skeleton {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .mobile-toast {
        border: 2px solid currentColor;
    }
    
    .mobile-filter-chip {
        border-width: 2px;
    }
    
    .card {
        border: 1px solid #333;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .mobile-toast {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .mobile-loading-overlay {
        background: rgba(45, 55, 72, 0.95);
    }
    
    .mobile-confirm-dialog {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .mobile-bottom-sheet {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .mobile-search-input {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .mobile-filter-chip {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
}