/**
 * Panel Mobil UX - 768px altı için
 * Bottom nav, FAB, safe-area, 44px+ touch targets, modal sheet
 */
@media (max-width: 768px) {
    /* Safe area for notched devices */
    body {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    
    /* Touch targets min 44px */
    .btn, button, .tab, .side-tab, .cal-nav-btn, .filter-btn,
    .mobile-menu-nav a, .menu-toggle-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem 1rem;
    }
    
    /* FAB - Yeni Randevu */
    .panel-fab {
        position: fixed;
        bottom: calc(80px + env(safe-area-inset-bottom, 0));
        right: 1rem;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary, #10B981), var(--primary-dark, #059669));
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .panel-fab:hover, .panel-fab:active {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
    }
    
    /* Bottom nav bar */
    .panel-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        padding-bottom: env(safe-area-inset-bottom, 0);
        background: white;
        border-top: 1px solid var(--slate-200, #e2e8f0);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 800;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    .panel-bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        min-height: 44px;
        color: var(--slate-500, #64748b);
        text-decoration: none;
        font-size: 0.7rem;
        border: none;
        background: none;
        cursor: pointer;
    }
    .panel-bottom-nav-item.active {
        color: var(--primary, #10B981);
        font-weight: 600;
    }
    .panel-bottom-nav-item .nav-icon {
        font-size: 1.25rem;
        margin-bottom: 0.2rem;
    }
    
    /* Main content padding for bottom nav */
    .main.new-layout {
        padding-bottom: calc(140px + env(safe-area-inset-bottom, 0));
    }
    
    /* Modal sheet - mobilde 92vh */
    .modal-overlay .modal,
    .modal-overlay .modal-content,
    #manualAppointmentModal .modal-content,
    #manualAppointmentModal {
        max-height: 92vh;
        overflow-y: auto;
    }
    @media (max-width: 768px) {
        .modal-overlay .modal,
        .modal-overlay .modal-content {
            margin: 0;
            border-radius: 16px 16px 0 0;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            max-height: 92vh;
            animation: slideUp 0.3s ease;
        }
    }
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    /* Bugün ekranı - kompakt statlar */
    .panel-today-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.75rem;
    }
    .panel-today-stat {
        text-align: center;
        padding: 0.5rem;
        background: var(--slate-50, #f8fafc);
        border-radius: 8px;
        font-size: 0.8rem;
    }
    .panel-today-stat .value {
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--primary, #10B981);
    }
}
