/* Fısıltı - Stabil Sürüm v5.1 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #6366F1;
    --accent-color: #EC4899;
    --dark-bg: #111827;
    --light-bg: #F9FAFB;
    --surface-color: #FFFFFF;
    --text-dark: #1F2937;
    --text-light: #F3F4F6;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --gradient-primary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =============================================== */
/* === ANA SAYFA (index.php) İÇİN STİLLER === */
/* =============================================== */
.home-page {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding-top: 80px;
}
.home-page .navbar {
    background: rgba(17, 24, 39, 0.8) !important;
    backdrop-filter: blur(10px);
}
.home-page .hero-section { padding: 60px 0; }
.home-page .hero-title { font-size: 3.2rem; font-weight: 800; }
.home-page .hero-buttons .btn { margin-top: 1rem; }
.home-page .hero-image { border-radius: 1rem; }
.home-page .features-section { padding: 80px 0; background-color: #1a2233; }
.home-page .feature-item {
    background-color: #2c3548;
    padding: 30px; border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.home-page .feature-item:hover { transform: translateY(-5px); }
.home-page .feature-icon {
    color: white; margin-bottom: 1.5rem;
    display: inline-flex; width: 64px; height: 64px;
    align-items: center; justify-content: center;
    background: var(--gradient-primary); border-radius: 1rem;
}
.home-page .feature-item h3 { color: var(--text-light); }

/* =============================================== */
/* === DASHBOARD ve İÇ SAYFALAR İÇİN STİLLER === */
/* =============================================== */
.dashboard-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--light-bg);
    padding-top: 72px; /* Sabit menü için boşluk */
}
.navbar-nav .dropdown-toggle img { width: 32px; height: 32px; object-fit: cover; }

.dashboard-container { max-width: 1320px; }

.panel {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.panel-header {
    font-size: 1.1rem; font-weight: 600; color: var(--text-dark);
    margin: -1.5rem -1.5rem 1.5rem -1.5rem; padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.panel-header i { margin-right: 0.75rem; color: var(--primary-color); }

.distance-selector { display: flex; background-color: #f3f4f6; border-radius: 50px; padding: 0.3rem; margin-bottom: 1.5rem; }
.distance-btn { flex: 1; padding: 0.5rem 0.5rem; border: none; background: transparent; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; border-radius: 50px; transition: all 0.3s ease; cursor: pointer; }
.distance-btn:hover { color: var(--text-dark); }
.distance-btn.active { background: var(--surface-color); color: var(--primary-color); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); font-weight: 600; }

.location-permission-prompt { text-align: center; padding: 2rem 1rem; }
.location-icon-container {
    font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem;
    width: 70px; height: 70px; background-color: #E0E7FF; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat-item { padding: 1rem; border-radius: 0.75rem; background-color: var(--light-bg); display: flex; align-items: center; }
.stat-icon { font-size: 1.5rem; margin-right: 1rem; color: var(--primary-color); opacity: 0.7; }
.stat-number { font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }

/* KULLANICI KARTLARI (Dashboard) */
#usersList { display: flex; flex-wrap: wrap; }
.user-card {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.3s ease;
}
.user-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.user-card-img { width: 80px; height: 80px; object-fit: cover; }
.user-card .online-status-badge {
    position: absolute; bottom: 5px; right: 5px;
    width: 15px; height: 15px; border-radius: 50%; border: 2px solid white;
}
.user-card .online-status-badge.online { background-color: #28a745; }
.user-card .online-status-badge.offline { background-color: #6c757d; }

/* PROFİL SAYFASI (view_profile.php) */
.profile-summary-card {
    border: none;
    border-top: 4px solid var(--primary-color);
}
.profile-avatar {
    width: 120px; height: 120px; object-fit: cover;
    margin-top: -60px;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.profile-username { font-weight: 700; font-size: 1.5rem; }
.profile-bio { font-size: 0.9rem; }
.profile-meta { display: flex; flex-direction: column; gap: 0.5rem; }
.profile-meta span { font-size: 0.9rem; }
.info-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border-color); }
.info-item:last-child { border-bottom: none; }
.info-item strong { color: var(--text-dark); }
.info-item span { color: var(--text-muted); }
.online-status-badge.online { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}









/* ========================================================= */
/* === SADECE view_profile.php SAYFASINA ÖZEL STİLLER === */
/* ========================================================= */

#view-profile-page {
    background: linear-gradient(to top, #dfe9f3 0%, white 100%);
}

#view-profile-page .profile-summary-card {
    border: none;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-top: 5px solid transparent;
    border-image: var(--gradient-primary) 1;
}

#view-profile-page .profile-avatar {
    width: 150px;
    height: 150px;
}

#view-profile-page .panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 1rem;
}

#view-profile-page .panel-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

#view-profile-page .info-item {
    background-color: rgba(255,255,255,0.4);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border: none;
}

#view-profile-page .profile-status-banner {
    font-size: 0.9rem;
    position: sticky;
    top: 72px; /* Navbar'ın yüksekliği kadar */
    z-index: 1020; /* Navbar'ın altında kalması için */
    border-bottom: 3px solid rgba(0,0,0,0.1);
}








/* ========================================================= */
/* === PROFİL SAYFASI - DETAYLI BİLGİ KARTLARI STİLLERİ === */
/* ========================================================= */

.info-card {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.info-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.info-card-content {
    display: flex;
    flex-direction: column;
}

.info-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.info-card-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}



















/* ========================================================= */
/* === DASHBOARD SAĞ SÜTUN (SIDEBAR) YENİ STİLLERİ === */
/* ========================================================= */

/* Hızlı Eylemler Kartları */
.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: var(--surface-color);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.action-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

/* İstatistik Kartları */
.stat-card {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    height: 100%;
}

.stat-card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.stat-card-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}











/* ========================================================= */
/* === PROFİL DÜZENLEME (profile.php) SAYFASI STİLLERİ === */
/* ========================================================= */

.profile-image-container {
    cursor: pointer;
}

.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image-container:hover .profile-image-overlay {
    opacity: 1;
}






/* ========================================================= */
/* === SADECE PROFİL DÜZENLEME (profile.php) SAYFASINA ÖZEL ZENGİN STİLLER === */
/* ========================================================= */

#profile-edit-page .panel {
    border: none;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.9);
}

#profile-edit-page .panel-header {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

#profile-edit-page .profile-avatar {
    width: 130px;
    height: 130px;
    border: 4px solid var(--surface-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

#profile-edit-page .form-label {
    font-weight: 600;
    color: var(--text-dark);
}

#profile-edit-page .form-control,
#profile-edit-page .form-select {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease-in-out;
}

#profile-edit-page .form-control:focus,
#profile-edit-page .form-select:focus {
    background-color: var(--surface-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

#profile-edit-page .btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
}

#profile-edit-page .btn-warning {
    background: linear-gradient(135deg, #fdc830, #f37335);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
}






/* ========================================================= */
/* === PROFİL DÜZENLEME - YENİ PROFİL RESMİ ALANI STİLLERİ === */
/* ========================================================= */

#profile-edit-page .profile-image-upload-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

#profile-edit-page .profile-avatar-edit {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid var(--surface-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: filter 0.3s ease;
}

#profile-edit-page .upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#profile-edit-page .profile-image-upload-wrapper:hover .upload-overlay {
    opacity: 1;
}

#profile-edit-page .profile-image-upload-wrapper:hover .profile-avatar-edit {
    filter: brightness(0.8);
}




/* ========================================================= */
/* === FAVORİLER SAYFASI - BOŞ UYARISI STİLİ === */
/* ========================================================= */

#favorite-users-list .location-icon-container i.fa-heart-crack {
    color: var(--accent-color);
}







/* ========================================================= */
/* === FAVORİLER SAYFASI (favorite_users.php) ÖZEL STİLLERİ === */
/* ========================================================= */

#favorites-page .favorite-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background-color: var(--surface-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

#favorites-page .favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#favorites-page .card-header-custom {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

#favorites-page .favorite-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 3px solid var(--surface-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-right: 1rem;
}

#favorites-page .favorite-username {
    font-weight: 600;
    color: var(--text-dark);
}

#favorites-page .card-body-custom {
    padding: 1rem;
    flex-grow: 1;
}

#favorites-page .status-indicator {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

#favorites-page .status-indicator.online {
    background-color: rgba(40, 167, 69, 0.1);
    color: #1a7431;
}

#favorites-page .status-indicator.offline {
    background-color: rgba(108, 117, 125, 0.1);
    color: #495057;
}

#favorites-page .status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

#favorites-page .status-indicator.online .status-dot {
    background-color: #28a769;
    animation: pulse 2s infinite;
}

#favorites-page .status-indicator.offline .status-dot {
    background-color: #6c757d;
}

#favorites-page .card-footer-custom {
    padding: 1rem;
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}




















/* ========================================================= */
/* === PROFİL SAYFASI - DETAYLI BİLGİ KARTLARI STİLLERİ === */
/* ========================================================= */

.info-card {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left-color: var(--primary-color);
}

.info-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.info-card-content {
    display: flex;
    flex-direction: column;
}

.info-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.info-card-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}


















/* ========================================================= */
/* === SOHBET ARAYÜZÜ (chat.php) ANA STİLLERİ === */
/* ========================================================= */
#chat-app-container {
    display: flex;
    height: calc(100vh - 72px); 
    position: fixed;
    width: 100%;
    left: 0;
    bottom: 0;
}
.chat-sidebar {
    width: 350px; flex-shrink: 0; border-right: 1px solid var(--border-color);
    background-color: var(--surface-color); display: flex; flex-direction: column;
}
.sidebar-header {
    display: flex; align-items: center; padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-header h5 { margin-left: 1rem; }
.search-bar { padding: 1rem; position: relative; }
.search-bar .fa-search {
    position: absolute; left: 2rem; top: 50%;
    transform: translateY(-50%); color: var(--text-muted);
}
.search-bar .form-control { border-radius: 20px; padding-left: 2.5rem; background-color: var(--light-bg); }
.conversation-list { flex-grow: 1; overflow-y: auto; }
.conversation-item {
    display: flex; padding: 1rem; cursor: pointer;
    transition: background-color: 0.2s ease; border-bottom: 1px solid var(--border-color);
}
.conversation-item:hover { background-color: var(--light-bg); }
.conversation-item.active { background-color: #e9ecef; }
.user-avatar { width: 50px; height: 50px; object-fit: cover; }
.convo-details { flex-grow: 1; margin-left: 1rem; overflow: hidden; }
.convo-header, .convo-message { display: flex; justify-content: space-between; align-items: center; }
.convo-username { font-weight: 600; white-space: nowrap; }
.convo-message { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.status-dot-sidebar {
    position: absolute; bottom: 2px; right: 2px;
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid var(--surface-color);
}
.status-dot-sidebar.online { background-color: #28a745; }
.status-dot-sidebar.offline { background-color: #6c757d; }
.typing-indicator { color: var(--primary-color); font-weight: 600; font-style: italic; }

.chat-main { flex-grow: 1; display: flex; flex-direction: column; }
.chat-window { width: 100%; height: 100%; display: flex; flex-direction: column; }
#chat-welcome-screen { align-items: center; justify-content: center; background-color: var(--light-bg); }
.active-chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color);
    background-color: var(--surface-color);
}
.chat-messages { flex-grow: 1; overflow-y: auto; padding: 1.5rem; background-color: #f1f5f9; }
.message-group { display: flex; align-items: flex-end; margin-bottom: 1rem; max-width: 70%; }
.message-group.sent { margin-left: auto; flex-direction: row-reverse; }
.message-avatar { width: 40px; height: 40px; margin: 0 0.75rem; flex-shrink: 0; }
.message-bubble { padding: 0.75rem 1.25rem; border-radius: 1.25rem; word-wrap: break-word; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.message-group.sent .message-bubble { background: var(--primary-color); color: white; }
.message-group.received .message-bubble { background: var(--surface-color); border: 1px solid var(--border-color); }
.message-group.sent .message-avatar { display: none; }

.chat-input-area { position: relative; padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); background-color: var(--surface-color); }
.chat-input-area form { gap: 0.5rem; }
.chat-input-area textarea { padding: 0.5rem 40px 0.5rem 1rem; border-radius: 20px; resize: none; max-height: 120px; }
.emoji-btn {
    position: absolute; right: 5px; top: 50%;
    transform: translateY(-50%); z-index: 4; border: none;
    opacity: 0.6; background: transparent;
}
.emoji-btn:hover { opacity: 1; }
.chat-input-area .btn {
    border-radius: 50%; width: 42px; height: 42px;
    flex-shrink: 0; display: inline-flex;
    align-items: center; justify-content: center;
}
.attachment-wrapper { position: relative; }
.attachment-menu {
    position: absolute; bottom: 110%; left: 0;
    background-color: var(--surface-color); border: 1px solid var(--border-color);
    border-radius: 0.75rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 0.5rem; display: flex; flex-direction: column;
    gap: 0.25rem; width: 200px; z-index: 1050;
}
.attachment-menu button {
    display: flex; align-items: center; width: 100%;
    border-radius: 0.5rem; text-align: left; background: transparent;
    border: none; padding: 0.75rem; font-weight: 500;
}
.attachment-menu button:hover { background-color: var(--light-bg); color: var(--primary-color); }
.attachment-menu button i { width: 20px; margin-right: 0.75rem; text-align: center; }
.emoji-picker-container {
    position: absolute; bottom: 100%; right: 0; width: 300px;
    background: var(--surface-color); border: 1px solid var(--border-color);
    border-radius: 0.75rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 0.5rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.25rem;
}
.chat-media-image, .chat-media-video { max-width: 100%; max-height: 300px; border-radius: 0.75rem; }
.message-bubble audio { width: 100%; max-width: 250px; }
.voice-recorder-wrapper {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 0.5rem;
}
.recording-indicator {
    width: 16px; height: 16px; background-color: #dc3545;
    border-radius: 50%; animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* ========================================================= */
/* === PROFESYONEL SOHBET GÖNDERİM ALANI STİLLERİ === */
/* ========================================================= */
.chat-input-area { position: relative; padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); background-color: var(--surface-color); }
.chat-input-area form { gap: 0.5rem; }
.chat-input-area textarea { padding-right: 40px; border-radius: 20px; resize: none; }
.emoji-btn {
    position: absolute; right: 5px; top: 50%;
    transform: translateY(-50%); z-index: 4; border: none;
    opacity: 0.6; background: transparent;
}
.emoji-btn:hover { opacity: 1; }
.chat-input-area .btn {
    border-radius: 50%; width: 42px; height: 42px;
    flex-shrink: 0; display: inline-flex;
    align-items: center; justify-content: center;
}
.attachment-wrapper { position: relative; }
.attachment-menu {
    position: absolute; bottom: 110%; left: 0;
    background-color: var(--surface-color); border: 1px solid var(--border-color);
    border-radius: 0.75rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 0.5rem; display: flex; flex-direction: column;
    gap: 0.25rem; width: 200px; z-index: 1050;
}
.attachment-menu button {
    display: flex; align-items: center; width: 100%;
    border-radius: 0.5rem; text-align: left; background: transparent;
    border: none; padding: 0.75rem; font-weight: 500;
}
.attachment-menu button:hover { background-color: var(--light-bg); color: var(--primary-color); }
.attachment-menu button i { width: 20px; margin-right: 0.75rem; text-align: center; }
.emoji-picker-container {
    position: absolute; bottom: 100%; right: 0; width: 300px;
    background: var(--surface-color); border: 1px solid var(--border-color);
    border-radius: 0.75rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 0.5rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.25rem;
}
.chat-media-image, .chat-media-video { max-width: 100%; max-height: 300px; border-radius: 0.75rem; }
.message-bubble audio { width: 100%; max-width: 250px; }
.voice-recorder-wrapper {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 0.5rem;
}
.recording-indicator {
    width: 16px; height: 16px; background-color: #dc3545;
    border-radius: 50%; animation: pulse 1.5s infinite;
}







/* ========================================================= */
/* === SAYFA YAPI DÜZELTMELERİ === */
/* ========================================================= */

/* Dashboard sayfaları için sabit menü boşluğu */
.dashboard-page {
    padding-top: 72px; 
}

/* Sohbet sayfası için üst boşluğu sıfırla */
.chat-page-body {
    padding-top: 0 !important;
}















/* --- Sohbet Menüsü Gizle/Göster Stilleri --- */

.chat-sidebar {
    /* Animasyonun pürüzsüz olması için transition ekliyoruz */
    transition: margin-left 0.35s ease-in-out;
}

#chat-app-container.sidebar-hidden .chat-sidebar {
    /* Bu class eklendiğinde sidebar, genişliği kadar sola kayarak gizlenir */
    margin-left: -350px;
}

#sidebar-toggle-btn {
    /* Butonun diğer elementlerle hizalı ve şık durması için */
    border-radius: 50%;
    width: 42px;
    height: 42px;
}













/* --- NIHAI SES OYNATICI GÖRÜNÜRLÜK GARANTİSİ --- */

.message-bubble audio.standart-oynatici {
    display: inline-block !important;
    width: 250px !important;
    height: 40px !important;
    background-color: #f1f5f9; /* Açık gri arkaplan */
    border-radius: 20px;       /* Kenarları yuvarlat */
    padding: 5px;              /* İç boşluk */
    border: 1px solid #e2e8f0; /* İnce bir kenarlık */
}

/* Gönderilen mesaj balonlarındaki oynatıcının kontrol renklerini ayarla */
.message-group.sent .message-bubble audio.standart-oynatici {
    filter: invert(1);
}













.video-wrapper {
    position: relative;
    display: inline-block;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0.8;
    text-shadow: 0 0 15px rgba(0,0,0,0.7);
    pointer-events: none; /* İkonun tıklamayı engellememesi için */
    transition: all 0.2s ease;
}

.video-wrapper:hover .video-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}





#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}












/* =================================================================
   YENİ KULLANICI KARTI TASARIMI (V2)
   ================================================================= */

.user-card-v2 {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.user-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

.user-card-v2-header {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.user-card-v2-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.online-indicator-v2 {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background-color: #28a745;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 2;
}

.user-card-v2-body {
    padding: 1.5rem;
    padding-top: 50px; /* Avatar için yer aç */
    position: relative;
    text-align: center;
    flex-grow: 1;
}

.user-card-v2-avatar-container {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.user-card-v2-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
    object-fit: cover;
}

.user-card-v2-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #343a40;
}

.user-card-v2-bio {
    font-size: 0.9rem;
    color: #6c757d;
    min-height: 40px; /* 2 satır için yer ayır */
    margin-bottom: 1rem;
}

.user-card-v2-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.user-card-v2-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

.user-card-v2-actions {
    padding: 1rem;
    background-color: #f8f9fa;
    display: flex;
    gap: 0.5rem;
}

.user-card-v2-actions .btn {
    flex: 1;
}