@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: #0b141a; /* WhatsApp Derin Arka Plan */
    color: #e9edef;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Genel Yardımcı Sınıflar */
.hidden { display: none !important; }

/* Glassmorphism Arka Plan Efektleri - WhatsApp Yeşil Tonları */
.bg-shape { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; }
.circle-1 { top: -10%; left: -5%; width: 400px; height: 400px; background: rgba(0, 168, 132, 0.15); }
.circle-2 { bottom: -10%; right: 10%; width: 500px; height: 500px; background: rgba(0, 92, 75, 0.15); }

/* Ana Düzen */
.crm-layout {
    display: flex;
    height: 100vh;
    padding: 15px;
    gap: 15px;
}

/* Glass Panel Ortak Sınıfı - WhatsApp Menü Tonu */
.glass-panel {
    background: rgba(17, 27, 33, 0.8); /* #111b21 şeffaflığı */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* --- 1. SÜTUN: Ana Menü --- */
.main-nav { width: 80px; align-items: center; padding: 20px 0; justify-content: space-between; }
.brand-logo { font-size: 24px; color: #00a884; margin-bottom: 30px; }
.nav-links { list-style: none; width: 100%; text-align: center; }
.nav-links li { padding: 15px 0; font-size: 20px; color: #8696a0; cursor: pointer; transition: 0.3s; margin-bottom: 10px; }
.nav-links li:hover, .nav-links li.active { color: #00a884; background: rgba(0, 168, 132, 0.1); border-right: 3px solid #00a884; }
.nav-footer { color: #8696a0; cursor: pointer; font-size: 20px; transition: 0.3s; }
.nav-footer:hover { color: #00a884; }

/* --- 2. SÜTUN: Liste Paneli --- */
.list-panel { width: 320px; }
.panel-header { padding: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.panel-header h2 { font-size: 18px; font-weight: 600; margin-bottom: 15px; }
.search-box { background: rgba(32, 44, 51, 0.8); border-radius: 8px; display: flex; align-items: center; padding: 10px 15px; border: 1px solid rgba(255, 255, 255, 0.02); }
.search-box i { color: #8696a0; margin-right: 10px; }
.search-box input { background: transparent; border: none; color: #e9edef; width: 100%; outline: none; }
.list-content { flex: 1; overflow-y: auto; padding: 10px; }
.list-item { display: flex; align-items: center; padding: 12px; border-radius: 10px; cursor: pointer; transition: 0.2s; margin-bottom: 5px; }
.list-item:hover { background: rgba(32, 44, 51, 0.8); }
.avatar { width: 45px; height: 45px; border-radius: 12px; background: linear-gradient(135deg, #00a884, #005c4b); display: flex; justify-content: center; align-items: center; font-weight: bold; margin-right: 15px; color: #e9edef; }
.item-info strong { display: block; font-size: 14px; margin-bottom: 3px; }
.item-info span { font-size: 12px; color: #8696a0; }

/* --- 3. SÜTUN: Chat Paneli --- */
.chat-panel { flex: 1; }
.chat-header { padding: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.active-contact h3 { font-size: 18px; font-weight: 600; }
.text-green { color: #00a884; font-size: 12px; }
.chat-messages { flex: 1; padding: 20px 5%; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); background-size: contain; background-blend-mode: overlay; background-color: rgba(11, 20, 26, 0.4); }
.message { max-width: 65%; min-width: 120px; padding: 6px 7px 8px 9px; border-radius: 7.5px; position: relative; font-size: 14.2px; line-height: 19px; box-shadow: 0 1px 0.5px rgba(11,20,26,.13); word-wrap: break-word; }
.msg-in { align-self: flex-start; background: #202c33; border-top-left-radius: 0; }
.msg-out { align-self: flex-end; background: #005c4b; border-top-right-radius: 0; }
.msg-text { color: #e9edef; }
.msg-meta { float: right; margin-left: 15px; margin-bottom: -4px; margin-top: 2px; }
.msg-time { display: block; font-size: 11px; opacity: 0.7; color: rgba(255,255,255,0.6); }
.chat-input-area { padding: 20px; display: flex; gap: 15px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.chat-input-area input { flex: 1; background: rgba(32, 44, 51, 0.8); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 0 20px; color: #e9edef; outline: none; }
.chat-input-area button { width: 50px; height: 50px; border-radius: 12px; background: #00a884; border: none; color: #111b21; font-size: 18px; cursor: pointer; transition: 0.3s; }
.chat-input-area button:hover { background: #008f6f; }

/* --- 4. SÜTUN: Müşteri Kartı (Rehber) --- */
.contact-info-panel { width: 300px; padding: 20px; align-items: center; overflow-y: auto; }
.profile-avatar-large { width: 90px; height: 90px; border-radius: 24px; background: linear-gradient(135deg, #00a884, #005c4b); display: flex; justify-content: center; align-items: center; font-size: 32px; font-weight: bold; margin-bottom: 20px; color: #e9edef; }
.profile-card { text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 20px; margin-bottom: 20px; width: 100%; }
.profile-card p { color: #8696a0; font-size: 14px; margin-top: 5px; margin-bottom: 15px; }
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.badge { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.badge-new { background: rgba(0, 168, 132, 0.2); color: #00a884; }
.badge-wedding { background: rgba(255, 255, 255, 0.1); color: #e9edef; }

.notes-section { width: 100%; }
.notes-section h3 { font-size: 14px; margin-bottom: 10px; color: #8696a0; display: flex; justify-content: space-between; }
.notes-section textarea { width: 100%; height: 120px; background: rgba(32, 44, 51, 0.8); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 12px; color: #e9edef; outline: none; resize: none; font-size: 13px; margin-bottom: 10px; }
.save-btn { width: 100%; padding: 10px; background: #202c33; border: 1px solid rgba(255, 255, 255, 0.05); color: #00a884; border-radius: 8px; cursor: pointer; transition: 0.3s; font-weight: 500; }
.save-btn:hover { background: #2a3942; }


/* --- AYARLAR MODAL STİLLERİ --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 20, 26, 0.6); /* WA koyu arka plan gölgesi */
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: opacity 0.3s ease;
}

.modal-content {
    width: 500px;
    max-width: 90%;
    max-height: 85vh;
    background: rgba(26, 38, 45, 0.95) !important; /* #1a262d */
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 { font-size: 18px; color: #e9edef; }
.modal-header button { background: transparent; border: none; color: #8696a0; font-size: 20px; cursor: pointer; }
.modal-header button:hover { color: #e9edef; }

.modal-body { padding: 20px; overflow-y: auto; }
.settings-section h4 { font-size: 15px; color: #00a884; margin-bottom: 5px; }
.settings-section p { font-size: 12.5px; color: #8696a0; margin-bottom: 20px; }

/* Etiket Ekleme Formu */
.tag-form {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(32, 44, 51, 0.6);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    margin-bottom: 20px;
}

.tag-form input[type="text"] {
    flex: 1;
    background: #111b21;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    color: #e9edef;
    outline: none;
    font-size: 13.5px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8696a0;
}

.color-picker-wrapper input[type="color"] {
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
}

#add-tag-btn {
    background: #00a884;
    color: #111b21;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13.5px;
}
#add-tag-btn:hover { background: #008f6f; }

/* Etiket Listesi */
.tags-list-container h5 { font-size: 13px; color: #8696a0; margin-bottom: 10px; }
.settings-tags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.settings-tag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111b21;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid transparent;
}

.tag-info-node {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #e9edef;
}

.delete-tag-btn {
    background: transparent;
    border: none;
    color: #ea0038;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
}
.delete-tag-btn:hover { opacity: 1; }