/* GENEL SIFIRLAMA VE TEMEL STİLLER */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Mobil tıklama vurgusunu kaldır */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #12121f; /* Koyu tema ana arka plan */
    color: #e0e0e0; /* Genel metin rengi */
    line-height: 1.6;
    overflow-x: hidden; /* Yatay scrollbar'ı engelle */
}

/* YENİ YÜKLEME EKRANI STİLLERİ */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #12121f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
    padding: 20px;
}
#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
@keyframes rgb-text-animation {
    0% { color: #ff4747; text-shadow: 0 0 8px #ff4747, 0 0 15px #ff4747aa; }
    16% { color: #ff8c47; text-shadow: 0 0 8px #ff8c47, 0 0 15px #ff8c47aa; }
    33% { color: #ffea47; text-shadow: 0 0 8px #ffea47, 0 0 15px #ffea47aa; }
    50% { color: #47ff73; text-shadow: 0 0 8px #47ff73, 0 0 15px #47ff73aa; }
    66% { color: #47aeff; text-shadow: 0 0 8px #47aeff, 0 0 15px #47aeffaa; }
    83% { color: #8c47ff; text-shadow: 0 0 8px #8c47ff, 0 0 15px #8c47ffaa; }
    100% { color: #ff47ea; text-shadow: 0 0 8px #ff47ea, 0 0 15px #ff47eaaa; }
}
#loading-title-rgb {
    font-size: 3.8em;
    font-weight: bold;
    margin-bottom: 40px;
    animation: rgb-text-animation 6s infinite linear alternate;
    letter-spacing: 1px;
}
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px;
}
#loading-status-main {
    color: #e8e8e8;
    font-size: 1.6em;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center;
}
.progress-bar-container {
    width: 100%;
    height: 18px;
    background-color: #28283c;
    border-radius: 9px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid #3a3a5c;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}
#progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #7832ff, #5e33d1, #8c47ff);
    background-size: 200% 100%;
    border-radius: 9px;
    transition: width 0.3s ease-out;
    animation: progress-bar-shine 2s infinite linear;
}
@keyframes progress-bar-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
#loading-status-detail {
    color: #b0b0c0;
    font-size: 1.05em;
    min-height: 1.3em;
    text-align: center;
    margin-top: 10px;
}


.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Hata ve Durum Mesajları (Genel) */
.error-text {
    color: #ff6b81;
    margin-top: 15px;
    min-height: 20px;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
}
.status-text {
    margin-top: 10px;
    min-height: 20px;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
}
.status-text.success-text {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 4px solid #2ecc71;
    padding: 10px 15px;
    border-radius: 5px;
    color: #2ecc71;
    text-align: left;
}
.status-text.error-text {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 10px 15px;
    border-radius: 5px;
    color: #e74c3c;
    text-align: left;
}


/* AUTH STYLES (Giriş/Kayıt Ekranı) */
#view-auth-wrapper {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    background-color: #1a1a2e;
    padding: 20px;
}
.auth-container {
    background-color: rgba(36, 36, 62, 0.9);
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(120, 50, 255, 0.2);
    width: 100%;
    max-width: 420px;
    text-align: center;
    border: 1px solid rgba(120, 50, 255, 0.25);
}
.auth-container h1 {
    color: #fff;
    font-size: 3.2em;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 0 0 12px rgba(120, 50, 255, 0.6);
}
.auth-container #view-landing p {
    font-size: 1.1em;
    color: #b0b0c0;
    margin-bottom: 35px;
}
.auth-container h2 {
    color: #fff;
    font-size: 1.9em;
    margin-bottom: 30px;
}
.auth-container input[type="email"],
.auth-container input[type="password"],
.auth-container input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #4f4f7a;
    border-radius: 8px;
    background-color: rgba(26, 26, 46, 0.8);
    color: #e0e0e0;
    font-size: 1em;
}
.auth-container input:focus {
    outline: none;
    border-color: #7832ff;
    box-shadow: 0 0 0 3px rgba(120, 50, 255, 0.3);
}
.auth-container button {
    background: linear-gradient(45deg, #5e33d1, #7832ff);
    color: white;
    padding: 16px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    width: 100%;
    transition: all 0.25s ease-in-out;
    margin-top: 15px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    letter-spacing: 0.5px;
}
.auth-container button:hover {
    background: linear-gradient(45deg, #4a1bad, #6a25e0);
    box-shadow: 0 6px 18px rgba(120, 50, 255, 0.35);
    transform: translateY(-2px);
}
.auth-container button:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.auth-container #view-landing button {
    width: 100%;
    margin: 15px 0;
    display: block;
}
.auth-container a {
    color: #82aaff;
    text-decoration: none;
    font-size: 0.9em;
}
.auth-container a:hover {
    text-decoration: underline;
}
#auth-error-message.error-text {
    color: #ff6b81;
    margin-top: 18px;
    min-height: 22px;
}
#auth-error-message.success-text {
    color: #2ecc71;
    margin-top: 18px;
    min-height: 22px;
}


/* MAIN APP STYLES */
#view-main-app {
    display: none;
    width: 100%;
    flex-direction: row;
    position: relative;
    height: 100vh;
    overflow: hidden;
}
#sidebar-toggle-button {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1005;
    background-color: #30304a;
    color: #fff;
    border: none;
    padding: 9px 12px;
    font-size: 1.4em;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
#sidebar-toggle-button:hover {
    background-color: #4f4f7a;
}
.sidebar {
    width: 250px;
    background-color: #1e1e30;
    color: #adb5bd;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 3px 0 12px rgba(0,0,0,0.35);
    transform: translateX(0);
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
}
.sidebar-header {
    padding: 20px 15px;
    font-size: 1.7em;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #30304a;
    color: #fff;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-header .header-logo-icon {
    display:none;
    font-weight: bold;
}
.main-nav ul {
    list-style-type: none;
    padding: 15px 0;
    margin: 0;
}
.main-nav ul li a {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: #adb5bd;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-left-color 0.2s ease;
    border-left: 4px solid transparent;
    font-size: 0.98em;
    overflow: hidden;
    white-space: nowrap;
    position:relative;
}
.main-nav ul li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 1.15em;
    transition: transform 0.2s ease;
}
.main-nav ul li a .nav-text {
    white-space: nowrap;
    flex-grow: 1;
}
.main-nav ul li a:hover {
    background-color: #2c2c50;
    color: #fff;
}
.main-nav ul li a:hover i {
    transform: scale(1.1);
}
.main-nav ul li a.active {
    background-color: #3a3a5f;
    color: #fff;
    border-left-color: #7832ff;
    font-weight: 600;
}
.notification-badge {
    background-color: red;
    color: white;
    border-radius: 10px;
    padding: 2px 7px;
    font-size: 0.75em;
    font-weight: bold;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    min-width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.notification-badge.green { background-color: #2ecc71; }
.notification-badge.small {
    padding: 1px 6px;
    font-size: 0.7em;
    min-width: 18px;
    height: 18px;
    position: static;
    margin-left: 8px;
    display: inline-flex;
}
.sidebar-footer {
    margin-top: auto;
    padding: 15px;
    border-top: 1px solid #30304a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.profile-icon-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #adb5bd;
    padding: 8px 10px;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    flex-grow: 1;
    margin-right: 10px;
    overflow: hidden;
}
.profile-icon-container:hover {
    background-color: #2c2c50;
    color: #fff;
}
#sidebar-profile-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 1px solid #4f4f7a;
}
#sidebar-username {
    font-size: 0.92em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#btn-logout {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 1.5em;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: color 0.2s, background-color 0.2s;
}
#btn-logout:hover {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
}
.content-area {
    flex-grow: 1;
    padding: 25px 35px;
    background-color: #12121f;
    overflow-y: auto;
    height: 100%;
    margin-left: 250px;
    transition: margin-left 0.3s ease-in-out;
}
#content-title {
    color: #fff;
    font-size: 2.1em;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #30304a;
    text-align: center;
    position: relative;
}
.content-section {
    background-color: #1e1e30;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.content-section:last-child {
    margin-bottom: 0;
}
.content-section h3 {
    color: #e8e8e8;
    border-bottom: 1px solid #4a4a6a;
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.6em;
    text-align: left;
    font-weight: 600;
}
.search-bar-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.search-bar-container input[type="text"] {
    flex-grow: 1;
    padding: 10px 15px;
    font-size: 1em;
    border: 1px solid #4f4f7a;
    border-radius: 6px;
    background-color: #24243e;
    color: #e0e0e0;
    width: auto;
}
.search-bar-container input[type="text"]:focus {
    outline: none;
    border-color: #7832ff;
    box-shadow: 0 0 0 2px rgba(120, 50, 255, 0.2);
}
.search-bar-container button {
    padding: 10px 15px;
    background-color: #7832ff;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    width: auto;
    margin: 0;
}
.search-bar-container button:hover {
    background-color: #5c27b0;
}
#search-results-list-modal,
#friend-requests-list,
#current-friends-list,
#active-chats-list,
#user-groups-list {
    list-style-type: none;
    padding: 0;
}
#search-results-list-modal li,
#friend-requests-list li,
#current-friends-list li,
#active-chats-list li,
#user-groups-list li {
    display: flex;
    align-items: center;
    padding: 12px 5px;
    border-bottom: 1px solid #30304a;
    transition: background-color 0.2s;
}
#search-results-list-modal li:last-child,
#friend-requests-list li:last-child,
#current-friends-list li:last-child,
#active-chats-list li:last-child,
#user-groups-list li:last-child {
    border-bottom: none;
}
#active-chats-list li:hover,
#user-groups-list li:hover {
    background-color: #2c2c50;
    border-radius: 4px;
}
#active-chats-list li {
    cursor: pointer;
}
#active-chats-list li:active {
    background-color: #3a3a5f;
}
#user-groups-list li {
    padding: 15px 10px;
    cursor: pointer;
    border-radius: 6px;
}
#search-results-list-modal li .search-result-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.result-avatar, .request-avatar, .friend-avatar, .chat-list-avatar, .group-list-avatar, .chat-avatar-header, .group-chat-avatar-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    flex-shrink: 0;
    position: relative;
    background-color: #4f4f7a;
}
.profile-page-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4f4f7a;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.chat-list-avatar, .group-list-avatar {
    width: 45px;
    height: 45px;
}
.chat-avatar-header, .group-chat-avatar-header {
    width: 40px;
    height: 40px;
}
.group-list-avatar {
    background-color: #5a5a7a;
}
.status-dot {
    height: 11px;
    width: 11px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #1e1e30;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
}
.status-dot.online {
    background-color: #2ecc71;
    box-shadow: 0 0 6px #2ecc71, 0 0 3px rgba(0,0,0,0.5);
}
.status-dot.offline {
    background-color: #e74c3c;
    box-shadow: 0 0 5px #e74c3c, 0 0 3px rgba(0,0,0,0.5);
}
.status-dot.unknown {
    background-color: #f39c12;
    display: none;
}
.chat-partner-info {
    position: relative;
    margin-right: 12px;
    display: inline-block;
}
.chat-partner-info .status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    border-color: #1e1e30;
}
#chat-with-username-header .status-dot {
    margin-left: 8px;
    height: 10px;
    width: 10px;
    border-width: 1.5px;
    vertical-align: middle;
}
#current-friends-list li .friend-avatar + .status-dot,
#active-chats-list li .chat-list-avatar + .status-dot {
    height: 10px;
    width: 10px;
    border: 1.5px solid #1e1e30;
    position: relative;
    left: -16px;
    bottom: -14px;
    z-index: 1;
}
#current-friends-list li .friend-username .status-dot,
#active-chats-list li .chat-list-username .status-dot {
    height: 10px;
    width: 10px;
    border: 1.5px solid #1e1e30;
    margin-right: 8px;
    vertical-align: middle;
}

.result-username, .request-username, .friend-username, .chat-list-username, .group-list-name {
    font-weight: bold;
    color: #fff;
    flex-grow: 1;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.group-list-name { font-size: 1.05em; margin-bottom: 3px; }
.group-list-last-message, .chat-list-last-message {
    font-size: 0.88em;
    color: #9090a0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.username-blocked {
    font-style: italic;
    color: #7f8c8d !important;
}
.icon-button {
    background: none;
    border: 1px solid transparent;
    color: #adb5bd;
    padding: 7px 9px;
    font-size: 1em;
    width: auto;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
    cursor:pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.icon-button i { pointer-events: none; }
.icon-button:hover {
    background-color: #2c2c50;
    color: #fff;
    border-color: #4f4f7a;
}
.icon-button.success { color: #2ecc71; }
.icon-button.success:hover { background-color: rgba(46,204,113,0.1); border-color: #2ecc71; }
.icon-button.danger { color: #e74c3c; }
.icon-button.danger:hover { background-color: rgba(231,76,60,0.1); border-color: #e74c3c;}
.icon-button.disabled-text, .icon-button:disabled {
    background: #555e68 !important;
    color: #909090 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    border-color: transparent !important;
    opacity: 0.6;
}
.icon-button .button-text-sr {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.btn-add-friend {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    padding: 7px 12px;
    font-size: 0.9em;
    border: none;
    border-radius: 6px;
    font-weight: 600;
}
.btn-add-friend:hover {
    background: linear-gradient(45deg, #229954, #29b765);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(46,204,113,0.25);
}
.btn-add-friend:disabled {
    background: #555e68 !important;
    color: #909090 !important;
}

#no-results-message-modal, #no-friend-requests-message, #no-current-friends-message, #no-active-chats-message, #no-user-groups-message, #no-group-members-for-call-message {
    text-align: center;
    color: #888;
    margin-top: 25px;
    font-style: italic;
}
.friend-requests-section { margin-bottom: 30px; }
.friend-requests-section h4,
#content-friends > .friends-header-action + .friend-requests-section + hr + h4,
#content-chats-list h3 {
    color: #c0c0d0;
    font-size: 1.15em;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #4f4f7a;
}
.friends-header-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.friends-header-action > h3 {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    font-size: 1.6em;
}
.friends-header-action .icon-button {
    padding: 8px 10px;
    font-size: 1.1em;
}
.chat-list-meta {
    text-align:right;
    font-size:0.8em;
    color:#777;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    min-width:50px;
    margin-left: auto;
}
.chat-list-timestamp { margin-bottom: 4px; }
.friend-actions, .request-actions, .search-result-actions .icon-button + .icon-button {
    margin-left: auto;
    display: flex;
    gap: 8px;
}
.request-actions button {
    padding: 6px 10px;
    font-size: 0.85em;
    width: auto;
    min-width: 40px;
    margin-top:0;
}
.section-divider {
    border: none;
    border-top: 1px dashed #4f4f7a;
    margin: 25px 0;
}

/* CHAT INTERFACE */
.chat-interface {
    display: none;
    flex-direction: column;
    height: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #181828;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}
.chat-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #1e1e30;
    border-bottom: 1px solid #30304a;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    flex-shrink: 0;
    position: relative;
}
.chat-back-button {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 1.2em;
    margin-right: 15px;
    padding: 5px;
    cursor: pointer;
}
.chat-back-button:hover {
    color: #fff;
    background-color: #2a2a4a;
}
#chat-with-username-header,
#group-chat-name-header {
    font-size: 1.25em;
    color: #fff;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}
.chat-header .chat-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-header .chat-header-actions .icon-button {
    font-size: 1.1em;
    padding: 8px;
    background-color: transparent;
    border-radius: 50%;
}
.chat-header .chat-header-actions .icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.chat-header .chat-header-actions .icon-button.danger:hover {
    background-color: rgba(231, 76, 60, 0.2);
}
.chat-header #btn-voice-call,
.chat-header #btn-start-group-voice-call {
    color: #2ecc71;
}
.chat-header #btn-voice-call:hover,
.chat-header #btn-start-group-voice-call:hover {
    background-color: rgba(46, 204, 113, 0.15);
}
.chat-messages-container {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
#chat-messages-list,
#group-chat-messages-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

li.system-message {
    align-self: center;
    color: #aaa;
    font-style: italic;
    font-size: 0.9em;
    padding: 8px 15px;
    max-width: 100%;
    text-align: center;
    background-color: rgba(79, 79, 122, 0.15);
    border-radius: 20px;
    margin: 10px 0;
}
li.system-message.error {
    color: #e74c3c;
    font-weight: bold;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 6px;
}
li.system-message .system-message-icon {
    margin-right: 8px;
}

#chat-typing-indicator,
#group-chat-typing-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 0 20px 10px;
    min-height: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
#chat-typing-indicator.active,
#group-chat-typing-indicator.active {
    opacity: 1;
    display: flex;
}

.chat-input-container {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #30304a;
    background-color: #1e1e30;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    flex-shrink: 0;
    position: relative; 
}
.chat-file-upload-button {
    margin-right: 10px;
    font-size: 1.2em;
    color: #adb5bd;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}
.chat-file-upload-button:hover {
    background-color: #2c2c50;
    color: #fff;
}
#chat-message-input,
#group-chat-message-input {
    flex-grow: 1;
    padding: 12px 18px;
    border: 1px solid #4f4f7a;
    border-radius: 22px;
    background-color: #24243e;
    color: #e0e0e0;
    font-size: 1em;
    resize: none;
}
#chat-message-input:focus,
#group-chat-message-input:focus {
    outline: none;
    border-color: #7832ff;
}
#chat-message-input:disabled,
#group-chat-message-input:disabled {
    background-color: #2a2a3a;
    cursor: not-allowed;
}
#btn-send-chat-message,
#btn-send-group-chat-message {
    background-color: #7832ff;
    border: none;
    color: white;
    height: 44px;
    width: 44px;
    border-radius: 50%;
    font-size: 1em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: background-color 0.2s;
    padding: 0;
    flex-shrink: 0;
}
#btn-send-chat-message i,
#btn-send-group-chat-message i {
    font-size: 1.25em;
}
#btn-send-chat-message:hover,
#btn-send-group-chat-message:hover {
    background-color: #5c27b0;
}
#btn-send-chat-message:disabled,
#btn-send-group-chat-message:disabled {
    background-color: #4a4a6a;
    cursor: not-allowed;
    opacity: 0.7;
}

/* MESAJ TASARIMLARI */
.message-item {
    display: flex;
    max-width: 80%;
    position: relative;
    margin-bottom: 15px;
    align-items: flex-start;
}
.message-item.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.message-item.received {
    align-self: flex-start;
}
.message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #4f4f7a;
    margin: 0 10px;
    margin-top: auto;
    transform: translateY(-2px);
    flex-shrink: 0;
}
#content-chat .message-item.sent .message-avatar {
    display: none;
}
#content-group-chat .message-item.sent .message-avatar {
    margin-left: 10px;
    margin-right: 0;
}
.message-item.is-consecutive {
    margin-top: -12px;
}
.message-item.is-consecutive .message-header { display: none; }
.message-item.is-consecutive .message-avatar { visibility: hidden; }

.message-container {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}
.message-item.sent .message-container {
    align-items: flex-end;
}
.message-item.received .message-container {
    align-items: flex-start;
}
.message-body {
    display: flex;
    flex-direction: column;
}
.message-item.sent .message-body {
    align-items: flex-end;
}
.message-item.received .message-body {
    align-items: flex-start;
}
.message-content {
    padding: 10px 16px;
    border-radius: 18px;
    line-height: 1.45;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    user-select: text;
    cursor: pointer;
}
.message-item.sent .message-content {
    background-color: #7832ff;
    color: white;
    border-top-right-radius: 6px;
}
.message-item.received .message-content {
    background-color: #3a3a5f;
    color: #e0e0e0;
    border-top-left-radius: 6px;
}
.message-meta {
    display: flex;
    align-items: center;
    margin-top: 4px;
    padding: 0 8px;
}
.message-timestamp {
    font-size: 0.75em;
    color: #888;
}
.message-status {
    font-size: 0.8em;
    margin-left: 5px;
}
.message-status.sent { color: #aaaaaa; }
.message-status.read { color: #53bdeb; font-weight: bold; }
.edited-indicator {
    font-size: 0.7em;
    color: #999;
    font-style: italic;
    margin-right: 5px;
}
.message-item.sent .message-meta .edited-indicator {
    order: -1;
    margin-right: 0;
    margin-left: 5px;
}
.deleted-message-text {
    font-style: italic;
    color: #999;
    font-size: 0.95em;
}
.deleted-message-text i {
    margin-right: 5px;
}
.message-item.deleted {
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 5px 0;
}
.message-item.deleted .message-content {
    background-color: transparent !important;
    padding: 4px 12px;
    box-shadow: none;
    text-align: center;
}
.message-item.deleted .deleted-message-text {
    font-style: italic;
    color: #8899a6;
    font-size: 0.9em;
}

/* GRUP SOHBET TASARIMI */
.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding-left: 2px;
}
.message-sender-name {
    color: #c0c0d0;
    font-size: 0.95em;
    font-weight: 600;
}
.message-sender-role {
    font-size: 0.8em;
    margin-left: 8px;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: bold;
}
.message-sender-role.creator { background-color: #f1c40f; color: #333; }
.message-sender-role.admin { background-color: #3498db; color: white; }
#content-group-chat .message-avatar {
    cursor: pointer;
}

/* MESAJ ETKİLEŞİM STİLLERİ */
.reply-context {
    background-color: rgba(44, 44, 80, 0.6);
    padding: 6px 12px;
    margin-bottom: 6px;
    border-left: 3px solid #7832ff;
    border-radius: 0 6px 6px 0;
    font-size: 0.9em;
    cursor: pointer;
    display: block;
    max-width: 100%;
}
.reply-context .reply-sender-name {
    font-weight: bold;
    color: #82aaff;
}
.reply-context .reply-text {
    color: #c0c0d0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-top: 2px;
}
.forwarded-info {
    display: flex;
    align-items: center;
    font-size: 0.85em;
    color: #aaa;
    margin-bottom: 5px;
    font-style: italic;
}
.forwarded-info i {
    margin-right: 6px;
}
.message-edit-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.message-edit-container textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #7832ff;
    border-radius: 6px;
    background-color: #24243e;
    color: #e0e0e0;
    font-size: 1em;
    resize: vertical;
    min-height: 40px;
    margin-bottom: 8px;
    outline: none;
}
.message-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    font-size: 0.85em;
}
.message-edit-actions button {
    padding: 4px 10px;
    background-color: #4f4f7a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.message-edit-actions button.save {
    background-color: #2ecc71;
}
.reply-preview-container {
    padding: 8px 15px;
    background-color: #24243e;
    border-top: 1px dashed #4f4f7a;
    display: none;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.reply-preview-content {
    color: #ccc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reply-preview-content i {
    margin-right: 8px;
    color: #82aaff;
}
.reply-preview-content strong {
    color: #82aaff;
}
.reply-preview-container .btn-cancel-reply {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: color 0.2s;
}
.reply-preview-container .btn-cancel-reply:hover {
    color: #e74c3c;
}
#chat-file-upload-progress-container,
#group-chat-file-upload-progress-container {
    padding: 0 20px 5px;
    display: none;
    margin-top: -5px;
}
#chat-file-upload-progress-container progress,
#group-chat-file-upload-progress-container progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 3px;
}
#chat-file-upload-progress-container progress::-webkit-progress-bar,
#group-chat-file-upload-progress-container progress::-webkit-progress-bar {
    background-color: #30304a;
}
#chat-file-upload-progress-container progress::-webkit-progress-value,
#group-chat-file-upload-progress-container progress::-webkit-progress-value {
    background-color: #7832ff;
    transition: width 0.1s ease;
}
#chat-file-upload-progress-container progress::-moz-progress-bar,
#group-chat-file-upload-progress-container progress::-moz-progress-bar {
    background-color: #7832ff;
    border-radius: 3px;
}
#chat-file-upload-filename,
#group-chat-file-upload-filename {
    font-size: 0.8em;
    color: #aaa;
    display: block;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-content img.chat-image-preview,
.message-content video.chat-video-preview {
    max-width: 100%;
    max-height: 250px;
    border-radius: 10px;
    margin-top: 8px;
    display: block;
    background-color: #2a2a4a;
    cursor: zoom-in;
}
.message-content a + img.chat-image-preview,
.message-content a + video.chat-video-preview {
    margin-top: 10px;
}

#image-preview-modal {
    background-color: rgba(0,0,0,0.85);
}
#image-preview-modal img {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    margin: auto;
    border-radius: 5px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

.typing-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}
.typing-text {
    font-style: italic;
    color: #aaa;
    font-size: 0.88em;
    margin-right: 8px;
}
.typing-bubble-container {
    display: flex;
    align-items: center;
}
.typing-bubble-container span {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #8e8e93;
    border-radius: 50%;
    display: inline-block;
    animation: typing-bubble-animation 1.4s infinite ease-in-out both;
}
.typing-bubble-container span:nth-child(1) {
    animation-delay: -0.32s;
}
.typing-bubble-container span:nth-child(2) {
    animation-delay: -0.16s;
}
@keyframes typing-bubble-animation {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}
.context-menu {
    position: absolute;
    display: none;
    z-index: 1500;
    background-color: #2c2c50;
    border: 1px solid #4f4f7a;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    padding: 6px 0;
    min-width: 180px;
    overflow: hidden;
    list-style-type: none;
    margin: 0;
    user-select: none;
}
.context-menu ul { list-style: none; padding: 0; margin: 0; }
.context-menu li {
    padding: 10px 18px;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}
.context-menu li i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    color: #b0c0d0;
    transition: color 0.2s;
}
.context-menu li:hover {
    background-color: #7832ff;
    color: #fff;
}
.context-menu li:hover i {
    color: #fff;
}
.context-menu li.danger-action:hover {
    background-color: #e74c3c;
}
.context-menu li.disabled {
    color: #777;
    cursor: not-allowed;
    background-color: transparent !important;
}
.context-menu li.disabled i {
    color: #555 !important;
}
.context-menu .context-menu-divider {
    height: 1px;
    background-color: #4f4f7a;
    margin: 6px 0;
    padding: 0;
    cursor: default;
}
.context-menu .context-menu-divider:hover {
    background-color: #4f4f7a;
}
#forward-message-modal .modal-content {
    max-width: 450px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
#forward-message-modal h2 { font-size: 1.5em; margin-bottom: 20px; }
.forward-preview {
    background-color: #24243e;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #30304a;
    flex-shrink: 0;
}
.forward-preview p {
    font-size: 0.9em;
    color: #b0b0c0;
    margin-bottom: 8px;
}
.forward-message-content {
    font-style: italic;
    color: #e0e0e0;
    max-height: 60px;
    overflow-y: auto;
    word-break: break-word;
}
.forward-search-container {
    margin-bottom: 10px;
    flex-shrink: 0;
}
.forward-search-container input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #4f4f7a;
    border-radius: 6px;
    background-color: #24243e;
    color: #e0e0e0;
}
#forward-targets-list-container {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #30304a;
    border-radius: 6px;
    padding: 5px;
}
#forward-targets-list {
    list-style: none;
    padding: 0;
}
#forward-targets-list li {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
    border-bottom: 1px solid #30304a;
}
#forward-targets-list li:last-child { border-bottom: none; }
#forward-targets-list li:hover {
    background-color: #2c2c50;
}
#forward-targets-list li.selected {
    background-color: rgba(120, 50, 255, 0.3) !important;
}
#forward-targets-list .target-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}
#forward-targets-list .target-name {
    flex-grow: 1;
    color: #e0e0e0;
}
#forward-targets-list .target-checkbox {
    transform: scale(1.3);
    accent-color: #7832ff;
    pointer-events: none;
}
.modal-footer-actions {
    margin-top: 20px;
    text-align: right;
    flex-shrink: 0;
}
.modal-footer-actions .primary-action-button {
    padding: 10px 20px;
    font-size: 1em;
}
#group-pinned-message-bar {
    display: none;
    align-items: center;
    padding: 10px 15px;
    background-color: #2a2a4a;
    color: #e0e0e0;
    font-size: 0.9em;
    cursor: pointer;
    border-bottom: 1px solid #3a3a5f;
    transition: all 0.3s;
    flex-shrink: 0;
}
#group-pinned-message-bar:hover {
    background-color: #3a3a5f;
}
#group-pinned-message-bar i.fa-thumbtack {
    color: #f1c40f;
    margin-right: 10px;
}
#pinned-message-content {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#pinned-message-content strong {
    color: #82aaff;
}
#close-pinned-bar-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.1em;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 10px;
}
#close-pinned-bar-btn:hover {
    color: #fff;
}
#content-profile { background-color: #262936; max-width: 650px; margin-left: auto; margin-right: auto; padding: 30px 40px; position: relative; border-radius:12px; }
#content-profile h3 { text-align: center; color: #fff; font-size: 1.9em; border-bottom: 2px solid #7832ff; padding-bottom: 18px; margin-bottom: 30px; }
.profile-avatar-section { text-align: center; margin-bottom: 35px; position: relative; }
.btn-change-avatar { display: inline-block; padding: 9px 18px; background-color: #7832ff; color: white; border-radius: 6px; cursor: pointer; font-size: 0.95em; transition: background-color 0.2s; }
.btn-change-avatar:hover { background-color: #5c27b0; }
.btn-change-avatar i { margin-right: 8px; }
#profile-avatar-upload-progress, #group-avatar-upload-progress, #create-group-avatar-upload-progress { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 12px; }
#profile-avatar-upload-progress::-webkit-progress-bar, #group-avatar-upload-progress::-webkit-progress-bar, #create-group-avatar-upload-progress::-webkit-progress-bar { background-color: #30304a; }
#profile-avatar-upload-progress::-webkit-progress-value, #group-avatar-upload-progress::-webkit-progress-value, #create-group-avatar-upload-progress::-webkit-progress-value { background-color: #7832ff; transition: width 0.1s ease; }
#profile-avatar-upload-progress::-moz-progress-bar, #group-avatar-upload-progress::-moz-progress-bar, #create-group-avatar-upload-progress::-moz-progress-bar { background-color: #7832ff; border-radius: 4px; }
.profile-field-group { margin-bottom: 28px; position: relative; }
.profile-field-group label { display: block; margin-bottom: 10px; color: #b0c0d0; font-size: 0.95em; font-weight: 500; text-align: left; }
.profile-field-group .field-display-view { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #404552; }
.profile-field-group .profile-text-value { font-size: 1.1em; color: #e8e8e8; margin: 0; flex-grow: 1; text-align: left; line-height: 1.5; }
.profile-field-group .bio-text-value { white-space: pre-wrap; word-break: break-word; max-height: 150px; overflow-y: auto; }
.profile-field-group .btn-edit-field { margin-left: 15px; font-size: 0.9em; }
.profile-field-group .field-edit-view { display: none; flex-direction: column; }
.profile-field-group .field-edit-view input[type="text"], .profile-field-group .field-edit-view textarea { width: 100%; padding: 14px 18px; background-color: #1c1f28; border: 1px solid #404552; border-radius: 6px; color: #e8e8e8; font-size: 1em; line-height: 1.4; margin-bottom: 12px; }
.profile-field-group .field-edit-view input[type="text"]:focus, .profile-field-group .field-edit-view textarea:focus { outline: none; border-color: #8a63d2; box-shadow: 0 0 0 3px rgba(138, 99, 210, 0.25); }
.profile-field-group .field-edit-view textarea { min-height: 100px; resize: vertical; }
.profile-field-group .field-edit-view .field-hint { font-size: 0.8em; color: #888; margin-top: -10px; margin-bottom: 10px; display: block; text-align: left; }
.profile-field-group .edit-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.profile-field-group .edit-actions button { width: auto; min-width: 40px; padding: 8px 14px; font-size: 1em; line-height:1; }
#profile-update-status.status-text.success-text { margin-top: 25px; text-align: center; }
.back-button { background: none; border: 1px solid #4f4f7a; color: #adb5bd; padding: 8px 14px; font-size: 0.9em; width: auto; border-radius: 6px; transition: background-color 0.2s, border-color 0.2s; cursor: pointer; display: inline-flex; align-items: center; }
.back-button:hover { background-color: #2a2a4a; border-color: #7832ff; }
.back-button i { margin-right: 6px; }
#content-profile .back-button { position: absolute; top: 33px; right: 35px; z-index: 10; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.65); display: none; justify-content: center; align-items: center; z-index: 1050; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-content { background-color: #1e1e30; padding: 30px 40px; border-radius: 12px; box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35); position: relative; width: 90%; max-width: 500px; transform: translateY(-40px) scale(0.95); transition: transform 0.3s ease-out, opacity 0.3s ease-out; opacity: 0; display: flex; flex-direction: column; }
.modal-overlay.show .modal-content { transform: translateY(0) scale(1); opacity: 1; }
.modal-content h2 { color: #fff; font-size: 1.7em; margin-bottom: 28px; text-align: center; flex-shrink: 0; }
.modal-content input[type="text"]:not(.search-bar-container input):not(#group-settings-name-input):not(#group-settings-description-input), .modal-content textarea:not(#group-settings-description-input) { width: 100%; padding: 13px 16px; margin-bottom: 18px; border: 1px solid #4f4f7a; border-radius: 8px; background-color: rgba(26, 26, 46, 0.75); color: #e0e0e0; font-size: 0.98em; }
.modal-content textarea { resize: vertical; min-height: 75px; }
.modal-content input:focus, .modal-content textarea:focus { outline: none; border-color: #7832ff; box-shadow: 0 0 0 3px rgba(120, 50, 255, 0.25); }
.modal-content button.primary-action-button { background: linear-gradient(45deg, #5e33d1, #7832ff); color: white; padding: 13px 20px; border: none; border-radius: 8px; font-size: 1.05em; }
.modal-content button.primary-action-button:hover { background: linear-gradient(45deg, #4a1bad, #6a25e0); }
.close-modal-button { position: absolute; top: 15px; right: 20px; font-size: 1.9em; color: #888; cursor: pointer; line-height: 1; padding: 0 5px; }
.close-modal-button:hover { color: #fff; }
#group-settings-modal .modal-content { max-width: 580px; max-height: calc(100vh - 60px); overflow: hidden; }
#group-settings-modal #group-settings-view { flex-grow: 1; overflow-y: auto; padding-right: 15px; margin-right: -15px; }
#group-settings-modal h4 { color: #c0c0d0; font-size: 1.15em; margin-top: 20px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px dashed #4f4f7a; flex-shrink: 0; }
#group-settings-modal h4:first-of-type { margin-top: 0; }
#group-info-edit-section label { display: block; margin-bottom: 6px; color: #b0c0d0; font-size: 0.92em; text-align: left; }
#group-info-edit-section input[type="text"], #group-info-edit-section textarea { width: 100%; padding: 11px 14px; margin-bottom: 15px; border: 1px solid #4f4f7a; border-radius: 6px; background-color: #24243e; color: #e0e0e0; font-size: 0.98em; box-sizing: border-box; }
#group-info-edit-section input[type="text"]:focus, #group-info-edit-section textarea:focus { outline: none; border-color: #7832ff; box-shadow: 0 0 0 2px rgba(120, 50, 255, 0.2); }
#group-info-edit-section textarea { min-height: 80px; resize: vertical; }
#group-info-edit-section #btn-save-group-info { display: inline-block; width: auto; padding: 9px 16px; font-size: 0.95em; }
#group-members-list { list-style-type: none; padding: 0; max-height: 220px; overflow-y: auto; margin-bottom: 20px; border: 1px solid #30304a; border-radius: 6px; padding: 5px; }
#group-members-list li { display: flex; align-items: center; justify-content: space-between; padding: 9px 8px; border-bottom: 1px solid #30304a; font-size: 0.98em; }
#group-members-list li:last-child { border-bottom: none; }
.group-member-info { display: flex; align-items: center; }
.group-member-avatar { width: 32px; height: 32px; border-radius: 50%; margin-right: 10px; object-fit: cover; }
.group-member-name { color: #e0e0e0; }
.group-member-role { font-size: 0.8em; margin-left: 8px; padding: 3px 7px; border-radius: 4px; font-weight: 500; }
.group-member-role.creator { background-color: #f1c40f; color: #333; }
.group-member-role.admin { background-color: #3498db; color: white; }
.member-actions button { margin-left: 6px; font-size: 0.88em !important; padding: 5px 7px !important; }
#add-member-section { margin-bottom: 18px; flex-shrink: 0;}
#group-settings-modal .search-bar-container input[type="text"]{ font-size: 0.92em; padding: 9px 13px; }
#group-settings-modal .search-bar-container button { font-size: 0.92em; padding: 9px 13px; }
#group-settings-error-message, #group-settings-success-message { margin-top: 12px; min-height: 18px; flex-shrink: 0; }
#group-settings-success-message.success-text { text-align: center; border-left: none; background-color: transparent; padding: 5px; }
.group-actions-footer { margin-top: auto; border-top: 1px solid #4f4f7a; padding-top: 20px; text-align: right; flex-shrink: 0; background-color: #1e1e30; margin-left: -40px; margin-right: -40px; margin-bottom: -30px; padding: 20px 40px 30px 40px; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.group-actions-footer button { margin-left: 10px; padding: 9px 16px; font-size: 0.95em;}
.group-actions-footer button:first-child { margin-left: 0;}
#chat-user-actions-modal .modal-content { padding: 25px 30px; background-color: #24243e; border: 1px solid #30304a; max-height: 80vh; overflow-y: auto; }
#chat-user-actions-modal-header { text-align: center; margin-bottom: 25px; }
#chat-user-actions-modal-header .profile-page-avatar-img { width: 80px; height: 80px; margin-bottom: 12px; border-width: 3px; border-color: #7832ff; }
#chat-user-actions-modal-header h3 { font-size: 1.5em; margin-bottom: 4px; color: #fff; font-weight: 600; }
#chat-user-actions-modal-header p { font-size: 0.95em; color: #a0a0b0; margin-top: 0; }
.modal-actions-group { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.modal-actions-group + .section-divider { margin-top: 20px; margin-bottom: 20px; }
#chat-user-actions-modal .modal-actions-group button, #chat-user-actions-modal .modal-actions-group .button-like-text { width: 100%; padding: 12px 18px; font-size: 1em; font-weight: 500; margin-top: 0 !important; box-shadow: none; text-align: center; display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: background-color 0.2s, transform 0.1s, color 0.2s, border-color 0.2s; }
#chat-user-actions-modal .modal-actions-group button i { margin-right: 10px; }
#chat-user-actions-modal .modal-actions-group .button-like-text { background-color: #30304a; color: #888; cursor: default; border: 1px solid #4f4f7a; }
#chat-user-actions-modal #cua-modal-friendship-actions .btn-request-actions { display: flex; gap: 10px; }
#chat-user-actions-modal #cua-modal-friendship-actions .btn-request-actions button { flex-grow: 1; }
#chat-user-actions-modal .btn-add-friend-from-modal, #chat-user-actions-modal .btn-accept-from-modal { background: linear-gradient(45deg, #27ae60, #2ecc71); color: white; }
#chat-user-actions-modal .btn-add-friend-from-modal:hover, #chat-user-actions-modal .btn-accept-from-modal:hover { background: linear-gradient(45deg, #229954, #29b765); }
#chat-user-actions-modal .btn-unfriend-from-modal, #chat-user-actions-modal .btn-decline-from-modal { background: linear-gradient(45deg, #d63031, #e55039); color: white; }
#chat-user-actions-modal .btn-unfriend-from-modal:hover, #chat-user-actions-modal .btn-decline-from-modal:hover { background: linear-gradient(45deg, #b71540, #c23616); }
#chat-user-actions-modal .btn-cancel-request-from-modal { background-color: #4f4f7a; color: #e0e0e0; }
#chat-user-actions-modal .btn-cancel-request-from-modal:hover { background-color: #5f5f8a; }
#cua-modal-btn-block-toggle.danger { background: linear-gradient(45deg, #d63031, #e55039); color: white; }
#cua-modal-btn-block-toggle.danger:hover { background: linear-gradient(45deg, #b71540, #c23616); }
#cua-modal-btn-block-toggle.success { background: linear-gradient(45deg, #00b894, #55efc4); color: #1e1e30; }
#cua-modal-btn-block-toggle.success:hover { background: linear-gradient(45deg, #009473, #48d9b0); }
#cua-modal-btn-block-toggle.disabled-text { background-color: #555e68 !important; color: #909090 !important; cursor: not-allowed !important; border: 1px solid #4f4f7a !important; }
#chat-user-actions-modal .error-text { margin-top: 20px; font-size: 0.9em; }
#search-results-container-modal::-webkit-scrollbar { width: 8px; }
#search-results-container-modal::-webkit-scrollbar-track { background: #1e1e30; border-radius: 10px; }
#search-results-container-modal::-webkit-scrollbar-thumb { background: #4f4f7a; border-radius: 10px; }
#search-results-container-modal::-webkit-scrollbar-thumb:hover { background: #5e5e8a; }
#search-results-list-modal li .search-result-actions .btn-start-chat-from-search { color: #82aaff; border-color: transparent; }
#search-results-list-modal li .search-result-actions .btn-start-chat-from-search:hover { background-color: rgba(130, 170, 255, 0.1); border-color: #82aaff; }
#voice-call-modal .modal-content { max-width: 420px; padding: 25px; text-align: center; background-color: #24243e; position: relative; }
#btn-minimize-call { position: absolute; top: 12px; left: 12px; background: none; border: none; color: #adb5bd; font-size: 1.3em; padding: 5px; cursor: pointer; border-radius: 50%; width: 30px; height: 30px; display: none; align-items: center; justify-content: center; z-index: 10; }
#btn-minimize-call:hover { background-color: rgba(255,255,255,0.1); color: #fff; }
.voice-call-info-section .profile-page-avatar-img { width: 90px; height: 90px; border-width: 3px; border-color: #7832ff; margin-bottom: 15px; }
.voice-call-info-section h3 { font-size: 1.5em; color: #fff; margin-bottom: 6px; }
.voice-call-info-section #voice-call-status-text { font-size: 0.95em; color: #b0c0d0; margin-bottom: 20px; min-height: 22px; }
.voice-call-actions { display: flex; justify-content: center; gap: 15px; width: 100%; margin-top: 15px; }
.voice-call-actions .icon-button { padding: 12px 18px; font-size: 1em; border-radius: 50px; min-width: 65px; box-shadow: 0 3px 10px rgba(0,0,0,0.2); }
.voice-call-actions .icon-button i { font-size: 1.2em; margin-right: 0; }
.voice-call-actions .icon-button.success { background-color: #2ecc71; color: white; }
.voice-call-actions .icon-button.success:hover { background-color: #27ae60; }
.voice-call-actions .icon-button.danger { background-color: #e74c3c; color: white; }
.voice-call-actions .icon-button.danger:hover { background-color: #c0392b; }
.voice-call-actions .icon-button.success i, .voice-call-actions .icon-button.danger i { margin-right: 8px; }
.active-call-controls { align-items: center; }
.active-call-controls #btn-toggle-mute { background-color: #4f4f7a; color: #e0e0e0; }
.active-call-controls #btn-toggle-mute.muted { background-color: #e74c3c; color: white; }
.active-call-controls #voice-call-duration { color: #ccc; font-size: 1em; font-weight: 500; margin: 0 15px; min-width: 50px; text-align: center; }
#group-call-participants-container { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 0; min-height: 70px; margin-bottom: 10px; }
.participant-slot { display: flex; flex-direction: column; align-items: center; width: 70px; }
.participant-slot .participant-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-bottom: 5px; border: 2px solid #5f5f8a; transition: border-color 0.3s, opacity 0.3s; }
.participant-slot.speaking .participant-avatar { border-color: #2ecc71; box-shadow: 0 0 12px #2ecc71; }
.participant-name { font-size: 0.8em; color: #bbb; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
#group-call-invite-modal .modal-content { max-width: 450px; }
#group-call-invite-modal h2 { font-size: 1.5em; margin-bottom: 20px; }
#group-call-members-list-container { max-height: 300px; overflow-y: auto; margin-bottom: 20px; border: 1px solid #30304a; border-radius: 6px; padding: 5px; }
#group-call-members-list-container::-webkit-scrollbar { width: 6px; }
#group-call-members-list-container::-webkit-scrollbar-track { background: #24243e; border-radius: 10px; }
#group-call-members-list-container::-webkit-scrollbar-thumb { background: #4f4f7a; border-radius: 10px; }
#group-call-members-list-container::-webkit-scrollbar-thumb:hover { background: #5e5e8a; }
#group-call-members-list li { display: flex; align-items: center; padding: 10px 8px; border-bottom: 1px solid #383854; cursor: pointer; transition: background-color 0.2s; border-radius: 4px; }
#group-call-members-list li:last-child { border-bottom: none; }
#group-call-members-list li:hover { background-color: #2c2c50; }
#group-call-members-list li.selected-for-call { background-color: rgba(120, 50, 255, 0.25) !important; }
#group-call-members-list li.selected-for-call .group-call-member-name { color: #fff; }
.group-call-member-avatar { width: 35px; height: 35px; border-radius: 50%; margin-right: 12px; object-fit: cover; }
.group-call-member-info { flex-grow: 1; }
.group-call-member-name { font-weight: bold; color: #e0e0e0; font-size: 0.95em; }
.group-call-member-username { font-size: 0.8em; color: #a0a0b0; }
.group-call-member-checkbox { margin-left: auto; transform: scale(1.3); accent-color: #7832ff; cursor: pointer; }
#minimized-call-ui { position: fixed; top: 20px; right: 20px; background-color: #2a2a4a; color: #e0e0e0; padding: 10px 15px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); z-index: 2100; display: none; align-items: center; gap: 10px; cursor: pointer; transition: opacity 0.3s ease, transform 0.3s ease; opacity: 0; transform: translateX(20px); border: 1px solid #4f4f7a; }
#minimized-call-ui.show { display: flex; opacity: 1; transform: translateX(0); }
#minimized-call-info { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.9em; }
#minimized-call-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(0,0,0,0.1); }
#minimized-call-partner-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#minimized-call-duration { font-size: 0.9em; font-weight: bold; background-color: rgba(0,0,0,0.15); padding: 3px 7px; border-radius: 4px; }
#minimized-call-status-icon i { font-size: 1.1em; animation: pulse-icon 2s infinite ease-in-out; }
@keyframes pulse-icon { 0% { transform: scale(1); color: #2ecc71; } 50% { transform: scale(1.1); color: #81e0ae; } 100% { transform: scale(1); color: #2ecc71; } }

/* RESPONSIVE DESIGN */
@media (max-width: 768px) { #loading-title-rgb { font-size: 2.8em; margin-bottom: 30px; } .loading-content { max-width: 90%; } #loading-status-main { font-size: 1.3em; } #loading-status-detail { font-size: 0.95em; } .progress-bar-container { height: 16px; } #sidebar-toggle-button { display: block !important; } .sidebar { transform: translateX(-100%); } .sidebar.open { transform: translateX(0); width: 250px; box-shadow: 5px 0 15px rgba(0,0,0,0.5); } .content-area { margin-left: 0 !important; width: 100% !important; padding: 75px 15px 20px 15px; } #content-title { font-size: 1.6em; padding-left: 50px; padding-right: 15px; margin-bottom: 25px; } .content-section { padding: 20px; margin-bottom: 25px; } .content-section h3 { font-size: 1.4em; margin-bottom: 18px; padding-bottom: 10px; } .friends-header-action > h3 { font-size: 1.4em; } .auth-container { padding: 30px 25px; margin: 20px; max-width: calc(100% - 40px); } .auth-container h1 { font-size: 2.8em; } .auth-container h2 { font-size: 1.7em; margin-bottom: 25px; } #content-profile .back-button { position: static; float:none; display: block; width: auto; margin: -10px auto 20px auto; } #content-profile h3 { margin-top:10px;} .profile-avatar-section { margin-bottom: 25px; } .profile-page-avatar-img { width: 100px; height: 100px; } .friend-actions { flex-direction: row !important; gap: 6px; margin-left: auto; align-items: center; } .friend-actions .icon-button { width: auto; padding: 7px 9px; font-size: 0.95em; margin-left: 0; } #current-friends-list li, #friend-requests-list li, #search-results-list-modal li { padding: 10px 8px; } .result-avatar, .request-avatar, .friend-avatar { width: 35px; height: 35px; margin-right: 10px; } .result-username, .request-username, .friend-username { font-size: 0.98em; } .request-actions button { padding: 6px 9px; font-size: 0.85em; } .modal-content { padding: 25px; width: 95%; max-height: 90vh; } .modal-content h2 { font-size: 1.5em; margin-bottom: 22px; } .close-modal-button { top: 12px; right: 18px; font-size: 1.7em; } #add-friend-modal .search-bar-container input[type="text"], #add-friend-modal .search-bar-container button { font-size: 0.95em; padding: 10px 13px; } #group-settings-modal .search-bar-container input[type="text"], #group-settings-modal .search-bar-container button { font-size: 0.9em; padding: 9px 11px; } #group-members-list li { padding: 7px 5px; font-size: 0.92em; } .group-member-avatar { width: 30px; height: 30px; } .member-actions button { font-size: 0.82em !important; padding: 4px 6px !important; } .group-actions-footer { text-align: center; margin-left: -25px; margin-right: -25px; margin-bottom: -25px; padding: 15px 25px 25px 25px; } .group-actions-footer button { margin: 6px; display:inline-block;} #active-chats-list li, #user-groups-list li { padding: 13px 10px; } .chat-list-avatar, .group-list-avatar { width: 42px; height: 42px; margin-right: 10px; } .chat-list-username, .group-list-name { font-size: 1.05em; } .chat-list-last-message, .group-list-last-message { font-size: 0.85em; max-width: calc(100vw - 160px); } .chat-header { padding: 10px 15px; } #chat-with-username-header, #group-chat-name-header { font-size: 1.1em; } .chat-header .chat-header-actions .icon-button { font-size: 1em; padding: 7px; } .chat-header .chat-back-button { font-size: 1.15em; margin-right: 12px;} .chat-messages-container { padding: 15px 12px; } .message-content { padding: 9px 14px; font-size: 0.98em; } .message-avatar { width: 32px; height: 32px; margin: 0 8px; } #content-group-chat .message-item.is-consecutive { margin-top: -10px; } .message-item { max-width: 90%; } #chat-typing-indicator, #group-chat-typing-indicator { padding: 0 15px 8px; min-height: 20px; } .typing-bubble-container span { width: 6px; height: 6px; } .chat-input-container { padding: 12px 15px; } .chat-file-upload-button { margin-right: 8px; font-size: 1.1em; padding: 7px; } #chat-message-input, #group-chat-message-input { padding: 11px 15px; font-size: 0.95em; } #btn-send-chat-message, #btn-send-group-chat-message { height: 40px; width: 40px; margin-left: 8px; } #btn-send-chat-message i, #btn-send-group-chat-message i { font-size: 1.15em; } #chat-user-actions-modal .modal-content { padding: 20px 20px; } #chat-user-actions-modal-header img { width: 70px; height: 70px; } #chat-user-actions-modal-header h3 { font-size: 1.3em; } #chat-user-actions-modal .modal-actions-group button, #chat-user-actions-modal .modal-actions-group .button-like-text { padding: 10px 15px; font-size: 0.92em; } #voice-call-modal .modal-content { max-width: calc(100% - 30px); padding: 20px; } #btn-minimize-call { top: 10px; left: 10px; font-size: 1.1em; width: 26px; height: 26px; } .voice-call-info-section .profile-page-avatar-img { width: 80px; height: 80px; margin-bottom: 15px; } .voice-call-info-section h3 { font-size: 1.4em; } .voice-call-info-section #voice-call-status-text { font-size: 0.95em; margin-bottom: 25px; } .voice-call-actions { gap: 15px; } .voice-call-actions .icon-button { padding: 12px 15px; font-size: 1em; } .voice-call-actions .icon-button i { font-size: 1.2em; } .active-call-controls #voice-call-duration { font-size: 0.9em; } #minimized-call-ui { padding: 8px 12px; gap: 8px; right: 10px; top: 10px; } #minimized-call-avatar { width: 24px; height: 24px; } #minimized-call-partner-name { font-size: 0.85em; max-width: 100px; } #minimized-call-duration { font-size: 0.85em; } .group-call-participants-container { gap: 8px; padding: 5px 0; min-height: 60px; } .participant-slot { width: 65px; } .participant-avatar { width: 45px; height: 45px; } .participant-name { font-size: 0.75em; } }
@media (min-width: 769px) { .sidebar { transform: translateX(0) !important; } .content-area { margin-left: 250px !important; width: calc(100% - 250px) !important; } .sidebar.collapsed { width: 70px; } .sidebar.collapsed .nav-text, .sidebar.collapsed #sidebar-username, .sidebar.collapsed .sidebar-header .header-logo-text { display: none; } .sidebar.collapsed .sidebar-header .header-logo-icon { display: inline-block; font-size: 1.6em; } .sidebar.collapsed .main-nav ul li a { justify-content: center; padding: 15px 0; } .sidebar.collapsed .main-nav ul li a i { margin-right: 0; font-size: 1.45em; } .sidebar.collapsed .sidebar-footer { padding: 12px 0; flex-direction: column; gap: 12px; } .sidebar.collapsed .profile-icon-container { margin-right: 0; padding: 8px 0; justify-content: center; } .sidebar.collapsed #sidebar-profile-img { margin-right: 0; width: 38px; height: 38px; } .sidebar.collapsed #btn-logout { padding: 8px; font-size: 1.6em; } .content-area.sidebar-collapsed-effect { margin-left: 70px !important; width: calc(100% - 70px) !important; } }

/* DÜZENLENEN MESAJ İÇİN VURGU STİLİ */
.message-item.editing-message > .message-container {
    background-color: rgba(94, 51, 209, 0.15);
    border-radius: 12px;
    box-shadow: 0 0 0 2px rgba(120, 50, 255, 0.3);
}

.message-edit-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.message-edit-actions span {
    font-size: 0.8em;
    color: #9090a0;
}

.message-edit-actions kbd {
    background-color: #4f4f7a;
    border-radius: 3px;
    padding: 2px 4px;
    font-family: monospace;
    font-size: 0.95em;
    border-bottom: 2px solid #3a3a5f;
}

/* ============================================================
   TOAST BİLDİRİMLERİ — sağ üst, yığılan, kayarak giren, ilerleme çubuklu
   ============================================================ */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #23233a;
    color: #f0f0f5;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    border-left: 4px solid #7832ff;
    overflow: hidden;
    font-size: 0.92em;
    animation: toast-in 0.32s cubic-bezier(0.21, 1.02, 0.73, 1) both;
}

.toast.toast-out {
    animation: toast-out 0.3s ease forwards;
}

.toast-icon {
    font-size: 1.25em;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.35;
    word-break: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: #9090a8;
    font-size: 1.3em;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
    transition: color 0.15s;
}
.toast-close:hover { color: #fff; }

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    background: currentColor;
    opacity: 0.55;
    animation-name: toast-progress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

/* Tür renkleri */
.toast-success { border-left-color: #2ecc71; }
.toast-success .toast-icon { color: #2ecc71; }
.toast-success .toast-progress { color: #2ecc71; }

.toast-error { border-left-color: #e74c3c; }
.toast-error .toast-icon { color: #e74c3c; }
.toast-error .toast-progress { color: #e74c3c; }

.toast-info { border-left-color: #5e9cff; }
.toast-info .toast-icon { color: #5e9cff; }
.toast-info .toast-progress { color: #5e9cff; }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(120%); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(120%); }
}
@keyframes toast-progress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

@media (max-width: 480px) {
    #toast-container {
        left: 12px;
        right: 12px;
        top: 12px;
        max-width: none;
    }
    .toast { min-width: 0; max-width: none; }
}

/* ============================================================
   UI REFRESH — Global polish & micro-animations
   ============================================================ */

/* Global scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a3a5f; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #5e5e8a; }

/* Sidebar — subtle gradient */
.sidebar {
    background: linear-gradient(180deg, #1a1a2e 0%, #1e1e30 60%, #191926 100%);
}
.sidebar-header {
    background: rgba(120, 50, 255, 0.08);
    letter-spacing: 0.5px;
}
.main-nav ul li a {
    border-radius: 0 8px 8px 0;
    margin-right: 8px;
}
.main-nav ul li a.active {
    background: linear-gradient(90deg, rgba(120,50,255,0.22) 0%, rgba(120,50,255,0.08) 100%);
}
.sidebar-footer {
    background: rgba(0,0,0,0.15);
}
#sidebar-profile-img {
    transition: border-color 0.2s, box-shadow 0.2s;
}
#sidebar-profile-img:hover {
    border-color: #7832ff;
    box-shadow: 0 0 8px rgba(120,50,255,0.4);
}

/* Mesaj balonu — fade-in animasyonu */
@keyframes msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.message-item {
    animation: msg-in 0.2s ease both;
}

/* Gönderilen mesaj — cam efekti */
.message-item.sent .message-content {
    background: linear-gradient(135deg, #7832ff 0%, #5e33d1 100%);
    box-shadow: 0 2px 12px rgba(120,50,255,0.3);
}
.message-item.received .message-content {
    background: linear-gradient(135deg, #3a3a5f 0%, #2f2f52 100%);
}
.message-content {
    transition: box-shadow 0.2s, filter 0.2s;
}
.message-content:hover {
    filter: brightness(1.08);
}

/* Sohbet listesi öğeleri — daha yumuşak geçiş */
#active-chats-list li,
#user-groups-list li {
    border-radius: 8px;
    transition: background-color 0.18s ease, transform 0.15s ease;
}
#active-chats-list li:hover,
#user-groups-list li:hover {
    transform: translateX(3px);
}

/* Arkadaş listesi satırları */
#current-friends-list li,
#friend-requests-list li,
#search-results-list-modal li {
    border-radius: 6px;
    transition: background-color 0.18s ease;
    padding: 10px 8px;
}
#current-friends-list li:hover,
#search-results-list-modal li:hover {
    background-color: rgba(44, 44, 80, 0.6);
}

/* Avatar hover — tıklanabilir olanlarda */
.message-avatar,
.chat-list-avatar,
.group-list-avatar,
.result-avatar,
.friend-avatar {
    transition: box-shadow 0.2s, transform 0.2s;
}
.message-avatar:hover,
.chat-list-avatar:hover,
.group-list-avatar:hover {
    box-shadow: 0 0 0 2px #7832ff;
    transform: scale(1.05);
}

/* Gönder butonu — pulse hover */
#btn-send-chat-message,
#btn-send-group-chat-message {
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
#btn-send-chat-message:hover:not(:disabled),
#btn-send-group-chat-message:hover:not(:disabled) {
    background-color: #5c27b0;
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(120,50,255,0.4);
}

/* Chat input alanı — focus glow */
#chat-message-input:focus,
#group-chat-message-input:focus {
    border-color: #7832ff;
    box-shadow: 0 0 0 3px rgba(120,50,255,0.18), inset 0 1px 3px rgba(0,0,0,0.15);
}

/* Context menu — slide-in animasyonu */
@keyframes ctx-in {
    from { opacity: 0; transform: scale(0.94) translateY(-6px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.context-menu[style*="block"] {
    animation: ctx-in 0.18s ease both;
}

/* Modal — backdrop blur */
.modal-overlay {
    backdrop-filter: blur(4px);
}
.modal-content {
    border: 1px solid rgba(120,50,255,0.15);
}

/* Bildirim badge — canlı renk */
.notification-badge {
    background: linear-gradient(135deg, #ff4d4d, #e91e63);
    box-shadow: 0 0 8px rgba(233,30,99,0.45);
}

/* Content section — subtle glow on hover */
.content-section {
    transition: box-shadow 0.25s ease;
    border: 1px solid transparent;
}
.content-section:hover {
    border-color: rgba(120,50,255,0.1);
    box-shadow: 0 4px 18px rgba(0,0,0,0.28), 0 0 0 1px rgba(120,50,255,0.06);
}

/* Yazma göstergesi bubbleları — renk güncellemesi */
.typing-bubble-container span {
    background-color: #7832ff;
}

/* Profil sayfası avatar */
.profile-page-avatar-img {
    transition: box-shadow 0.25s, transform 0.25s;
}
.profile-page-avatar-img:hover {
    box-shadow: 0 0 0 3px #7832ff, 0 0 20px rgba(120,50,255,0.3);
    transform: scale(1.03);
}