/* RESPONSIVE TASARIM - MOBİLE */
@media (max-width: 768px) {
    html,
    body {
        height: 100dvh;
        overflow: hidden;
    }

    body {
        flex-direction: column;
    }

    .sidebar {
        width: auto;
        height: 72px;
        left: 8px;
        right: 8px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
        top: auto;
        flex-direction: row;
        box-shadow: 0 -4px 12px var(--shadow-medium);
        border-right: none;
        border-top: 1px solid var(--border-sidebar);
        border-radius: 14px;
        z-index: 1000; /* Üstte kalması için yüksek z-index */
    }
    
    .sidebar.expanded {
        height: 72px;
        width: auto;
    }

    .toggle_sidebar {
        display: none;
    }

    .nav_buttons_container {
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
        flex-grow: 1;
        display: flex;
        justify-content: space-around;
    }

    .nav_button {
        min-width: 60px;
        height: 56px;
        margin: 0 2px;
        flex-direction: column;
        gap: 4px;
        border-radius: 8px;
    }

    .nav_button img {
        width: 24px;
        height: 24px;
    }

    .nav_label_under {
        font-size: 10px;
        opacity: 1;
        display: block;
    }

    .nav_button_text {
        display: none;
        opacity: 0;
    }

    .user_profile_container {
        display: none;
    }

    /* Mobilde uygulamayı indir butonunu gizle */
    #download_button {
        display: none;
    }

    .content {
        margin-left: 0;
        height: 100dvh;
        padding: calc(env(safe-area-inset-top, 0px) + 14px) 0px calc(72px + env(safe-area-inset-bottom, 0px) + 32px) 0px;
        margin-bottom: 0;
        min-height: 100dvh; /* Tam sayfa yüksekliği */
        overflow-y: auto; /* Scroll edilebilir */
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    

    .content::-webkit-scrollbar {
        display: none;
    }

    .sidebar.expanded + .content {
        margin-left: 0;
    }

    .welcome_section {
        padding: 2rem 1.5rem;
    }
    
    .welcome-header h1 {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .welcome-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .welcome_card {
        padding: 2rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon img {
        width: 35px;
        height: 35px;
    }

    .notification_badge {
        top: 4px;
        right: 4px;
        width: 14px;
        height: 14px;
        font-size: 9px;
    }

    /* Call Modal Responsive */
    .incoming_call_content, .call_status_content {
        min-width: 300px;
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .caller_avatar, .call_user_avatar {
        width: 100px;
        height: 100px;
    }
    
    .call_actions, .call_controls {
        gap: 20px;
    }
    
    .call_btn, .call_control_btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .caller_info h3, .call_user_name {
        font-size: 20px;
    }

    .call_timer {
        font-size: 28px;
    }

    .call_notification {
        right: 10px;
        left: 10px;
        width: auto;
    }

    /* Floating Widget Responsive */
    .floating-voice-widget {
        width: 250px;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 18px);
        right: 10px;
    }

    .floating-voice-widget .widget-participants {
        gap: 6px;
        padding: 10px;
        max-height: 260px;
    }

    .floating-voice-widget .widget-participant {
        gap: 4px;
    }

    .floating-voice-widget .widget-participant-avatar {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }

    .floating-voice-widget .widget-participant-name {
        font-size: 11px;
        max-width: 58px;
        padding: 1px 5px;
    }

    .floating-voice-widget .widget-participant-music .widget-participant-avatar {
        width: 34px;
        height: 34px;
    }

    .floating-voice-widget .widget-participant-music .widget-participant-name {
        max-width: 92px;
    }

    /* Image Modal Responsive */
    .image-modal-content {
        padding: 10px;
        width: 100%;
        height: 100%;
    }
    
    .modal-image {
        max-height: 70%;
    }
    
    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
    
    .image-control-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .incoming_call_content, .call_status_content {
        min-width: 280px;
        padding: 25px 15px;
    }
    
    .caller_avatar, .call_user_avatar {
        width: 80px;
        height: 80px;
    }
    
    .call_btn, .call_control_btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .caller_info h3, .call_user_name {
        font-size: 18px;
    }

    .call_timer {
        font-size: 24px;
    }

    .floating-voice-widget {
        width: 220px;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 14px);
        right: 5px;
    }

    .floating-voice-widget .widget-participants {
        gap: 5px;
        padding: 8px;
        max-height: 230px;
    }

    .floating-voice-widget .widget-participant {
        width: auto;
        height: auto;
        gap: 3px;
    }

    .floating-voice-widget .widget-participant-avatar {
        width: 34px;
        height: 34px;
        border-width: 2px;
    }

    .floating-voice-widget .widget-participant-name {
        font-size: 10px;
        max-width: 50px;
        padding: 1px 4px;
    }

    .floating-voice-widget .widget-participant-music .widget-participant-avatar {
        width: 30px;
        height: 30px;
    }

    .floating-voice-widget .widget-participant-music .widget-participant-name {
        max-width: 78px;
    }

    .floating-voice-widget .widget-music-time {
        min-width: 62px;
        font-size: 10px;
    }
}

/* TABLET RESPONSIVE */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar.expanded {
        width: 240px;
    }
    
    .content {
        margin-left: 70px;
    }
    
    .sidebar.expanded + .content {
        margin-left: 240px;
    }
    
    .nav_button img {
        width: 24px;
        height: 24px;
    }
    
    .nav_label_under {
        font-size: 10px;
    }
}