 :root {
   --whatsapp-green: #075e54;
   --whatsapp-light-green: #25d366;
   --whatsapp-chat-bg: #e5ddd5;
   --whatsapp-sent-bg: #dcf8c6;
   --whatsapp-received-bg: #ffffff;
   --whatsapp-header: #128c7e;
   --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.12);
   --shadow-medium: 0 3px 6px rgba(0, 0, 0, 0.16);
 }

 * {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
   font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
   -webkit-tap-highlight-color: transparent;
 }

 html {
   height: 100%;
 }

 body {
   height: 100%;
   background: var(--whatsapp-chat-bg);
   position: fixed;
   width: 100%;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
 }

 .app-container {
   display: flex;
   height: 100vh;
   height: 100dvh;
   background: var(--whatsapp-chat-bg);
   flex-wrap: nowrap;
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   width: 100%;
 }

 .side-panel {
   width: 380px;
   min-width: 300px;
   background: #fff;
   border-right: 1px solid #e0e0e0;
   display: flex;
   flex-direction: column;
   box-shadow: var(--shadow-light);
   z-index: 1000;
   transition: transform 0.3s ease;
   height: 100%;
   overflow: hidden;
 }

 .panel-header {
   height: 70px;
   min-height: 70px;
   background: var(--whatsapp-header);
   color: #fff;
   display: flex;
   align-items: center;
   padding: 0 20px;
   font-size: 18px;
   font-weight: 500;
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
   flex-shrink: 0;
 }

 .user-avatar {
   width: 45px;
   height: 45px;
   min-width: 45px;
   border-radius: 50%;
   background: #34b7f1;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 20px;
   color: white;
   margin-right: 15px;
 }

 @media (max-width: 768px) {
   .side-panel {
     position: absolute;
     z-index: 10;
     width: 100%;
     transform: translateX(-100%);
   }

   .side-panel.open {
     transform: translateX(0);
   }
 }

 .panel-header {
   padding: 15px;
   background: #25d366;
   color: white;
   display: flex;
   align-items: center;
   justify-content: space-between;
 }

 .user-avatar {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.2);
   display: flex;
   align-items: center;
   justify-content: center;
 }

 .header-title {
   font-weight: bold;
   font-size: 18px;
 }

 .header-actions {
   display: flex;
   gap: 10px;
 }

 .header-icon {
   width: 36px;
   height: 36px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   position: relative;
   transition: background 0.3s;
 }

 .header-icon:hover {
   background: rgba(255, 255, 255, 0.1);
 }

 .notification-badge {
   position: absolute;
   top: -5px;
   right: -5px;
   background: #ff4444;
   color: white;
   border-radius: 50%;
   width: 18px;
   height: 18px;
   font-size: 10px;
   display: flex;
   align-items: center;
   justify-content: center;
 }

 .search-container {
   padding: 15px;
   border-bottom: 1px solid #e0e0e0;
 }

 .search-box {
   width: 100%;
   padding: 10px 15px;
   border: 1px solid #e0e0e0;
   border-radius: 20px;
   outline: none;
   font-size: 14px;
 }

 .search-box:focus {
   border-color: #25d366;
 }

 .cities-list {
   flex: 1;
   overflow-y: auto;
 }

 .city-item {
   padding: 15px;
   display: flex;
   align-items: center;
   cursor: pointer;
   border-bottom: 1px solid #f0f0f0;
   transition: background 0.3s;
 }

 .city-item:hover {
   background: #f5f5f5;
 }

 .city-icon {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background: #e0e0e0;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-right: 15px;
 }

 .city-info {
   flex: 1;
 }

 .city-name {
   font-weight: bold;
   margin-bottom: 5px;
 }

 .city-desc {
   font-size: 12px;
   color: #666;
 }

 .district-toggle {
   padding: 5px;
   cursor: pointer;
 }

 .notification-toggle {
   position: relative;
   padding: 5px;
   cursor: pointer;
   color: #999;
 }

 .notification-toggle.active {
   color: #25d366;
 }

 .local-badge {
   position: absolute;
   top: -5px;
   right: -5px;
   background: #ff4444;
   color: white;
   border-radius: 50%;
   width: 16px;
   height: 16px;
   font-size: 10px;
   display: flex;
   align-items: center;
   justify-content: center;
 }

 .remove-filter {
   position: absolute;
   top: -5px;
   right: -15px;
   background: #ff4444;
   color: white;
   border-radius: 50%;
   width: 16px;
   height: 16px;
   font-size: 10px;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
 }

 .districts-container {
   display: none;
   background: #f9f9f9;
 }

 .district-item {
   padding: 12px 15px 12px 60px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   cursor: pointer;
   border-bottom: 1px solid #eee;
   transition: background 0.3s;
 }

 .district-item:hover {
   background: #f0f0f0;
 }

 /* Sohbet paneli stilleri */
 .chat-panel {
   flex: 1;
   display: flex;
   flex-direction: column;
 }

 .chat-header {
   padding: 15px;
   background: white;
   border-bottom: 1px solid #e0e0e0;
   display: flex;
   align-items: center;
 }

 .chat-back {
   display: none;
   margin-right: 15px;
   cursor: pointer;
 }

 @media (max-width: 768px) {
   .chat-back {
     display: block;
   }
 }

 .chat-avatar {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background: #e0e0e0;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-right: 15px;
 }

 .chat-info {
   flex: 1;
 }

 .chat-title {
   font-weight: bold;
 }

 .chat-status {
   font-size: 12px;
   color: #666;
 }

 .chat-actions {
   display: flex;
   gap: 10px;
 }

 .messages-container {
   flex: 1;
   padding: 20px;
   overflow-y: auto;
   background: #e5ddd5;
 }

 .message {
   margin-bottom: 15px;
   display: flex;
 }

 .message.received {
   justify-content: flex-start;
 }

 .message.sent {
   justify-content: flex-end;
 }

 .message-content {
   display: flex;
   max-width: 70%;
 }

 .message.received .message-content {
   flex-direction: row;
 }

 .message.sent .message-content {
   flex-direction: row-reverse;
 }

 .message-avatar {
   margin: 0 8px;
 }

 .avatar-circle {
   width: 32px;
   height: 32px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   background: #ddd;
   font-size: 14px;
 }

 .avatar-image {
   width: 32px;
   height: 32px;
   border-radius: 50%;
   object-fit: cover;
 }

 .avatar-fallback {
   width: 32px;
   height: 32px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   font-weight: bold;
 }

 .message-bubble {
   background: white;
   border-radius: 7.5px;
   padding: 8px 12px;
   box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
   position: relative;
 }

 .message.sent .message-bubble {
   background: #dcf8c6;
 }

 .message-sender {
   font-size: 12px;
   font-weight: bold;
   margin-bottom: 4px;
   color: #25d366;
 }

 .message-text {
   margin-bottom: 5px;
   word-break: break-word;
   white-space: pre-wrap;
   line-height: 1.4;
 }

 .message-footer {
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-size: 11px;
   color: #999;
 }

 .message-status {
   margin-left: 5px;
   color: #4fc3f7;
 }

 .call-buttons-container {
   margin-top: 5px;
 }

 .yuk-ilani {
   background: white;
   border-radius: 7.5px;
   padding: 12px;
   margin-bottom: 15px;
   box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
   border-left: 4px solid #ff9800;
 }

 .yuk-ilani .content {
   margin-bottom: 8px;
   word-break: break-word;
   white-space: pre-wrap;
   line-height: 1.4;
   white-space: pre-wrap !important;
   word-wrap: break-word !important;
   line-height: 1.4 !important;

 }

 .yuk-ilani .meta {
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-size: 11px;
   color: #999;
 }

 .highlight {
   background: #fff9c4;
   padding: 2px 4px;
   border-radius: 3px;
 }

 .message-input-container {
   padding: 15px;
   background: white;
   display: flex;
   align-items: center;
   border-top: 1px solid #e0e0e0;
 }

 .input-actions {
   display: flex;
   gap: 10px;
   margin-right: 10px;
 }

 .input-icon {
   width: 36px;
   height: 36px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   color: #666;
   transition: background 0.3s;
 }

 .input-icon:hover {
   background: #f0f0f0;
 }

 .message-input {
   flex: 1;
   padding: 10px 15px;
   border: 1px solid #e0e0e0;
   border-radius: 20px;
   outline: none;
   font-size: 14px;
 }

 .message-input:focus {
   border-color: #25d366;
 }

 .location-button,
 .send-button {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   border: none;
   background: #25d366;
   color: white;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   margin-left: 10px;
   transition: background 0.3s;
 }

 .location-button:hover,
 .send-button:hover {
   background: #1ebe57;
 }

 /* Arama butonu stilleri */
 .call-btn {
   background: #25d366;
   color: white;
   border: none;
   border-radius: 4px;
   padding: 4px 8px;
   font-size: 12px;
   cursor: pointer;
   margin-left: 5px;
   transition: all 0.3s;
 }

 .call-btn:hover {
   background: #1ebe57;
   transform: translateY(-1px);
 }

 .call-btn-yuk {
   background: #ff9800;
   color: white;
   border: none;
   border-radius: 4px;
   padding: 4px 8px;
   font-size: 12px;
   cursor: pointer;
   margin-left: 5px;
   transition: all 0.3s;
 }

 .call-btn-yuk:hover {
   background: #e68a00;
   transform: translateY(-1px);
 }

 .call-status {
   font-size: 12px;
   color: #666;
   margin-top: 5px;
   font-style: italic;
 }

 /* Görüşme butonu */
 .call-header-button {
   background: #25d366;
   color: white;
   border: none;
   border-radius: 50%;
   width: 40px;
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: all 0.3s;
   margin-left: 10px;
 }

 .call-header-button:hover {
   background: #1ebe57;
   transform: scale(1.1);
 }

 .call-header-button.active {
   background: #ff5722;
   animation: pulse 1.5s infinite;
 }

 @keyframes pulse {
   0% {
     box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7);
   }

   70% {
     box-shadow: 0 0 0 10px rgba(255, 87, 34, 0);
   }

   100% {
     box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
   }
 }

 /* Görüşme modalı için özel stiller */
 .call-modal {
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 90%;
   max-width: 800px;
   background: white;
   border-radius: 15px;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
   z-index: 1000;
   overflow: hidden;
 }

 .call-modal-header {
   background: linear-gradient(135deg, #25d366, #128C7E);
   color: white;
   padding: 15px 20px;
   display: flex;
   justify-content: space-between;
   align-items: center;
 }

 .call-modal-title {
   font-size: 18px;
   font-weight: bold;
 }

 .call-modal-close {
   background: none;
   border: none;
   color: white;
   font-size: 20px;
   cursor: pointer;
 }

 .call-modal-body {
   padding: 20px;
   max-height: 70vh;
   overflow-y: auto;
 }

 .active-call-info {
   background: #e8f5e9;
   padding: 15px;
   border-radius: 8px;
   margin-bottom: 20px;
   text-align: center;
   border-left: 4px solid #25d366;
 }

 .active-call-info h4 {
   color: #25d366;
   margin-bottom: 10px;
 }

 .end-call-btn {
   background: #dc3545;
   color: white;
   border: none;
   border-radius: 6px;
   padding: 10px 20px;
   cursor: pointer;
   font-weight: bold;
   margin-top: 10px;
 }

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

 /* Görüşme konteynırı stilleri */
 .containercall {
   max-width: 1000px;
   margin: 0 auto;
   background: white;
   border-radius: 15px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
   overflow: hidden;
 }

 .headercall {
   background: linear-gradient(135deg, #25d366, #128C7E);
   color: white;
   padding: 20px;
   text-align: center;
 }

 .headercall h1 {
   margin-bottom: 10px;
   font-size: 22px;
 }

 .contentcall {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 20px;
   padding: 20px;
 }

 @media (max-width: 768px) {
   .contentcall {
     grid-template-columns: 1fr;
   }
 }

 .panel {
   background: #f8f9fa;
   border-radius: 10px;
   padding: 20px;
   border: 1px solid #e9ecef;
 }

 .panel h3 {
   color: #128C7E;
   margin-bottom: 15px;
   display: flex;
   align-items: center;
   gap: 10px;
 }

 .panel h3::before {
   content: '';
   width: 4px;
   height: 20px;
   background: #25d366;
   border-radius: 2px;
 }

 .user-info {
   background: white;
   padding: 15px;
   border-radius: 8px;
   margin-bottom: 15px;
   border-left: 4px solid #25d366;
   text-align: center;
 }

 .user-list {
   max-height: 400px;
   overflow-y: auto;
 }

 .user-item {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 12px 15px;
   margin: 8px 0;
   background: white;
   border-radius: 8px;
   border: 1px solid #e9ecef;
   transition: all 0.3s ease;
   cursor: pointer;
 }

 .user-item:hover {
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
   background: #e9f5ff;
 }

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

 .online-dot {
   width: 8px;
   height: 8px;
   background: #25d366;
   border-radius: 50%;
   animation: pulse 2s infinite;
 }

 .btn {
   padding: 8px 16px;
   border: none;
   border-radius: 6px;
   cursor: pointer;
   font-weight: 600;
   transition: all 0.3s ease;
 }

 .btn-primary {
   background: #25d366;
   color: white;
 }

 .btn-primary:hover {
   background: #1ebe57;
 }

 .call-popup {
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   min-width: 300px;
   max-width: 400px;
   background: white;
   border-radius: 15px;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
   z-index: 1000;
   overflow: hidden;
   text-align: center;
 }

 .overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.7);
   z-index: 999;
 }

 .call-header {
   background: linear-gradient(135deg, #25d366, #128C7E);
   color: white;
   padding: 20px;
 }

 .call-body {
   padding: 20px;
 }

 .call-info {
   font-size: 18px;
   margin: 15px 0;
   color: #333;
 }

 .call-controls {
   display: flex;
   gap: 10px;
   justify-content: center;
   margin: 20px 0;
 }

 .call-controls .btn {
   min-width: 100px;
   padding: 10px 20px;
 }

 .accept {
   background: #28a745;
   color: white;
 }

 .accept:hover {
   background: #218838;
 }

 .reject {
   background: #dc3545;
   color: white;
 }

 .reject:hover {
   background: #c82333;
 }

 .hidden {
   display: none !important;
 }

 audio {
   width: 100%;
   border-radius: 8px;
   margin: 10px 0;
 }

 .stats {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 10px;
   margin-top: 15px;
 }

 .stat-item {
   background: white;
   padding: 10px;
   border-radius: 8px;
   text-align: center;
   border: 1px solid #e9ecef;
 }

 .stat-value {
   font-size: 24px;
   font-weight: bold;
   color: #25d366;
 }

 .stat-label {
   font-size: 12px;
   color: #6c757d;
 }


 /* Mobile Responsive Styles */
 @media (max-width: 768px) {
   .app-container {
     height: 100vh;
     height: 100dvh;
     position: fixed;
     overflow: hidden;
   }

   .side-panel {
     position: fixed;
     top: 0;
     left: 0;
     width: 70%;
     height: 100%;
     transform: translateX(-100%);
     z-index: 1000;
   }

   .side-panel.open {
     transform: translateX(0);
   }

   .chat-panel {
     width: 100%;
     min-width: 100%;
   }

   .chat-back {
     display: flex;
   }

   .chat-actions {
     gap: 10px;
   }

   .header-actions {
     gap: 10px;
   }

   .message {
     max-width: 90%;
   }

   .message-input-container {
     padding: 8px 10px;
     min-height: 60px;
   }

   .input-actions {
     gap: 6px;
     margin-right: 6px;
   }

   .input-icon {
     font-size: 18px;
     width: 25px;
     height: 25px;
   }

   .message-input {
     padding: 8px 12px;
     font-size: 14px;
   }

   .send-button,
   .location-button {
     width: 40px;
     height: 40px;
     min-width: 40px;
     font-size: 16px;
     margin-left: 6px;
   }

   .panel-header,
   .chat-header {
     height: 60px;
     min-height: 60px;
     padding: 0 10px;
   }

   .user-avatar,
   .chat-avatar {
     width: 37px;
     height: 40px;
     min-width: 40px;
     font-size: 18px;
     margin-right: 10px;
   }

   .messages-container {
     padding: 10px;
   }

   .city-item {
     padding: 12px 15px;
     min-height: 60px;
   }

   .city-icon {
     width: 35px;
     height: 35px;
     min-width: 35px;
     font-size: 16px;
     margin-right: 10px;
   }

   .search-container {
     padding: 10px;
   }

   .header-title,
   .chat-title {
     font-size: 16px;
   }

   .city-name {
     font-size: 15px;
   }

   .yuk-ilani {
     padding: 12px;
   }

   .yuk-ilani .content {
     font-size: 13px;
   }

   .yuk-ilani .meta {
     font-size: 10px;
   }

   #callControls {
     bottom: 70px;
     padding: 12px 16px;
     font-size: 13px;
   }

   .call-btn,
   .call-btn-yuk {
     font-size: 10px;
     padding: 3px 6px;
   }
 }

 @media (max-width: 480px) {
   .message {
     max-width: 95%;
     padding: 10px 12px;
   }

   .message-input-container {
     padding: 6px 8px;
     min-height: 55px;
   }

   .input-actions {
     gap: 4px;
     margin-right: 4px;
   }

   .input-icon {
     font-size: 16px;
     width: 22px;
     height: 22px;
   }

   .message-input {
     padding: 6px 10px;
     font-size: 13px;
   }

   .send-button,
   .location-button {
     width: 35px;
     height: 35px;
     min-width: 35px;
     font-size: 14px;
     margin-left: 4px;
   }

   .panel-header,
   .chat-header {
     height: 55px;
     min-height: 55px;
     padding: 0 8px;
   }

   .user-avatar,
   .chat-avatar {
     width: 35px;
     height: 35px;
     min-width: 35px;
     font-size: 16px;
     margin-right: 8px;
   }

   .header-icon,
   .notification-toggle {
     width: 25px;
     height: 25px;
     font-size: 16px;
   }

   .chat-back {
     width: 25px;
     height: 25px;
     font-size: 16px;
     margin-right: 10px;
   }

   .header-title,
   .chat-title {
     font-size: 15px;
   }

   .chat-status,
   .city-desc {
     font-size: 12px;
   }
 }

 /* Very small devices */
 @media (max-width: 360px) {
   .city-item {
     padding: 10px 12px;
     min-height: 55px;
   }

   .city-icon {
     width: 30px;
     height: 30px;
     min-width: 30px;
     font-size: 14px;
     margin-right: 8px;
   }

   .city-name {
     font-size: 14px;
   }

   .city-desc {
     font-size: 11px;
   }

   .district-item {
     font-size: 13px;
     min-height: 35px;
   }

   .message {
     padding: 8px 10px;
   }

   .yuk-ilani {
     padding: 10px;
   }
 }

 /* Ongoing Call Banner */
 /* Ongoing Call Banner Styles */
 .ongoing-call-banner {
   position: fixed;
   top: 0;
   overflow-y: auto;

   left: 0;
   right: 0;
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   color: white;
   padding: 12px 16px;
   box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
   z-index: 91050;
   border-top-left-radius: 16px;
   border-top-right-radius: 16px;
   animation: slideUpBanner 0.3s ease-out;
 }

 @keyframes slideUpBanner {
   from {
     transform: translateY(100%);
     opacity: 0;
   }

   to {
     transform: translateY(0);
     opacity: 1;
   }
 }

 .banner-content {
   display: flex;
   align-items: center;
   justify-content: space-between;
   max-width: 1200px;
   margin: 0 auto;
   gap: 12px;
 }

 .call-info {
   display: flex;
   align-items: center;
   flex: 1;
   min-width: 0;
   font-size: 14px;
   font-weight: 500;
 }

 .call-info i {
   font-size: 16px;
   flex-shrink: 0;
 }

 #ongoingCallInfo {
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   margin-right: 8px;
 }

 .btn-end-call {
   background: #ff4757;
   color: white;
   border: none;
   border-radius: 25px;
   padding: 10px 16px;
   font-size: 14px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   display: flex;
   align-items: center;
   gap: 6px;
   flex-shrink: 0;
   box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
 }

 .btn-end-call:hover {
   background: #ff3742;
   transform: translateY(-1px);
   box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
 }

 .btn-end-call:active {
   transform: translateY(0);
 }

 .btn-end-call i {
   font-size: 14px;
 }

 /* Mobil cihazlar için responsive tasarım */
 @media (max-width: 768px) {
   .ongoing-call-banner {
     padding: 10px 12px;
     border-radius: 0;
   }

   .banner-content {
     gap: 8px;
   }

   .call-info {
     font-size: 13px;
   }

   .call-info i {
     font-size: 14px;
     margin-right: 6px;
   }

   .btn-end-call {
     padding: 8px 12px;
     font-size: 13px;
     border-radius: 20px;
   }

   .btn-end-call i {
     font-size: 12px;
   }

   .btn-text {
     display: inline;
   }
 }

 /* Çok küçük ekranlar için (iPhone SE vb.) */
 @media (max-width: 375px) {
   .ongoing-call-banner {
     padding: 8px 10px;
   }

   .call-info {
     font-size: 12px;
   }

   .btn-end-call {
     padding: 6px 10px;
     font-size: 12px;
   }

   .btn-text {
     display: inline;
   }
 }

 /* Tablet cihazlar için */
 @media (min-width: 769px) and (max-width: 1024px) {
   .ongoing-call-banner {
     margin: 0 20px 10px 20px;
     border-radius: 12px;
     max-width: calc(100% - 40px);
   }
 }

 /* Banner gizli durumu */
 .ongoing-call-banner.hidden {
   display: none;
 }

 /* Banner overlay (arka planı karartmak için) */
 #ongoingCallOverlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.5);
   z-index: 1040;
 }

 #ongoingCallOverlay.hidden {
   display: none;
 }

 @keyframes pulse {
   0% {
     opacity: 1;
   }

   50% {
     opacity: 0.5;
   }

   100% {
     opacity: 1;
   }
 }

 .containercall {
   max-width: 1000px;
   margin: 0 auto;
   background: white;
   border-radius: 15px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
   overflow: hidden;
 }

 .headercall {
   background: linear-gradient(135deg, #25d366, #128C7E);
   color: white;
   padding: 20px;
   text-align: center;
 }

 .headercall h1 {
   margin-bottom: 10px;
   font-size: 22px;
 }

 .contentcall {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 20px;
   padding: 20px;
 }

 @media (max-width: 768px) {
   .content {
     grid-template-columns: 1fr;
   }
 }

 .panel {
   background: #f8f9fa;
   border-radius: 10px;
   padding: 20px;
   border: 1px solid #e9ecef;
 }

 .panel h3 {
   color: #128C7E;
   margin-bottom: 15px;
   display: flex;
   align-items: center;
   gap: 10px;
 }

 .panel h3::before {
   content: '';
   width: 4px;
   height: 20px;
   background: #25d366;
   border-radius: 2px;
 }

 .user-info {
   background: white;
   padding: 15px;
   border-radius: 8px;
   margin-bottom: 15px;
   border-left: 4px solid #25d366;
   text-align: center;
 }

 .user-list {
   max-height: 400px;
   overflow-y: auto;
 }

 .user-item {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 12px 15px;
   margin: 8px 0;
   background: white;
   border-radius: 8px;
   border: 1px solid #e9ecef;
   transition: all 0.3s ease;
   cursor: pointer;
 }

 .user-item:hover {
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
   background: #e9f5ff;
 }

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

 .online-dot {
   width: 8px;
   height: 8px;
   background: #25d366;
   border-radius: 50%;
   animation: pulse 2s infinite;
 }

 @keyframes pulse {
   0% {
     opacity: 1;
   }

   50% {
     opacity: 0.5;
   }

   100% {
     opacity: 1;
   }
 }

 .btn {
   padding: 8px 16px;
   border: none;
   border-radius: 6px;
   cursor: pointer;
   font-weight: 600;
   transition: all 0.3s ease;
 }

 .btn-primary {
   background: #25d366;
   color: white;
 }

 .btn-primary:hover {
   background: #1ebe57;
 }

 .call-popup {
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 90%;
   max-width: 400px;
   background: white;
   border-radius: 15px;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
   z-index: 1000;
   overflow: hidden;
   text-align: center;
 }

 .overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.7);
   z-index: 999;
 }

 .call-header {
   background: linear-gradient(135deg, #25d366, #128C7E);
   color: white;
   padding: 20px;
 }

 .call-body {
   padding: 20px;
 }

 .call-info {
   font-size: 18px;
   margin: 15px 0;
   color: #333;
 }

 .call-controls {
   display: flex;
   gap: 10px;
   justify-content: center;
   margin: 20px 0;
 }

 .call-controls .btn {
   min-width: 100px;
   padding: 10px 20px;
 }

 .accept {
   background: #28a745;
   color: white;
 }

 .accept:hover {
   background: #218838;
 }

 .reject {
   background: #dc3545;
   color: white;
 }

 .reject:hover {
   background: #c82333;
 }

 .overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.7);
   z-index: 999;
 }

 .hidden {
   display: none !important;
 }

 audio {
   width: 100%;
   border-radius: 8px;
   margin: 10px 0;
 }

 .stat-item {
   background: white;
   padding: 10px;
   border-radius: 8px;
   text-align: center;
   border: 1px solid #e9ecef;
 }

 .stat-value {
   font-size: 24px;
   font-weight: bold;
   color: #25d366;
 }

 .stat-label {
   font-size: 12px;
   color: #6c757d;
 }

 .modal-overlay {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(0, 0, 0, 0.7);
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: 10000;
   padding: 20px;
 }

 .call-container {
   width: 100%;
   max-width: 500px;
   background: white;
   border-radius: 16px;
   overflow: hidden;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
   animation: modalAppear 0.3s ease-out;
 }

 @keyframes modalAppear {
   from {
     opacity: 0;
     transform: translateY(20px);
   }

   to {
     opacity: 1;
     transform: translateY(0);
   }
 }

 .header-call {
   background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
   color: white;
   padding: 20px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   position: relative;
 }

 .header-call h4 {
   font-size: 1.2rem;
   font-weight: 600;
 }

 .close-btn {
   background: rgba(255, 255, 255, 0.2);
   border: none;
   color: white;
   width: 36px;
   height: 36px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   transition: background 0.3s;
 }

 .close-btn:hover {
   background: rgba(255, 255, 255, 0.3);
 }

 .content-call {
   padding: 20px;
   max-height: 70vh;
   overflow-y: auto;
 }

 .panel {
   background: #f9f9f9;
   border-radius: 12px;
   padding: 16px;
   margin-bottom: 20px;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
 }

 .panel h3 {
   font-size: 1rem;
   margin-bottom: 15px;
   color: #333;
   display: flex;
   align-items: center;
   gap: 8px;
 }

 .user-info {
   margin-bottom: 15px;
 }

 .user-info div {
   margin-bottom: 8px;
   font-size: 0.9rem;
 }

 .stats {
   display: flex;
   justify-content: space-around;
   text-align: center;
   margin-top: 15px;
   padding: 15px;
   background: #f0f4ff;
   border-radius: 12px;
 }

 .stat-item {
   flex: 1;
   display: flex;
   flex-direction: column;
   align-items: center;
 }

 .stat-value {
   font-size: 1.5rem;
   font-weight: bold;
   color: #2575fc;
   display: flex;
   align-items: center;
   gap: 5px;
 }

 .stat-label {
   font-size: 0.8rem;
   color: #666;
   margin-top: 5px;
 }

 .user-list {
   display: flex;
   flex-direction: column;
   gap: 12px;
 }

 .user-item {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 12px;
   background: white;
   border-radius: 10px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
 }

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

 .online-dot {
   width: 10px;
   height: 10px;
   border-radius: 50%;
   background: #4CAF50;
   animation: pulse 2s infinite;
 }

 @keyframes pulse {
   0% {
     opacity: 1;
   }

   50% {
     opacity: 0.5;
   }

   100% {
     opacity: 1;
   }
 }

 .btn {
   padding: 8px 16px;
   border: none;
   border-radius: 20px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s;
   display: flex;
   align-items: center;
   gap: 5px;
   font-size: 0.9rem;
 }

 .btn-primary {
   background: #2575fc;
   color: white;
 }

 .btn-primary:hover {
   background: #1a68e8;
   transform: translateY(-2px);
 }

 .btn-danger {
   background: #ff4757;
   color: white;
 }

 .btn-danger:hover {
   background: #ff3742;
   transform: translateY(-2px);
 }

 .user-profile {
   display: flex;
   align-items: center;
   gap: 15px;
   margin-bottom: 15px;
   padding-bottom: 15px;
   border-bottom: 1px solid #eee;
 }

 .avatar {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   object-fit: cover;
   border: 3px solid #2575fc;
 }

 .profile-info h4 {
   font-size: 1.1rem;
   margin-bottom: 5px;
 }

 .profile-info p {
   font-size: 0.9rem;
   color: #666;
 }

 .posts-section {
   margin-top: 20px;
 }

 .posts-section h4 {
   margin-bottom: 10px;
   font-size: 1rem;
   color: #333;
 }

 .posts-list {
   display: flex;
   flex-direction: column;
   gap: 10px;
   max-height: 200px;
   overflow-y: auto;
 }

 .post-item {
   padding: 10px;
   background: white;
   border-radius: 8px;
   font-size: 0.85rem;
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
 }

 .post-date {
   font-size: 0.7rem;
   color: #999;
   margin-top: 5px;
 }

 .hidden {
   display: none;
 }

 .user-stats {
   display: flex;
   justify-content: space-around;
   text-align: center;
   margin-top: 15px;
   padding: 10px;
   background: #f0f4ff;
   border-radius: 10px;
 }

 .user-stat-item {
   flex: 1;
 }

 .user-stat-value {
   font-size: 1.2rem;
   font-weight: bold;
   color: #2575fc;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 5px;
 }

 .user-stat-label {
   font-size: 0.75rem;
   color: #666;
   margin-top: 5px;
 }

 /* Responsive tasarım */
 @media (max-width: 480px) {
   .call-container {
     max-width: 100%;
   }

   .content-call {
     padding: 15px;
   }

   .panel {
     padding: 12px;
   }

   .header-call {
     padding: 15px;
   }

   .stats,
   .user-stats {
     flex-direction: row;
     gap: 10px;
     margin-top: 5px;
   }

   .user-profile {
     flex-direction: column;
     text-align: center;
   }
 }

 .general-platform-container {
   padding: 15px;
 }

 .keywords-header {
   border-left: 4px solid #ffc107;
 }

 .keyword-item {
   transition: all 0.3s ease;
   border-left: 3px solid #007bff;
 }

 .keyword-item:hover {
   transform: translateX(5px);
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
 }

 .search-result-item {
   transition: background-color 0.2s ease;
 }

 .search-result-item:hover {
   background-color: #f8f9fa;
 }

 .keyword-actions .btn {
   opacity: 0.7;
   transition: opacity 0.2s ease;
 }

 .keyword-actions .btn:hover {
   opacity: 1;
 }

 .contact-item {
   display: flex;
   align-items: center;
   padding: 12px 15px;
   border-bottom: 1px solid #eee;
   cursor: pointer;
   transition: background-color 0.2s ease;
 }

 .contact-item:hover {
   background-color: #f8f9fa;
 }

 .contact-avatar {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background-color: #25d366;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-right: 12px;
   color: white;
 }

 .contact-info {
   flex: 1;
 }

 .contact-name {
   font-weight: 600;
   margin-bottom: 2px;
 }

 .contact-phone {
   font-size: 12px;
   color: #666;
   margin-bottom: 2px;
 }

 .contact-note {
   font-size: 11px;
   color: #888;
   font-style: italic;
 }

 .contact-meta {
   display: flex;
   align-items: center;
   gap: 5px;
 }

 /* Arama vurgulama stilleri */
 .contact-search-highlight {
   background-color: #ffeb3b;
   padding: 1px 3px;
   border-radius: 2px;
   font-weight: bold;
   color: #000;
 }

 /* Responsive tasarım */
 @media (max-width: 768px) {
   .search-box-mini {
     width: 140px;
   }

   .search-box-mini:focus {
     width: 160px;
   }

   .contact-book-actions {
     flex-wrap: wrap;
   }

   .contact-book-actions .btn {
     flex: 1;
     min-width: 60px;
   }
 }

 /* Animasyonlar */
 .contact-book-item {
   animation: fadeIn 0.3s ease-in-out;
 }

 @keyframes fadeIn {
   from {
     opacity: 0;
     transform: translateY(10px);
   }

   to {
     opacity: 1;
     transform: translateY(0);
   }
 }

 /* Mini arama kutusu stilleri */
 .search-container-mini {
   position: relative;
   display: inline-block;
 }

 .search-box-mini {
   width: 180px;
   padding: 6px 30px 6px 12px;
   border: 1px solid #ddd;
   border-radius: 15px;
   font-size: 12px;
   outline: none;
   transition: all 0.2s ease;
   background-color: #fff;
 }

 .search-box-mini:focus {
   border-color: #25d366;
   box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.1);
   width: 200px;
   /* Focus olduğunda biraz genişlesin */
 }

 .search-icon-mini {
   position: absolute;
   right: 10px;
   top: 50%;
   transform: translateY(-50%);
   color: #6c757d;
   font-size: 12px;
 }

 /* Contact book item stilleri */
 .contact-book-item {
   border: 1px solid #e9ecef;
   border-radius: 8px;
   padding: 12px;
   margin-bottom: 10px;
   background: #fff;
   transition: all 0.2s ease;
 }

 .contact-book-item:hover {
   border-color: #25d366;
   box-shadow: 0 2px 8px rgba(37, 211, 102, 0.1);
 }

 .contact-book-header {
   display: flex;
   justify-content: between;
   align-items: center;
   margin-bottom: 8px;
 }

 .contact-book-name {
   font-weight: 600;
   font-size: 14px;
   color: #333;
   flex: 1;
 }

 .contact-book-phone {
   font-size: 13px;
   color: #666;
   margin-bottom: 6px;
 }

 .contact-book-note {
   font-size: 12px;
   color: #888;
   line-height: 1.4;
 }

 .contact-book-actions {
   display: flex;
   gap: 6px;
   margin-top: 10px;
 }

 .contact-book-actions .btn {
   padding: 4px 8px;
   font-size: 12px;
 }

 .contact-book-meta {
   font-size: 11px;
   color: #999;
   margin-top: 8px;
   padding-top: 8px;
   border-top: 1px solid #f0f0f0;
 }

 /* Arama sonuç bilgisi */
 .search-results-info {
   font-size: 12px;
   color: #6c757d;
   margin-bottom: 10px;
   padding: 5px 10px;
   background: #f8f9fa;
   border-radius: 4px;
   text-align: center;
 }

 /* Oturum istatistikleri stilleri */
 .session-stats-card {
   background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
   border-radius: 10px;
   padding: 15px;
   border: 1px solid #dee2e6;
 }

 .stat-item {
   padding: 10px;
 }

 .stat-number {
   font-size: 24px;
   font-weight: bold;
   margin-bottom: 5px;
 }

 .stat-label {
   font-size: 12px;
   color: #6c757d;
   text-transform: uppercase;
   font-weight: 600;
 }

 /* Aktif oturum stilleri */
 .active-session {
   border-left: 4px solid #007bff !important;
   background-color: rgba(0, 123, 255, 0.02);
 }

 .session-actions .btn {
   opacity: 0.8;
   transition: all 0.2s ease;
 }

 .session-actions .btn:hover {
   opacity: 1;
   transform: translateY(-1px);
 }

 /* Responsive tasarım */
 @media (max-width: 768px) {
   .session-stats-card .row {
     gap: 10px;
   }

   .stat-item {
     padding: 8px;
   }

   .stat-number {
     font-size: 20px;
   }

   .session-actions {
     display: flex;
     flex-direction: column;
     gap: 5px;
   }

   .session-actions .btn {
     margin: 0 !important;
   }
 }

 /* Yeni Session Tag Stili */
 .session-tag {
   font-size: 0.65rem;
   background-color: rgba(0, 0, 0, 0.08);
   padding: 1px 5px;
   border-radius: 4px;
   color: #666;
   margin-right: 5px;
   font-weight: 600;
   text-transform: uppercase;
   display: inline-block;
   vertical-align: middle;
 }

 .message.sent .session-tag {
   background-color: rgba(0, 0, 0, 0.05);
   color: #555;
 }

 .rehber-list,
 .groups-list {
   overflow-y: auto;
 }


 /* Kapatma butonu için stiller */
 .close-sidepanel-btn {
   position: absolute;
   right: 10px;
   top: 10px;
   width: 30px;
   height: 30px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   z-index: 1000;
   background: rgba(0, 0, 0, 0.1);
   transition: all 0.3s ease;
 }

 .close-sidepanel-btn:hover {
   background: rgba(0, 0, 0, 0.2);
   transform: scale(1.1);
 }

 .close-sidepanel-btn i {
   color: #333;
   font-size: 16px;
 }

 /* Sadece mobilde göster */
 @media (min-width: 993px) {
   .close-sidepanel-btn {
     display: none !important;
   }
 }

 /* Side panel mobilde gizli */
 @media (max-width: 992px) {
   .side-panel {
     position: fixed;
     top: 0;
     left: -100%;
     height: 100vh;

     max-width: 380px;
     z-index: 999;
     transition: left 0.3s ease;
     box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
     background: #fff;
   }

   .side-panel.open {
     left: 0;
   }
 }