.message-input-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    background: #f0f0f0;
    border-top: 1px solid #ddd;
    transition: all 0.3s ease;
    min-height: 60px;
}

.message-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    max-height: 120px;
    min-height: 40px;
    font-family: inherit;
    line-height: 1.4;
    transition: height 0.2s ease;
}

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

.input-actions {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.input-icon {
    font-size: 18px;
    color: #666;
    margin: 0 5px;
    cursor: pointer;
}

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

.location-button:hover,
.send-button:hover {
    background: #128C7E;
}

.send-button:active {
    transform: scale(0.95);
}

/* ilan image */
.ilan-image {
    margin-bottom: 10px;
    text-align: center;
}

.ilan-image img {
    max-width: 150px;
    max-height: 100px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.url-buttons {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.url-button,
.copy-url-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.url-button {
    background: #1877f2;
    color: white;
}

.url-button:hover {
    background: #166fe5;
}

.copy-url-btn {
    background: #6c757d;
    color: white;
}

.copy-url-btn:hover {
    background: #5a6268;
}

.city-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.delete-room {
    padding: 4px 8px;
    background: #dc3545;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.delete-room:hover {
    background: #c82333;
}

/* Bildirim stilleri */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid #007bff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
    max-width: 300px;
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.info {
    border-left-color: #17a2b8;
}

.notification-content {
    padding: 12px 16px;
    display: flex;
    justify-content: between;
    align-items: center;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: 12px;
}

.whatsapp-notification {
    margin: 10px 0;
    animation: slideInUp 0.3s ease;
}

.whatsapp-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    max-width: 100%;
}

.whatsapp-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #1877f2, #0d5cb6);
    color: white;
}

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

.whatsapp-avatar i {
    font-size: 20px;
    color: #1877f2;
}

.whatsapp-user-info {
    flex: 1;
}

.whatsapp-username {
    font-weight: bold;
    font-size: 16px;
}

.whatsapp-time {
    font-size: 12px;
    opacity: 0.8;
}

.whatsapp-badge {
    margin-left: auto;
}

.success-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.group-link {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.group-url {
    color: #1877f2;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-url:hover {
    text-decoration: underline;
}

.whatsapp-content {
    padding: 15px;
}

.whatsapp-message {
    line-height: 1.5;
    color: #333;
}

.whatsapp-actions {
    display: flex;
    gap: 10px;
    padding: 0 15px 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.whatsapp-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.whatsapp-btn:hover {
    background: #f8f9fa;
    border-color: #1877f2;
    color: #1877f2;
}

.whatsapp-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
}

.source-badge {
    background: #1877f2;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* Link stilleri */
.whatsapp-group-link,
.message-link,
.phone-link {
    color: #1877f2;
    text-decoration: none;
    font-weight: 500;
}

.whatsapp-group-link:hover,
.message-link:hover,
.phone-link:hover {
    text-decoration: underline;
}

.phone-link {
    color: #25d366;
}

/* Animasyonlar */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

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

/* whatsapp Mesaj Stilleri */
.whatsapp-message {
    margin: 10px 0;
    animation: slideInUp 0.3s ease;
}

.whatsapp-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    max-width: 100%;
}

.whatsapp-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #1877f2, #0d5cb6);
    color: white;
}

.whatsapp-avatar {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.whatsapp-avatar i {
    font-size: 18px;
    color: #1877f2;
}

.whatsapp-user-info {
    flex: 1;
}

.whatsapp-username {
    font-weight: bold;
    font-size: 14px;
}

.whatsapp-time {
    font-size: 11px;
    opacity: 0.8;
}

.whatsapp-badge {
    margin-left: auto;
}

.success-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.group-link {
    padding: 8px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.group-url {
    color: #1877f2;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.group-url:hover {
    text-decoration: underline;
}

.whatsapp-content {
    padding: 12px 15px;
}

.whatsapp-message-text {
    line-height: 1.4;
    color: #333;
    white-space: pre-line;
    font-size: 14px;
}

.whatsapp-actions {
    display: flex;
    gap: 8px;
    padding: 0 15px 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.whatsapp-btn {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.whatsapp-btn:hover {
    background: #f8f9fa;
    border-color: #1877f2;
    color: #1877f2;
}

/* Kendi mesajlarım için farklı stil */
.my-whatsapp-message .whatsapp-card {
    border-color: #25d366;
}

.my-whatsapp-message .whatsapp-header {
    background: linear-gradient(135deg, #25d366, #128C7E);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1099;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    overflow: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background: #f5f5f5;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

#last24HoursTable {
    width: 100%;
    border-collapse: collapse;
}

#last24HoursTable th,
#last24HoursTable td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#last24HoursTable th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.message-cell {
    max-width: 300px;
    word-break: break-word;
}

.url-cell {
    max-width: 200px;
    word-break: break-all;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.copy-btn:hover {
    background: #0056b3;
}

.connection-status {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 5px 0;
}

.status-connected {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-disconnected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-connecting {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.qr-container {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 10px 0;
}

.qr-container img {
    max-width: 200px;
    height: auto;
    border: 1px solid #ddd;
}

.whatsapp-connection-modal .modal-content {
    border-radius: 15px;
}

.whatsapp-connection-modal .modal-header {
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: white;
    border-radius: 15px 15px 0 0;
}

.group-list-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.group-list-item:hover {
    background-color: #f8f9fa;
    border-color: #25d366;
}

.group-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.group-actions {
    margin-top: 8px;
}

.group-actions .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

.city-item {
    cursor: pointer;
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

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

.city-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.city-info {
    flex: 1;
    margin-left: 12px;
}

.city-name {
    font-weight: 600;
    margin-bottom: 4px;
}

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

.notification-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.notification-toggle:hover {
    background-color: #f0f0f0;
}

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

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

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label {
    cursor: pointer;
    font-weight: 500;
}

#modeDescription {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
}

#startBulkSend:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Çoklu Oturum Stilleri */
.sessions-container {
    max-height: 500px;
    overflow-y: auto;
}

.session-item {
    transition: all 0.3s ease;
}

.session-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.session-quick-item.active {
    background-color: #e7f3ff;
    border-left: 3px solid #0d6efd;
}

.qr-container {
    padding: 20px;
    background: white;
    border-radius: 10px;
    display: inline-block;
}

.qr-container img {
    max-width: 250px;
    height: auto;
}

/* Dropdown genişliği */
.dropdown-menu {
    min-width: 250px;
}

.app-header-stats {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 2px;
}

.stat-value {
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: #495057;
}

.chat-type-selector {
    display: flex;
    border-bottom: 1px solid #e9ecef;
}

.chat-type-btn {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    font-size: 14px;
}

.chat-type-btn.active {
    border-bottom-color: #25d366;
    color: #25d366;
    background-color: #f8f9fa;
}

.chat-type-btn:hover:not(.active) {
    background-color: #f8f9fa;
}

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

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

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.contact-info {
    flex: 1;
    margin-left: 12px;
}

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

.contact-last-message {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.contact-meta {
    text-align: right;
}

.contact-time {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.unread-badge {
    background: #25d366;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}

.general-chat-info {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.general-chat-info i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #25d366;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .app-header-stats {
        padding: 8px;
    }

    .stat-value {
        font-size: 14px;
    }

    .chat-type-btn {
        padding: 10px 6px;
        font-size: 12px;
    }

    .contact-last-message {
        max-width: 150px;
    }

    .session-actions {
        flex-direction: column;
    }

    .session-actions .btn {
        margin-bottom: 5px;
    }
}

.online-users-list {
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.online-user-item {
    transition: background-color 0.2s ease;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-animation {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Online kullanıcı badge stili */
.header-icon {
    position: relative;
    cursor: pointer;
}

.badge {
    font-size: 0.7em;
}

.avatar-circle-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.stat-item:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.table td {
    vertical-align: middle;
    font-size: 0.875rem;
}

/* Okunmamış mesaj badge stili */
.unread-badge {
    background: #ff4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

/* Toast bildirim stili */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    max-width: 300px;
}

.toast-notification.info {
    border-left-color: #17a2b8;
}

.toast-notification .toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-notification button {
    background: #007bff;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 12px;
}

/* Toplam badge stili */
#total-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
}

.groups-list {
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    /* sayfa yüksekliğine göre ayarlar */
    height: 100%;
}

/* Mobil cihazlar için */
@media (max-width: 768px) {
    .groups-list {
        max-height: calc(100vh - 150px);
    }
}