/* TEMEL STİLLER */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--bg-primary) !important;
    height: 100vh;
    display: flex;
}

/* CONTENT ALANI */
.content {
    flex: 1;
    margin-left: 80px;
    padding: 24px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    z-index: 50;
}

/* MAIN CONTENT - Fade transition için */
#main_content {
    opacity: 1;
    transition: opacity 0.15s ease-out;
}

.sidebar.expanded ~ .content {
    margin-left: 280px;
}

/* WELCOME SECTION */
.welcome_section {
    padding: 3rem;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
}

.welcome_section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.welcome-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease-out;
}

.welcome-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #60a5fa, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
    color: var(--text-alpha-medium);
    font-size: 1.1rem;
    font-weight: 400;
}

.welcome-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.welcome_card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
}

.welcome_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.card-icon {
    background: var(--accent-light);
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.welcome_card:hover .card-icon {
    transform: scale(1.1);
}

.card-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.welcome_card h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-description {
    color: var(--text-alpha-medium);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border: none;
    color: white;
    padding: 1rem 1.75rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.pulse {
    animation: pulse 2s infinite;
}

.pulse img {
    height: 25px !important;
    width: auto !important;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 400px;
    overflow-y: scroll;
    padding-right: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) rgba(255, 255, 255, 0.05);
}

.updates-list::-webkit-scrollbar {
    width: 6px;
}

.updates-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.updates-list::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.updates-list::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.update-item {
    display: flex;
    gap: 0.75rem;
    color: var(--text-alpha-high);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
}

.update-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(5px);
}

.update-bullet {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.update-badge {
    position: absolute;
    top: -1px;
    right: -8px;
    background: var(--status-online);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
}

/* ANIMATIONS */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* UTILITY CLASSES */
.hidden {
    display: none;
}

/* NOTIFICATION BADGE */
.notification_badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--danger);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 0 0 2px var(--bg-tertiary);
}

/* Sidebar Notification Badge Variations */
.notification_badge.mention {
    background-color: var(--danger);
    animation: pulse-sidebar-mention 2s infinite;
}

.notification_badge.unread {
    background-color: #5865f2;
    animation: pulse-sidebar-unread 3s infinite;
}

@keyframes pulse-sidebar-mention {
    0% { 
        box-shadow: 0 0 0 2px var(--bg-tertiary), 0 0 0 0 rgba(240, 71, 71, 0.7);
    }
    70% {
        box-shadow: 0 0 0 2px var(--bg-tertiary), 0 0 0 4px rgba(240, 71, 71, 0.3);
    }
    100% { 
        box-shadow: 0 0 0 2px var(--bg-tertiary), 0 0 0 0 rgba(240, 71, 71, 0);
    }
}

@keyframes pulse-sidebar-unread {
    0% { 
        box-shadow: 0 0 0 2px var(--bg-tertiary), 0 0 0 0 rgba(88, 101, 242, 0.5);
    }
    70% {
        box-shadow: 0 0 0 2px var(--bg-tertiary), 0 0 0 3px rgba(88, 101, 242, 0.2);
    }
    100% { 
        box-shadow: 0 0 0 2px var(--bg-tertiary), 0 0 0 0 rgba(88, 101, 242, 0);
    }
}


  /* TEMEL STİLLER */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: var(--bg-primary);
            height: 100vh;
            display: flex;
        }

        /* PC SİDEBAR STİLLERİ */
        .sidebar {
            width: 80px;
            background: var(--bg-tertiary);
            height: 100vh;
            position: fixed;
            display: flex;
            flex-direction: column;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
            box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
            border-right: 1px solid var(--border-sidebar);
        }

        .sidebar.expanded {
            width: 280px;
        }

        /* TOGGLE BUTON */
        .toggle_sidebar {
            position: absolute;
            right: -14px;
            top: 24px;
            width: 28px;
            height: 28px;
            background: var(--bg-primary);
            border: 2px solid var(--bg-tertiary);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1100;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .sidebar.expanded .toggle_sidebar {
            background: var(--accent);
            border-color: var(--accent-hover);
        }

        .toggle_sidebar::before {
            content: "›";
            color: var(--text-secondary);
            font-size: 18px;
            font-weight: 700;
            transition: all 0.3s ease;
        }

        .sidebar.expanded .toggle_sidebar::before {
            content: "‹";
            color: white;
        }

        /* NAVİGASYON BUTONLARI */
        .nav_buttons_container {
            padding: 16px 8px;
            flex-grow: 1;
            overflow-y: auto;
        }

        .nav_button {
            width: 100%;
            height: 64px;
            margin: 4px 0;
            border-radius: 12px;
            border: none;
            background: transparent;
            color: var(--text-secondary);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
            gap: 6px;
        }

        .nav_button:hover {
            background: var(--bg-elevated);
            color: var(--text-secondary);
            border-radius: 16px;
        }

        .nav_button.active {
            background: var(--accent);
            color: var(--text-primary);
        }

        .nav_button::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 0;
            background: var(--accent);
            border-radius: 0 4px 4px 0;
            transition: height 0.2s ease;
        }

        .nav_button.active::before {
            height: 80%;
        }

        .nav_button img {
            width: 28px;
            height: 28px;
            flex-shrink: 0;
            filter: brightness(0.9);
            transition: all 0.2s ease;
        }

        .nav_button:hover img,
        .nav_button.active img {
            filter: brightness(1);
        }

        .nav_label_under {
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 0.02em;
            color: var(--text-muted);
            transition: opacity 0.15s;
            pointer-events: none;
            user-select: none;
            opacity: 1;
            text-align: center;
            line-height: 1.2;
        }

        .nav_button_text {
            font-size: 15px;
            font-weight: 500;
            color: var(--text-secondary);
            margin-left: 16px;
            white-space: nowrap;
            opacity: 0;
            transition: opacity 0.2s 0.1s ease;
            display: none;
        }

        .nav_button.active .nav_label_under,
        .nav_button.active .nav_button_text {
            color: var(--text-primary);
        }

        /* EXPANDED STATE */
        .sidebar.expanded .nav_button {
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            height: 48px;
            padding: 0 16px;
            gap: 14px;
        }

        .sidebar.expanded .nav_label_under {
            opacity: 0;
            display: none;
        }

        .sidebar.expanded .nav_button_text {
            opacity: 1;
            display: inline;
        }

        /* KULLANICI PROFİL - NORMAL */
        .user_profile_container {
            padding: 16px;
            background: var(--bg-profile);
            border-top: 1px solid var(--border-sidebar);
            margin-top: auto;
            transition: all 0.3s ease;
        }

        /* KULLANICI PROFİL - TURBO */
        .user_profile_container.turbo {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }

        .user_profile_container.turbo::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .profile_content {
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
            z-index: 2;
        }

        .profile_avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--accent);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            flex-shrink: 0;
            transition: all 0.3s ease;
        }

        .user_profile_container.turbo .profile_avatar {
            border: 3px solid #ffd700;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
            animation: glow 2s ease-in-out infinite alternate;
        }

        @keyframes glow {
            from {
                box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
            }
            to {
                box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
            }
        }

        .profile_details {
            flex: 1;
            min-width: 0;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .sidebar.expanded .profile_details {
            opacity: 1;
        }

        .profile_username {
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 2px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .turbo_badge {
            background: linear-gradient(45deg, #ffd700, #ffed4e);
            color: #1a1a1a;
            font-size: 10px;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 4px 8px rgba(255, 215, 0, 0.5);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
            }
        }

        .profile_status {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .status_dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            background: var(--status-online);
        }

        .user_profile_container.turbo .status_dot {
            background: #00ff88;
            box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
        }

        .status_text {
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 500;
        }

        .user_profile_container.turbo .status_text {
            color: rgba(255, 255, 255, 0.9);
            font-weight: 600;
        }

        .turbo_expiry {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.7);
            margin-top: 2px;
            font-style: italic;
        }

        /* CONTENT ALANI */
        .content {
            flex: 1;
            margin-left: 80px;
            padding: 24px;
            transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            min-height: 100vh;
            background: var(--bg-primary);
            position: relative;
            z-index: 50;
        }

        .sidebar.expanded ~ .content {
            margin-left: 280px;
        }

        /* NOTIFICATION BADGE */
        .notification_badge {
            position: absolute;
            top: 8px;
            right: 8px;
            background-color: var(--danger);
            color: white;
            border-radius: 50%;
            font-size: 10px;
            width: 16px;
            height: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            z-index: 10;
            box-shadow: 0 0 0 2px var(--bg-tertiary);
        }

        /* WELCOME SECTION */
        .welcome_section {
            padding: 3rem;
            background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
            border-radius: 1.5rem;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            position: relative;
            backdrop-filter: blur(10px);
            border: 1px solid var(--border-primary);
        }

        .welcome_section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        }

        .welcome-header {
            text-align: center;
            margin-bottom: 3rem;
            animation: fadeInDown 0.6s ease-out;
        }

        .welcome-header h1 {
            color: var(--text-primary);
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            background: linear-gradient(135deg, #60a5fa, var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .welcome-subtitle {
            color: var(--text-alpha-medium);
            font-size: 1.1rem;
            font-weight: 400;
        }

        .welcome-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2.5rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .welcome_card {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            border-radius: 1.25rem;
            padding: 2.5rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid var(--border-primary);
            position: relative;
            overflow: hidden;
        }

        .welcome_card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            background: rgba(255, 255, 255, 0.05);
        }

        .card-icon {
            background: var(--accent-light);
            width: 70px;
            height: 70px;
            border-radius: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2rem;
            transition: transform 0.3s ease;
        }

        .welcome_card:hover .card-icon {
            transform: scale(1.1);
        }

        .card-icon img {
            width: 40px;
            height: 40px;
            object-fit: contain;
        }

        .welcome_card h3 {
            color: var(--text-primary);
            font-size: 1.75rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .card-description {
            color: var(--text-alpha-medium);
            font-size: 1rem;
            line-height: 1.6;
            margin-bottom: 2rem;
        }

        .button-group {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .primary-btn {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
            border: none;
            color: white;
            padding: 1rem 1.75rem;
            border-radius: 0.75rem;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .primary-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: 0.5s;
        }

        .primary-btn:hover::before {
            left: 100%;
        }

        .primary-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
        }

        .pulse {
            animation: pulse 2s infinite;
        }

        .pulse img {
            height: 25px !important;
            width: auto !important;
        }

        .card-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .updates-list {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            max-height: 400px;
            overflow-y: scroll;
            padding-right: 1rem;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            scrollbar-color: rgba(59, 130, 246, 0.3) rgba(255, 255, 255, 0.05);
        }

        .updates-list::-webkit-scrollbar {
            width: 6px;
        }

        .updates-list::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 3px;
        }

        .updates-list::-webkit-scrollbar-thumb {
            background: rgba(59, 130, 246, 0.3);
            border-radius: 3px;
            transition: background 0.3s ease;
        }

        .updates-list::-webkit-scrollbar-thumb:hover {
            background: rgba(59, 130, 246, 0.5);
        }

        .update-item {
            display: flex;
            gap: 0.75rem;
            color: var(--text-alpha-high);
            font-size: 0.95rem;
            line-height: 1.6;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 0.75rem;
            transition: all 0.3s ease;
            position: relative;
        }

        .update-item:hover {
            background: rgba(255, 255, 255, 0.04);
            transform: translateX(5px);
        }

        .update-bullet {
            color: var(--accent);
            font-weight: bold;
            font-size: 1.2rem;
        }

        .update-badge {
            position: absolute;
            top: -1px;
            right: -8px;
            background: var(--status-online);
            color: white;
            font-size: 0.75rem;
            padding: 0.25rem 0.75rem;
            border-radius: 1rem;
            font-weight: 500;
        }

        /* POPUP VE MODAL STİLLERİ */
        .popup-box {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background-color: var(--bg-message-actions);
            border-radius: 12px;
            padding: 12px 16px;
            box-shadow: 0 0 12px rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 9999;
            color: var(--text-primary);
            min-width: 280px;
            cursor: pointer;
            border: 1px solid var(--border-secondary);
            display: none;
            animation: fadeIn 0.3s ease-in-out;
        }

        .popup-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--accent);
        }

        .popup-content {
            display: flex;
            flex-direction: column;
        }

        #popup_sender {
            font-weight: bold;
            font-size: 15px;
            margin-bottom: 4px;
        }

        #popup_text {
            font-size: 14px;
            color: var(--text-secondary);
            max-width: 200px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* CALL MODAL STİLLERİ */
        #incoming_call_modal {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            padding-top: 50px;
        }

        #incoming_call_modal.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: var(--modal-content-bg);
            border-radius: 24px;
            padding: 32px;
            width: 90%;
            max-width: 400px;
            text-align: center;
            border: 1px solid var(--border-primary);
            box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
            position: relative;
            overflow: hidden;
            animation: modalSlideUp 0.5s ease forwards;
        }

        @keyframes modalSlideUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        #caller_info {
            color: #fff;
            font-size: 24px;
            font-weight: 600;
            margin: 20px 0;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .ring-animation {
            width: 80px;
            height: 80px;
            background: var(--accent);
            border-radius: 50%;
            margin: 0 auto 24px;
            position: relative;
            animation: ring 2s infinite;
        }

        .ring-animation::before,
        .ring-animation::after {
            content: '';
            position: absolute;
            border: 3px solid var(--accent);
            border-radius: 50%;
            width: 100%;
            height: 100%;
            left: -3px;
            top: -3px;
            animation: ringWave 2s infinite;
        }

        .ring-animation::after {
            animation-delay: 0.5s;
        }

        @keyframes ring {
            0% { transform: rotate(-15deg); }
            50% { transform: rotate(15deg); }
            100% { transform: rotate(-15deg); }
        }

        @keyframes ringWave {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            100% {
                transform: scale(1.5);
                opacity: 0;
            }
        }

        .sound-waves {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 4px;
            height: 40px;
            margin: 20px 0;
        }

        .wave {
            width: 4px;
            height: 20px;
            background: var(--accent);
            border-radius: 2px;
            animation: wave 1s ease infinite;
        }

        .wave:nth-child(2) { animation-delay: 0.1s; }
        .wave:nth-child(3) { animation-delay: 0.2s; }
        .wave:nth-child(4) { animation-delay: 0.3s; }
        .wave:nth-child(5) { animation-delay: 0.4s; }

        @keyframes wave {
            0%, 100% { height: 20px; }
            50% { height: 40px; }
        }

        .call-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            margin-top: 24px;
        }

        #accept_call, #reject_call {
            padding: 16px;
            border: none;
            border-radius: 50%;
            width: 64px;
            height: 64px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        #accept_call {
            background: linear-gradient(45deg, #3ba55c, #43b581);
        }

        #accept_call:hover {
            background: linear-gradient(45deg, #43b581, #4bc893);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 24px rgba(59, 165, 92, 0.4);
        }

        #reject_call {
            background: linear-gradient(45deg, #ed4245, #f04747);
        }

        #reject_call:hover {
            background: linear-gradient(45deg, #f04747, #f25555);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 24px rgba(237, 66, 69, 0.4);
        }

        #accept_call:active, #reject_call:active {
            transform: scale(0.95);
        }

        .hidden {
            display: none;
        }

        /* DİĞER MODAL VE COMPONENT STİLLERİ */
        .voice_call_btn {
            padding: 10px;
            background: var(--accent);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .voice_call_btn:hover {
            background: var(--accent-hover);
            transform: scale(1.1);
        }

        .voice_call_btn img {
            width: 20px;
            height: 20px;
            filter: brightness(0) invert(1);
        }

        /* ======= P2P SESLİ ARAMA MODALLERİ ======= */
        
        /* Gelen Arama Modalı */
        #incoming_call_modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10000;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(10px);
            animation: fadeIn 0.3s ease;
        }

        .incoming_call_content {
            background: linear-gradient(135deg, var(--bg-message-actions) 0%, var(--bg-primary) 100%);
            border-radius: 24px;
            padding: 40px 32px;
            text-align: center;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
            border: 1px solid var(--border-primary);
            position: relative;
            overflow: hidden;
            min-width: 350px;
        }

        .incoming_call_content::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
            animation: shimmer 2s infinite;
        }

        .caller_avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            margin: 0 auto 20px;
            border: 4px solid var(--accent);
            object-fit: cover;
            animation: pulse 2s infinite;
            box-shadow: 0 0 30px rgba(88, 101, 242, 0.5);
        }

        .caller_info h3 {
            color: var(--text-primary);
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 8px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .caller_info p {
            color: var(--text-secondary);
            font-size: 16px;
            margin-bottom: 30px;
        }

        .call_actions {
            display: flex;
            gap: 30px;
            justify-content: center;
            margin-top: 20px;
        }

        .call_btn {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            color: white;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .call_btn::before {
            content: '';
            position: absolute;
            inset: -3px;
            border-radius: 50%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .call_btn:hover::before {
            opacity: 1;
        }

        .accept_btn {
            background: linear-gradient(45deg, #3ba55c, #43b581);
        }

        .accept_btn:hover {
            background: linear-gradient(45deg, #43b581, #4bc893);
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 8px 30px rgba(59, 165, 92, 0.5);
        }

        .reject_btn {
            background: linear-gradient(45deg, #ed4245, #f04747);
        }

        .reject_btn:hover {
            background: linear-gradient(45deg, #f04747, #f25555);
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 8px 30px rgba(237, 66, 69, 0.5);
        }

        /* Arama Durumu Modalı */
        #call_status_modal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 99999 !important;
            animation: slideIn 0.3s ease;
            cursor: move;
            pointer-events: auto;
        }

        .call_status_content {
            background: var(--bg-message-actions);
            border-radius: 16px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
            border: 1px solid var(--border-primary);
            min-width: 280px;
            max-width: 320px;
            position: relative;
            z-index: 99999 !important;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            user-select: none;
            cursor: move;
            pointer-events: auto;
            touch-action: none;
        }

        .call_status_content:hover {
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
            transform: translateY(-2px);
        }

        .call_user_info {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
        }

        .call_user_details {
            flex: 1;
            text-align: left;
        }

        .call_user_avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 2px solid var(--accent);
            object-fit: cover;
            box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
            flex-shrink: 0;
        }

        .call_user_name {
            color: var(--text-primary);
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .call_status_text {
            color: var(--text-secondary);
            font-size: 12px;
            margin: 0;
        }

        .call_timer {
            color: var(--status-online);
            font-size: 18px;
            font-weight: 700;
            font-family: 'Courier New', monospace;
            margin: 8px 0 12px 0;
            text-shadow: 0 1px 5px rgba(59, 165, 93, 0.3);
            text-align: center;
        }

        .call_controls {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 10px;
            pointer-events: auto;
        }

        .call_control_btn {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: white;
            transition: all 0.3s ease;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
            pointer-events: auto;
            position: relative;
            z-index: 100000;
        }

        .mute_btn {
            background: var(--text-faint);
        }

        .mute_btn:hover {
            background: #5d6269;
            transform: translateY(-2px);
        }

        .mute_btn.muted {
            background: var(--danger);
        }

        .end_call_btn {
            background: linear-gradient(45deg, #ed4245, #f04747);
        }

        .end_call_btn:hover {
            background: linear-gradient(45deg, #f04747, #f25555);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 25px rgba(237, 66, 69, 0.5);
        }

        /* Arama Sesleri */
        .call_sound_waves {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
            height: 40px;
            margin: 20px 0;
        }

        .sound_wave {
            width: 5px;
            border-radius: 3px;
            background: var(--accent);
            animation: wave 1.2s ease infinite;
        }

        .sound_wave:nth-child(1) { height: 15px; animation-delay: 0s; }
        .sound_wave:nth-child(2) { height: 25px; animation-delay: 0.1s; }
        .sound_wave:nth-child(3) { height: 35px; animation-delay: 0.2s; }
        .sound_wave:nth-child(4) { height: 25px; animation-delay: 0.3s; }
        .sound_wave:nth-child(5) { height: 15px; animation-delay: 0.4s; }

        @keyframes wave {
            0%, 100% { transform: scaleY(0.5); opacity: 0.7; }
            50% { transform: scaleY(1); opacity: 1; }
        }

        /* Bildirim Toast */
        .call_notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--accent-gradient);
            color: white;
            padding: 15px 20px;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
            z-index: 10001;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            display: none;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .call_notification.show {
            transform: translateX(0);
            display: block;
        }

        /* Animasyonlar */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideIn {
            from { 
                opacity: 0; 
                transform: translate(-50%, -60%) scale(0.9);
            }
            to { 
                opacity: 1; 
                transform: translate(-50%, -50%) scale(1);
            }
        }

        @keyframes pulse {
            0% { transform: scale(1); box-shadow: 0 0 30px rgba(88, 101, 242, 0.5); }
            50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(88, 101, 242, 0.8); }
            100% { transform: scale(1); box-shadow: 0 0 30px rgba(88, 101, 242, 0.5); }
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .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;
            }
        }

        @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;
            }
        }

        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--modal-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
        }

        .call-status {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: var(--modal-bg);
            color: white;
            padding: 2rem;
            border-radius: 1rem;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            min-width: 300px;
            backdrop-filter: blur(10px);
            border: 1px solid var(--border-primary);
        }

        .call-status h2 {
            margin: 0 0 1rem 0;
            font-size: 1.5rem;
            color: var(--text-primary);
        }

        .call-timer {
            font-size: 2rem;
            font-weight: bold;
            margin: 1rem 0;
            font-family: monospace;
            color: var(--status-online);
        }

        .call-status-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 1rem;
            border-radius: 50%;
            background: var(--status-online);
            display: flex;
            align-items: center;
            justify-content: center;
            animation: pulse 2s infinite;
        }

        .call-status-icon::before {
            content: '';
            width: 30px;
            height: 30px;
            background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0id2hpdGUiPjxwYXRoIGQ9Ik0xMiAxNWMxLjY1IDAgMy0xLjM1IDMtM3YtNmMwLTEuNjUtMS4zNS0zLTMtM3MtMyAxLjM1LTMgM3Y2YzAgMS42NSAxLjM1IDMgMyAzek0yMCAxNGgtMi40MmMtLjE0IDEuNTUtLjg1IDIuOTYtMi4wNCA0LjA2bDEuNTcgMS41N2MxLjY1LTEuNjYgMi43MS0zLjg4IDIuODktNi4zM3YtLjN6TTEyIDIwYy0zLjMxIDAtNi0yLjY5LTYtNkg0YzAgNC40MiAzLjU4IDggOCA4czgtMy41OCA4LThoLTJjMCAzLjMxLTIuNjkgNi02IDZ6Ii8+PC9zdmc+') center/contain no-repeat;
        }

        .end-call-btn {
            background: var(--danger);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 2rem;
            cursor: pointer;
            font-size: 1rem;
            margin-top: 1rem;
            transition: background 0.3s ease;
        }

        .end-call-btn:hover {
            background: #d32f2f;
        }

        .screen-sharing-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 300px;
            background: var(--bg-message-actions);
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            z-index: 1001;
            display: none;
        }

        .screen-sharing-header {
            padding: 12px;
            background: var(--bg-tertiary);
            border-radius: 8px 8px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--text-primary);
        }

        .screen-sharing-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
            padding: 10px;
        }

        .local-screen-preview video, 
        .remote-screen-view video {
            width: 100%;
            border-radius: 4px;
            background: #000;
            max-height: 200px;
            object-fit: contain;
        }

        .close-screen-share {
            background: none;
            border: none;
            padding: 5px;
            cursor: pointer;
        }

        .close-screen-share img {
            width: 16px;
            height: 16px;
            filter: invert(0.8);
        }

        #remote_screen_container {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #000;
            padding: 10px;
            border-radius: 10px;
            z-index: 99999;
            box-shadow: 0 0 10px rgba(0,0,0,0.5);
        }

        #remote_screen_video {
            position: fixed;
            top: 10px;
            right: 10px;
            width: 300px;
            height: auto;
            z-index: 9999;
            background: black;
        }

        /* MODERN TANITIM SİSTEMİ STİLLERİ */
        
        /* Hoş Geldin Modal */
        .intro-welcome-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10005;
            opacity: 0;
            transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .intro-welcome-modal.show {
            opacity: 1;
        }

        .intro-welcome-content {
            background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
            border-radius: 24px;
            padding: 0;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            border: 1px solid var(--border-primary);
            overflow: hidden;
            transform: scale(0.9);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .intro-welcome-modal.show .intro-welcome-content {
            transform: scale(1);
        }

        .intro-welcome-header {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
            padding: 40px 32px 32px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .intro-welcome-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: pulse 3s ease-in-out infinite;
        }

        .intro-welcome-icon {
            font-size: 64px;
            margin-bottom: 16px;
            animation: bounce 1s ease-in-out infinite;
            display: inline-block;
        }

        .intro-welcome-icon.success {
            animation: celebrate 0.6s ease-in-out;
        }

        .intro-welcome-header h2 {
            color: white;
            font-size: 28px;
            margin: 0 0 8px 0;
            font-weight: 700;
            position: relative;
        }

        .intro-welcome-header p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 14px;
            margin: 0;
            position: relative;
        }

        .intro-welcome-body {
            padding: 32px;
        }

        .intro-welcome-feature {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            padding: 16px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 12px;
            margin-bottom: 12px;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .intro-welcome-feature:hover {
            background: rgba(255, 255, 255, 0.05);
            transform: translateX(8px);
            border-color: rgba(59, 130, 246, 0.3);
        }

        .intro-welcome-feature:last-child {
            margin-bottom: 0;
        }

        .intro-welcome-feature .feature-icon {
            font-size: 32px;
            flex-shrink: 0;
        }

        .intro-welcome-feature .feature-text h4 {
            color: white;
            font-size: 16px;
            margin: 0 0 4px 0;
            font-weight: 600;
        }

        .intro-welcome-feature .feature-text p {
            color: rgba(255, 255, 255, 0.6);
            font-size: 13px;
            margin: 0;
            line-height: 1.4;
        }

        .intro-welcome-footer {
            padding: 24px 32px 32px;
            display: flex;
            gap: 12px;
        }

        .intro-welcome-btn {
            flex: 1;
            padding: 14px 24px;
            border: none;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .intro-welcome-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .intro-welcome-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .intro-welcome-btn.primary {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
            color: white;
            box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
        }

        .intro-welcome-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
        }

        .intro-welcome-btn.secondary {
            background: rgba(255, 255, 255, 0.05);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .intro-welcome-btn.secondary:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
        }

        /* Modern Tooltip Tasarımı */
        .intro-tooltip {
            position: absolute;
            background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
            color: white;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            z-index: 10001;
            max-width: 320px;
            opacity: 0;
            transform: scale(0.95) translateY(10px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            border: 1px solid var(--border-primary);
            overflow: hidden;
        }

        .intro-tooltip::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
            background-size: 200% 100%;
            animation: shimmer 2s linear infinite;
        }

        .intro-tooltip.show {
            opacity: 1;
            transform: scale(1) translateY(0);
            pointer-events: auto;
        }

        .intro-tooltip-header {
            padding: 16px 20px 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
        }

        .intro-tooltip-icon {
            font-size: 24px;
            flex-shrink: 0;
        }

        .intro-tooltip-title {
            flex: 1;
            font-size: 16px;
            font-weight: 600;
            color: white;
        }

        .intro-tooltip-close {
            position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .intro-tooltip-close:hover {
            background: rgba(255, 59, 48, 0.8);
            transform: rotate(90deg);
        }

        .intro-tooltip-content {
            padding: 0 20px 16px;
            font-size: 14px;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.8);
        }

        .intro-tooltip-footer {
            padding: 12px 20px;
            background: rgba(0, 0, 0, 0.2);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .intro-tooltip-step {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
            font-weight: 500;
        }

        /* Overlay - Artık blur yok, sadece karartma */
        .intro-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: transparent;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
            pointer-events: none;
        }

        .intro-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        /* Vurgu Efekti - Blur'dan çıkan element */
        .intro-highlight {
            position: relative;
            z-index: 10002 !important;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.8), 
                        0 0 0 8px rgba(59, 130, 246, 0.4),
                        0 0 60px rgba(59, 130, 246, 0.6),
                        0 0 100px rgba(59, 130, 246, 0.3);
            border-radius: 12px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            animation: pulse-highlight 2s ease-in-out infinite;
            /* Blur'dan çıkarmak için */
            filter: none !important;
            -webkit-filter: none !important;
            backdrop-filter: none !important;
            background-clip: padding-box !important;
            isolation: isolate;
        }

        /* Vurgulanan elementin içindeki tüm elementleri de net göster */
        .intro-highlight * {
            filter: none !important;
            backdrop-filter: none !important;
        }

        /* Spotlight Efekti - Vurgulanan alanı net gösterir */
        .intro-spotlight {
            position: fixed;
            background: transparent;
            box-shadow: 
                0 0 0 3000px rgba(0, 0, 0, 0.75),
                inset 0 0 0 4px rgba(59, 130, 246, 0.6);
            pointer-events: none;
            z-index: 10001;
            border-radius: 12px;
        }

        /* Kontrol Butonları */
        .intro-controls {
            position: fixed;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 16px;
            z-index: 10003;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
        }

        .intro-controls.show {
            opacity: 1;
            visibility: visible;
        }

        .intro-btn {
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
            color: white;
            border: none;
            padding: 14px 28px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .intro-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
        }

        .intro-btn:active {
            transform: translateY(-1px);
        }

        .intro-btn.secondary {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .intro-btn.secondary:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
        }

        /* İlerleme Çubuğu */
        .intro-progress {
            position: fixed;
            top: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--bg-tertiary);
            backdrop-filter: blur(10px);
            padding: 16px 24px;
            border-radius: 16px;
            color: white;
            font-size: 13px;
            z-index: 10003;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
            min-width: 200px;
            border: 1px solid var(--border-primary);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        }

        .intro-progress.show {
            opacity: 1;
            visibility: visible;
        }

        .intro-progress-bar {
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
            overflow: hidden;
            margin-top: 8px;
        }

        .intro-progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent), var(--accent-hover));
            border-radius: 2px;
            transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
        }

        /* Animasyonlar */
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        @keyframes celebrate {
            0%, 100% { transform: scale(1) rotate(0deg); }
            25% { transform: scale(1.2) rotate(-10deg); }
            75% { transform: scale(1.2) rotate(10deg); }
        }

        @keyframes pulse-highlight {
            0%, 100% {
                box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.6), 
                            0 0 0 8px rgba(59, 130, 246, 0.3),
                            0 0 40px rgba(59, 130, 246, 0.4);
            }
            50% {
                box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.8), 
                            0 0 0 8px rgba(59, 130, 246, 0.5),
                            0 0 50px rgba(59, 130, 246, 0.6);
            }
        }

        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.8; }
        }

        /* ANIMATIONS */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from {opacity: 0; transform: translateY(20px);}
            to {opacity: 1; transform: translateY(0);}
        }

        /* RESPONSIVE TASARIM - MOBİLE */
        @media (max-width: 768px) {
            body {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                height: 72px;
                bottom: 0;
                top: auto;
                flex-direction: row;
                box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
                border-right: none;
                border-top: 1px solid var(--border-sidebar);
            }
            
            .sidebar.expanded {
                height: 72px;
                width: 100%;
            }

            .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;
            }

            .content {
                margin-left: 0;
                padding: 16px 16px 88px 16px;
                margin-bottom: 0;
            }

            .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;
            }

            .intro-tooltip {
                max-width: 250px;
                font-size: 13px;
                padding: 12px 16px;
            }

            .intro-controls {
                bottom: 20px;
                flex-direction: column;
                align-items: center;
            }

            .intro-btn {
                padding: 10px 20px;
                font-size: 13px;
            }
        }

        /* 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;
            }
        }
        
        /* Floating Voice Widget → home.html inline <style> içinde tanımlı (tek kaynak) */
        
        /* STORY MODAL STİLLERİ */
        .story-upload-area {
            margin-bottom: 20px;
        }

        .story-upload-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
            border: 2px dashed var(--border-secondary);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: linear-gradient(135deg, var(--bg-message-actions) 0%, var(--bg-primary) 100%);
        }

        .story-upload-label:hover {
            border-color: var(--accent);
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--border-secondary) 100%);
        }

        .upload-icon {
            font-size: 48px;
            margin-bottom: 15px;
        }

        .upload-text h4 {
            color: var(--text-primary);
            font-size: 18px;
            margin-bottom: 8px;
            text-align: center;
        }

        .upload-text p {
            color: var(--text-secondary);
            font-size: 14px;
            text-align: center;
        }

        #storyFile {
            display: none;
        }

        #storyPreview {
            margin-top: 20px;
            text-align: center;
        }

        #storyPreview img,
        #storyPreview video {
            max-width: 100%;
            max-height: 300px;
            border-radius: 12px;
            object-fit: cover;
        }

        .text-only-story {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 400px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-size: 24px;
            font-weight: bold;
            text-align: center;
            padding: 40px;
            border-radius: 12px;
            word-wrap: break-word;
        }

        .camera-options {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            justify-content: center;
        }

        .camera-btn {
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.3s ease;
        }

        .camera-btn:hover {
            background: var(--accent-hover);
        }

        .camera-controls {
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .camera-control-btn {
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 6px 12px;
            cursor: pointer;
            font-size: 12px;
        }

        .camera-control-btn:hover {
            background: var(--accent-hover);
        }

        .camera-control-btn.recording {
            background: #dc2626;
            animation: pulse 1s infinite;
        }

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }

        .story-text-area {
            margin-bottom: 20px;
        }

        #storyText {
            width: 100%;
            min-height: 80px;
            border: 1px solid var(--border-secondary);
            border-radius: 8px;
            padding: 12px;
            font-size: 14px;
            resize: vertical;
            background: var(--border-secondary);
            color: var(--text-secondary);
        }

        /* Story Viewer Modal Stilleri */
        .story-viewer {
            background: rgba(0, 0, 0, 0.95);
        }

        .story-viewer-content {
            position: relative;
            width: 400px;
            height: 700px;
            max-height: 90vh;
            margin: 2% auto;
            background: #000;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .story-header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
            z-index: 20;
        }

        .story-user-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .story-user-info img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 2px solid #fff;
        }

        .story-user-details span:first-child {
            color: #fff;
            font-weight: 600;
            font-size: 14px;
        }

        .story-user-details span:last-child {
            color: rgba(255,255,255,0.7);
            font-size: 12px;
            margin-left: 8px;
        }

        .story-controls {
            display: flex !important;
            align-items: center;
            gap: 10px;
            visibility: visible !important;
            opacity: 1 !important;
        }

        .story-control-btn {
            background: rgba(0,0,0,0.8);
            color: #fff;
            font-size: 16px;
            cursor: pointer;
            padding: 10px;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: Arial, sans-serif;
            position: relative;
            box-shadow: 0 2px 8px rgba(0,0,0,0.4);
        }

        .story-control-btn:hover {
            background: rgba(0,0,0,0.95);
            border-color: rgba(255,255,255,0.6);
            transform: scale(1.15);
            box-shadow: 0 4px 12px rgba(0,0,0,0.6);
        }

        .story-control-btn:active {
            transform: scale(1.05);
        }

        .close-story {
            background: none;
            border: none;
            color: #fff;
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.3s ease;
        }

        .close-story:hover {
            background: rgba(255,255,255,0.1);
        }

        .story-progress {
            position: absolute;
            top: 60px;
            left: 15px;
            right: 15px;
            height: 2px;
            background: rgba(255,255,255,0.3);
            border-radius: 1px;
            z-index: 15;
        }

        .progress-bar {
            height: 100%;
            background: #fff;
            border-radius: 1px;
            width: 0%;
            transition: width 0.1s linear;
        }

        .progress-bar.paused {
            transition: none;
        }

        .story-media-container {
            flex: 1;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #000;
        }

        #storyMedia img,
        #storyMedia video {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        #storyTextOverlay {
            position: absolute;
            bottom: 60px;
            left: 20px;
            right: 20px;
            color: #fff;
            font-size: 16px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.8);
            text-align: center;
        }

        .story-navigation {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
            pointer-events: none;
        }

        .story-nav {
            background: rgba(0,0,0,0.3);
            border: none;
            color: #fff;
            font-size: 24px;
            padding: 10px 15px;
            cursor: pointer;
            border-radius: 50%;
            pointer-events: all;
            transition: background 0.3s ease;
        }

        .story-nav:hover {
            background: rgba(0,0,0,0.6);
        }

        .story-nav.prev {
            margin-left: 15px;
        }

        .story-nav.next {
            margin-right: 15px;
        }

        .story-shortcuts-hint {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 15px;
            font-size: 11px;
            color: rgba(255,255,255,0.6);
            background: rgba(0,0,0,0.5);
            padding: 6px 12px;
            border-radius: 15px;
            backdrop-filter: blur(5px);
            opacity: 0;
            animation: fadeInHint 0.5s ease 2s forwards;
        }

        .story-shortcuts-hint span {
            display: flex;
            align-items: center;
            gap: 3px;
            font-weight: 500;
        }

        @keyframes fadeInHint {
            to {
                opacity: 1;
            }
        }

        /* 🆕 Mesaj Silme Stilleri */
        .delete_message_btn {
            opacity: 0.6;
            transition: all 0.3s ease;
        }

        .delete_message_btn:hover {
            opacity: 1 !important;
            background: rgba(237, 66, 69, 0.2) !important;
        }

        .delete_message_btn:hover img {
            filter: invert(18%) sepia(83%) saturate(6513%) hue-rotate(355deg) brightness(96%) contrast(95%) !important;
        }

        .message.deleting {
            opacity: 0.5;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .message.deleted {
            display: none;
        }

/* ========================================
   🎨 ELECTRON TITLEBAR UYUMLULUĞU
   ======================================== */

/* Electron'da body'ye padding ekle */
body.is-electron {
    padding-top: 40px !important;
}

/* Electron'da content alanını düzenle */
/* body.is-electron .content {
    padding-top: 64px !important;
} */

/* body.is-electron .user_profile_container {
    padding-top: 40px !important; 
} */

/* Electron'da welcome section'ı aşağı kaydır */
body.is-electron .welcome_section {
    margin-top: 40px !important;
}

/* Electron'da tüm content içindeki ilk elementi aşağı kaydır */
/* body.is-electron .content > div:first-child {
    margin-top: 40px !important;
} */

body.is-electron .group_chat_container {
    height: 93vh !important;
}

body.is-electron .messages_container {
    height: 93vh !important;
}
body.is-electron .profile_content{
    margin-bottom: 40px !important;
}