/* WhatsApp CRM Platform - Ana Stil DosyasÄ± */
/* WhatsApp Tema Renkleri:
   --wa-dark-green: #075E54 (navbar, table header)
   --wa-teal: #128C7E (hover states)
   --wa-green: #25D366 (primary actions, buttons, badges)
   --wa-light-green: #DCF8C6 (sent messages)
   --wa-chat-bg: #ECE5DD (chat background)
   --wa-blue-check: #53bdeb (read receipts)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #111b21;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #075E54 0%, #064d44 100%);
    color: white;
    padding: 0.25rem 0; /* COMPACT */
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand img {
    height: 32px; /* COMPACT */
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.nav-brand h2 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

.user-info {
    font-weight: 500;
    font-size: 0.8rem; /* COMPACT */
    opacity: 0.9;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Notification Hub */
.nav-notification-hub {
    position: relative;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.nav-notification-hub:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-bell {
    color: rgba(255, 255, 255, 0.9);
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    background: #ea0038;
    border-radius: 50%;
    border: 2px solid #075E54;
    animation: pulseNotify 2s infinite;
}

@keyframes pulseNotify {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 0, 56, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(234, 0, 56, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(234, 0, 56, 0); }
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 0.75rem;
    display: none;
    z-index: 1001;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: dropIn 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notification-header {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f0f2f5;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #075E54 0%, #128C7E 50%, #25D366 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.login-box h1 {
    color: #075E54;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-box h2 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
}

.login-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #667681;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #111b21;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #d1d7db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #667781;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
    font-weight: 500;
}

.btn-primary {
    background: #25D366;
    color: white;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    background: #128C7E;
    box-shadow: 0 4px 12px rgba(18, 140, 126, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f0f2f5;
    color: #3b4a54;
    border: 1px solid #d1d7db;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #e9edef;
    border-color: #8696a0;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #ea0038;
    color: white;
    border-radius: 8px;
}

.btn-danger:hover {
    background-color: #cf0032;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1f4e0;
    color: #075E54;
    border: 1px solid #25D366;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.data-table thead {
    background: #075E54;
    color: white;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9edef;
}

.data-table tbody tr:hover {
    background-color: #f0f2f5;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-admin {
    background-color: #ea0038;
    color: white;
}

.badge-agent {
    background-color: #128C7E;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #333;
}

.badge-success {
    background-color: #25D366;
    color: white;
}

/* ==========================================================================
   Admin Panel Layout & Components
   ========================================================================== */

.admin-layout {
    display: flex;
    min-height: calc(100vh - 48px); /* Compact offset */
    background-color: #f0f2f5;
}

.admin-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e9edef;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    overflow-y: auto;
    flex-shrink: 0;
    position: sticky;
    top: 48px; /* Compact offset */
    height: calc(100vh - 48px); /* Compact offset */
    z-index: 900;
}

.admin-sidebar-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8696a0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1.25rem;
}

.admin-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.admin-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.5rem;
    color: #3b4a54;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.admin-sidebar-nav li a .nav-icon {
    font-size: 1.1rem;
    width: 24px;
    display: inline-flex;
    justify-content: center;
}

.admin-sidebar-nav li a:hover {
    background-color: #f8f9fa;
    color: #075E54;
}

.admin-sidebar-nav li a.active {
    background-color: rgba(37, 211, 102, 0.08);
    color: #075E54;
    border-left-color: #25D366;
    font-weight: 600;
}

.admin-sidebar-divider {
    height: 1px;
    background-color: #f0f2f5;
    margin: 1rem 1.5rem;
}

.admin-main {
    flex: 1;
    padding: 2.25rem;
    overflow-y: auto;
    min-width: 0;
}

/* Admin Page Header & Breadcrumbs */
.admin-page-header {
    margin-bottom: 2rem;
}

.admin-page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111b21;
    margin: 0.5rem 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.admin-page-header p {
    color: #667781;
    font-size: 0.95rem;
}

.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #8696a0;
    margin-bottom: 0.5rem;
}

.admin-breadcrumb a {
    color: #128C7E;
    text-decoration: none;
    font-weight: 500;
}

.admin-breadcrumb a:hover {
    text-decoration: underline;
}

.admin-breadcrumb .separator {
    color: #d1d7db;
    font-size: 0.8rem;
}

.user-form {
    max-width: 500px;
}

/* Monitor */
.monitor-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.refresh-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.last-update {
    color: #667781;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #667781;
}

/* Chat Container */
.chat-container {
    display: flex;
    height: calc(100vh - 56px);
    max-width: 1600px;
    margin: 0 auto;
    background: #f0f2f5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Chat Sidebar */
.chat-sidebar {
    width: 400px;
    border-right: 1px solid #e9edef;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
}

.sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9edef;
    background: #f0f2f5;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.sidebar-search {
    position: relative;
    margin-top: 0.6rem;
}

.sidebar-search input {
    width: 100%;
    padding: 0.55rem 2.25rem 0.55rem 0.85rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fff;
    font-family: inherit;
}

.sidebar-search input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

.sidebar-search button {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #8696a0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

.sidebar-search button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #3b4a54;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #667781;
    user-select: none;
    transition: color 0.2s;
}

.filter-toggle input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: #25D366;
}

.filter-toggle:hover {
    color: #075E54;
}

.sidebar-header h3 {
    color: #111b21;
    font-size: 1.15rem;
    font-weight: 600;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    transition: background-color 0.15s ease;
    background: white;
}

.conversation-item:hover {
    background-color: #f5f6f6;
}

.conversation-item.active {
    background: rgba(37, 211, 102, 0.08);
    border-left: 3px solid #25D366;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.conversation-header strong {
    color: #111b21;
    font-weight: 600;
}

.unread-badge {
    background: #25D366;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(37, 211, 102, 0.4);
    flex-shrink: 0;
}

.conversation-preview {
    color: #667781;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-time {
    color: #667781;
    font-size: 0.75rem;
}

/* Chat Main */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e9edef;
    background: #f0f2f5;
    min-height: 60px;
}

.chat-contact-info h3 {
    color: #111b21;
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.phone-number {
    color: #667781;
    font-size: 0.85rem;
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.message-search-control {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #d1d7db;
    border-radius: 8px;
    padding: 0.2rem 0.4rem;
    background: white;
}

.message-search-control input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.825rem;
    min-width: 160px;
    font-family: inherit;
}

.message-search-buttons {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.message-search-buttons button {
    border: none;
    background: #f0f2f5;
    color: #3b4a54;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.message-search-buttons button:hover {
    background: #e9edef;
    color: #075E54;
}

#messageSearchMeta {
    font-size: 0.7rem;
    color: #8696a0;
    min-width: 36px;
    text-align: center;
}

.chat-actions #templateBtn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
    font-family: inherit;
}

.chat-actions #templateBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.filter-controls label {
    font-weight: 500;
    margin: 0;
}

.refresh-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Chat Messages - WhatsApp Background */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.25rem;
    background-color: #ECE5DD;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M20 2a2 2 0 100 4 2 2 0 000-4zm-8 8a1.5 1.5 0 100 3 1.5 1.5 0 000-3zm16 0a1.5 1.5 0 100 3 1.5 1.5 0 000-3zm-8 10a1 1 0 100 2 1 1 0 000-2zm-12 8a1.5 1.5 0 100 3 1.5 1.5 0 000-3zm24 0a1.5 1.5 0 100 3 1.5 1.5 0 000-3z' fill='%23d5cec5' fill-opacity='0.4'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='200' height='200' fill='url(%23p)'/%3E%3C/svg%3E");
}

.message {
    margin-bottom: 0.35rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.message-sent {
    align-items: flex-end;
}

.message-received {
    align-items: flex-start;
}

.message-content {
    max-width: 65%;
    min-width: 100px;
    padding: 0.4rem 0.6rem 0.2rem 0.6rem;
    border-radius: 7.5px;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.message-sent .message-content {
    background: #d9fdd3;
    border-top-right-radius: 7.5px;
    border-bottom-right-radius: 0;
    color: #111b21;
}

.message-sent .message-content::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 13px 13px;
    border-color: transparent transparent #d9fdd3 transparent;
}

.message-received .message-content {
    background-color: #FFFFFF;
    border-bottom-left-radius: 0;
    color: #111b21;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.message-received .message-content::before {
    content: '';
    position: absolute;
    left: -8px;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 13px 13px 0;
    border-color: transparent #FFFFFF transparent transparent;
}

.message-time {
    font-size: 0.6875rem;
    color: #667781;
    margin-top: 0.1rem;
    padding: 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.message-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-left: 0.15rem;
}

.message-status-icon--sent {
    color: #8696a0;
}

.message-status-icon--delivered {
    color: #8696a0;
}

.message-status-icon--read {
    color: #53bdeb;
}

.message-status-icon--failed {
    color: #ea0038;
}

.message-quote-btn {
    position: absolute;
    top: 8px;
    right: -8px;
    border: none;
    background: transparent;
    color: #8696a0;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.15s ease;
    padding: 0.15rem 0.3rem;
}

.message:hover .message-quote-btn {
    opacity: 1;
}

.message-quote-btn:hover {
    color: #075E54;
}

.quoted-message-block {
    border-left: 3px solid rgba(37, 211, 102, 0.6);
    margin-bottom: 0.3rem;
    padding-left: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
}

.message-received .quoted-message-block {
    border-left-color: #075E54;
}

.quoted-message-author {
    font-weight: 600;
    color: #075E54;
    margin-bottom: 0.1rem;
    font-size: 0.78rem;
}

.quoted-message-text {
    color: #667781;
    word-break: break-word;
    font-size: 0.8rem;
}

.reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: white;
    border-left: 4px solid #25D366;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}

.reply-preview-title {
    font-size: 0.78rem;
    color: #075E54;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.reply-preview-text {
    font-size: 0.875rem;
    color: #111b21;
}

#cancelReplyPreview {
    border: none;
    background: rgba(0, 0, 0, 0.04);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: #8696a0;
    transition: all 0.15s ease;
}

#cancelReplyPreview:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #3b4a54;
}

.message-search-hit .message-content {
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.5);
}

.message-search-hit--active .message-content {
    box-shadow: 0 0 0 2px #075E54;
}

.chat-input-area {
    padding: 0.6rem 0.75rem;
    border-top: 1px solid #e9edef;
    background: #f0f2f5;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-actions {
    display: flex;
    gap: 0.4rem;
    align-items: flex-end;
    background: white;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    border: 1px solid #e9edef;
}

.message-form textarea {
    flex: 1;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    height: 40px;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    line-height: 1.4;
    padding: 0.45rem 0.6rem;
    font-family: inherit;
    overflow-y: auto;
}

.chat-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #667781;
    font-size: 1.1rem;
    background: #ECE5DD;
    gap: 0.75rem;
}

.chat-placeholder::before {
    content: '💬';
    font-size: 3rem;
    opacity: 0.5;
}

/* Medya Mesajları */
.message-media {
    max-width: 100%;
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
}

.message-image {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    object-fit: cover;
    background: #f0f2f5;
}

.message-image:hover {
    opacity: 0.9;
}

.message-media--sticker {
    display: inline-block;
    background: transparent;
}

.message-sticker {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    cursor: pointer;
}

.message-video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
    background: #000;
}

.message-audio {
    width: 100%;
    max-width: 300px;
    min-width: 250px;
}

.document-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(7, 94, 84, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border: 1px solid rgba(7, 94, 84, 0.1);
}

.document-link:hover {
    background: rgba(7, 94, 84, 0.1);
}

.document-icon {
    font-size: 1.5rem;
}

.document-name {
    flex: 1;
    font-weight: 500;
}

.media-caption {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9375rem;
    line-height: 1.4;
    color: inherit;
}

/* Dosya Yükleme */
.file-input-wrapper {
    position: relative;
}

.template-header-media input[type="file"] {
    display: block;
    margin-top: 0.35rem;
}

.btn-file {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    color: #54656f;
    min-width: 40px;
    height: 40px;
}

.btn-file:hover {
    background: #f0f2f5;
    color: #075E54;
}

.file-preview {
    margin-top: 0.4rem;
    padding: 0.6rem 0.85rem;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e9edef;
    font-size: 0.85rem;
}

.btn-remove-file {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #8696a0;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s;
}

.btn-remove-file:hover {
    color: #ea0038;
    background: #fef2f2;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 20, 26, 0.6);
    overflow: auto;
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: white;
    margin: 8% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.25s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 0.75rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: #8696a0;
    cursor: pointer;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.close-modal:hover {
    color: #3b4a54;
    background: #f0f2f5;
}

.modal-content h2 {
    margin-bottom: 1.25rem;
    color: #111b21;
    font-weight: 600;
    font-size: 1.2rem;
}

/* New Chat Preview Box */
.new-chat-preview {
    background: #ECE5DD;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

.new-chat-preview-label {
    font-size: 0.78rem;
    color: #075E54;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.new-chat-preview-bubble {
    background: #d9fdd3;
    border-radius: 7.5px;
    border-bottom-right-radius: 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #111b21;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    white-space: pre-wrap;
    word-wrap: break-word;
    position: relative;
    max-width: 85%;
    margin-left: auto;
}

.new-chat-preview-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 13px 13px;
    border-color: transparent transparent #d9fdd3 transparent;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: #667781;
    font-size: 0.85rem;
}

/* Scrollbar Stilleri */
.chat-messages::-webkit-scrollbar,
.conversations-list::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.conversations-list::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb,
.conversations-list::-webkit-scrollbar-thumb {
    background: rgba(7, 94, 84, 0.2);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.conversations-list::-webkit-scrollbar-thumb:hover {
    background: rgba(7, 94, 84, 0.35);
}

/* Mesaj baloncukları için daha iyi görünüm */
.message-sent .message-content {
    margin-left: auto;
}

.message-received .message-content {
    margin-right: auto;
}

/* Template Detail Popup */
.template-detail-popup {
    max-width: 700px !important;
}

.template-detail-popup .swal2-html-container {
    max-height: 70vh;
    overflow-y: auto;
    text-align: left;
}

.template-detail-popup .swal2-html-container::-webkit-scrollbar {
    width: 6px;
}

.template-detail-popup .swal2-html-container::-webkit-scrollbar-track {
    background: transparent;
}

.template-detail-popup .swal2-html-container::-webkit-scrollbar-thumb {
    background: rgba(7, 94, 84, 0.2);
    border-radius: 3px;
}

/* Template attachment indicator */
.template-attachment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #e8f5e9;
    color: #075E54;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ============================
   ADMIN PANEL LAYOUT & SIDEBAR
   ============================ */

.admin-layout {
    display: flex;
    min-height: calc(100vh - 56px);
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0a3d36 0%, #075E54 40%, #0a6b5e 100%);
    padding: 1.5rem 0;
    flex-shrink: 0;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.admin-sidebar-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.5rem 1.5rem 0.5rem;
    margin-top: 0.5rem;
}

.admin-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.admin-sidebar-nav li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left-color: rgba(37, 211, 102, 0.5);
}

.admin-sidebar-nav li a.active {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border-left-color: #25D366;
    font-weight: 600;
}

.admin-sidebar-nav li a .nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.admin-sidebar-nav li a .nav-badge {
    margin-left: auto;
    background: #ea0038;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card--primary::after { background: #25D366; }
.stat-card--info::after { background: #128C7E; }
.stat-card--warning::after { background: #ffc107; }
.stat-card--danger::after { background: #ea0038; }

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-card-title {
    color: #667781;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111b21;
    line-height: 1.2;
}

.stat-card-desc {
    font-size: 0.8rem;
    color: #8696a0;
    margin-top: 0.5rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.quick-action-card {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    border: 1px solid #e9edef;
}

.quick-action-card:hover {
    background: #f8f9fa;
    border-color: #25D366;
    transform: translateX(4px);
}

.quick-action-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    background: #f0f2f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-text {
    font-weight: 600;
    color: #111b21;
    font-size: 0.95rem;
}

.quick-action-text small {
    display: block;
    font-weight: 400;
    color: #667781;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Notification UI */
.notification-bell {
    font-size: 1.15rem; /* Slightly smaller to fit header */
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
    display: block;
}

.nav-notification-hub {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 1rem;
    cursor: pointer;
    padding: 0.45rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
}

.nav-notification-hub:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nav-notification-hub:hover .notification-bell {
    color: #fff;
    transform: scale(1.05);
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #FF3B30;
    border: 2px solid #075E54;
    border-radius: 50%;
    display: none;
    z-index: 2;
}

.notification-dropdown {
    position: absolute;
    top: 130%;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid #e9edef;
}

.notification-header {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9edef;
    font-weight: 600;
    font-size: 0.9rem;
    color: #111b21;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f2f5;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item-title {
    font-weight: 600;
    color: #111b21;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.notification-item-desc {
    font-size: 0.8rem;
    color: #667781;
}

.notification-item-time {
    font-size: 0.7rem;
    color: #8696a0;
    margin-top: 4px;
}

.sla-badge {
    background: #fff4f4;
    color: #ea0038;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Sidebar Badge Adjustment */
.admin-sidebar-nav li a .nav-badge {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #ea0038;
    box-shadow: 0 2px 6px rgba(234, 0, 56, 0.3);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
}

.stat-card--primary::before {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.stat-card--info::before {
    background: linear-gradient(135deg, #53bdeb, #3498db);
}

.stat-card--warning::before {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.stat-card--danger::before {
    background: linear-gradient(135deg, #ea0038, #ff4444);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.stat-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #667781;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-card--primary .stat-card-icon {
    background: rgba(37, 211, 102, 0.1);
}

.stat-card--info .stat-card-icon {
    background: rgba(83, 189, 235, 0.1);
}

.stat-card--warning .stat-card-icon {
    background: rgba(255, 193, 7, 0.1);
}

.stat-card--danger .stat-card-icon {
    background: rgba(234, 0, 56, 0.1);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111b21;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-card-desc {
    font-size: 0.8rem;
    color: #8696a0;
}

/* Enhanced Admin Sections */
.admin-section {
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.admin-section:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.admin-section h2 {
    margin-bottom: 1.25rem;
    color: #111b21;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-section h2 .section-icon {
    font-size: 1.2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Enhanced Tables */
.admin-layout .data-table {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9edef;
    box-shadow: none;
}

.admin-layout .data-table thead {
    background: linear-gradient(135deg, #075E54 0%, #064d44 100%);
}

.admin-layout .data-table th {
    font-weight: 600;
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.admin-layout .data-table td {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    vertical-align: middle;
}
.quick-action-text small {
    font-size: 0.8rem;
    color: #667781;
    display: block;
    margin-top: 2px;
}

.notification-item {
    display: block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.2s;
}

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

.notification-item:last-child {
    border-bottom: none;
}

.notification-item-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #ca1c1c; /* Urgent red for SLA */
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-item-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #54656f;
}

.notification-item-time {
    font-size: 0.7rem;
    color: #8696a0;
    margin-top: 6px;
}

.sla-badge {
    background: #fff4f4;
    color: #ea0038;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Sidebar Badge Adjustment */
.admin-sidebar-nav li a .nav-badge {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #ea0038;
    color: white;
    box-shadow: 0 2px 6px rgba(234, 0, 56, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
}

.stat-card--primary::before { background: linear-gradient(135deg, #25D366, #128C7E); }
.stat-card--info::before { background: linear-gradient(135deg, #53bdeb, #3498db); }
.stat-card--warning::before { background: linear-gradient(135deg, #ffc107, #ff9800); }
.stat-card--danger::before { background: linear-gradient(135deg, #ea0038, #ff4444); }

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.stat-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #667781;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-card--primary .stat-card-icon { background: rgba(37, 211, 102, 0.1); }
.stat-card--info .stat-card-icon { background: rgba(83, 189, 235, 0.1); }
.stat-card--warning .stat-card-icon { background: rgba(255, 193, 7, 0.1); }
.stat-card--danger .stat-card-icon { background: rgba(234, 0, 56, 0.1); }

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111b21;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-card-desc {
    font-size: 0.8rem;
    color: #8696a0;
}

/* Admin Sections */
.admin-section {
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.admin-section:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.admin-section h2 {
    margin-bottom: 1.25rem;
    color: #111b21;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tables */
.admin-layout .data-table {
    border: 1px solid #e9edef;
    box-shadow: none;
    border-radius: 12px;
    overflow: hidden;
}

.admin-layout .data-table thead {
    background: linear-gradient(135deg, #075E54 0%, #064d44 100%);
}

.admin-layout .data-table th {
    font-weight: 600;
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.85rem 1rem;
    color: white;
}

.admin-layout .data-table td {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-layout .data-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.admin-layout .data-table tbody tr:hover {
    background-color: rgba(37, 211, 102, 0.04);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e9edef;
    transition: all 0.2s ease;
}

.quick-action-card:hover {
    border-color: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.12);
    transform: translateY(-1px);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.quick-action-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: #111b21;
}

.quick-action-text small {
    display: block;
    font-weight: 400;
    color: #667781;
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

/* Notification Items (SLA Alerts) */
.notification-item {
    display: block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.2s;
}

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

.notification-item-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #ca1c1c;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-item-desc {
    font-size: 0.8rem;
    color: #54656f;
}

.notification-item-time {
    font-size: 0.7rem;
    color: #8696a0;
    margin-top: 6px;
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
        height: calc(100vh - 50px);
    }
    
    .chat-sidebar {
        width: 100%;
        height: 40%;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid #e9edef;
        padding: 0.5rem 0;
    }

    .admin-main {
        padding: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

/* Hızlı Cevaplar (Quick Replies) */
.quick-replies-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #e9edef;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1010;
}

.quick-reply-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.quick-reply-item:hover, .quick-reply-item.active {
    background: #f0f2f5;
    border-left: 3.5px solid #25D366;
}

.quick-reply-item .shortcut {
    font-weight: 700;
    color: #075E54;
}

.quick-reply-item .content {
    font-size: 0.85rem;
    color: #667781;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Utility Classes */
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04); }
.rounded-lg { border-radius: 12px; }
.input-group { display: flex; width: 100%; }
.input-group-text {
    padding: 0.5rem 0.85rem;
    background: #f0f2f5;
    border: 1.5px solid #d1d7db;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #54656f;
}
.input-group input {
    border-radius: 0 10px 10px 0 !important;
    flex: 1;
}
