/* assets/css/style.css */
:root { --wa-primary: #128C7E; --wa-primary-dark: #075E54; --wa-light: #25D366; --wa-bg: #ece5dd; --wa-chat-bg: #e5ddd5; --text-dark: #303030; --text-light: #ffffff; --msg-received: #ffffff; --msg-sent: #dcf8c6; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }
body { background-color: var(--wa-bg); display: flex; justify-content: center; align-items: center; height: 100dvh; overflow: hidden; }

.auth-container { background-color: var(--text-light); width: 100%; max-width: 400px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); overflow: hidden; display: flex; flex-direction: column; }
.auth-header { background-color: var(--wa-primary-dark); color: var(--text-light); text-align: center; padding: 20px; font-size: 1.5rem; font-weight: bold; }
.auth-header i { margin-right: 10px; color: var(--wa-light); }
.auth-body { padding: 30px 20px; }
.form-group { margin-bottom: 20px; position: relative; }
.form-group i { position: absolute; left: 15px; top: 14px; color: #888; }
.form-group input { width: 100%; padding: 12px 12px 12px 40px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; outline: none; }
.form-group input:focus { border-color: var(--wa-primary); }
.btn-submit { width: 100%; padding: 12px; background-color: var(--wa-light); color: var(--text-light); border: none; border-radius: 5px; font-size: 1.1rem; font-weight: bold; cursor: pointer; }
.toggle-form { text-align: center; margin-top: 15px; color: var(--wa-primary); cursor: pointer; font-size: 0.9rem; font-weight: bold; }
.alert { padding: 10px; margin-bottom: 15px; border-radius: 5px; text-align: center; display: none; }
.alert.error { background-color: #ffcccc; color: #cc0000; display: block;} .alert.success { background-color: #d4edda; color: #155724; display: block;}
.brand-signature { text-align: center; padding: 15px; font-size: 0.8rem; color: #888; background: #f9f9f9; border-top: 1px solid #eee; margin-top: auto; }
.brand-signature i { color: #e25555; }

.app-container { width: 100%; max-width: 600px; height: 100%; display: flex; flex-direction: column; background-color: var(--wa-chat-bg); background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); box-shadow: 0 0 20px rgba(0,0,0,0.1); position: relative; overflow: hidden; }
.chat-sidebar { position: absolute; top: 0; left: -280px; width: 260px; height: 100%; background-color: #fff; z-index: 1001; transition: 0.3s ease; display: flex; flex-direction: column; box-shadow: 2px 0 10px rgba(0,0,0,0.2); }
.chat-sidebar.open { left: 0; }
.chat-sidebar-header { background: var(--wa-primary-dark); color: white; padding: 20px; font-size: 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.chat-sidebar-links { display: flex; flex-direction: column; flex: 1; overflow-y: auto; padding: 10px 0; }
.chat-sidebar-links a { padding: 15px 20px; color: var(--text-dark); text-decoration: none; font-size: 1rem; border-bottom: 1px solid #eee; display: flex; align-items: center; }
.chat-sidebar-links a i { margin-right: 15px; color: var(--wa-primary); font-size: 1.2rem; width: 25px; text-align: center; }
.chat-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: none; }
.chat-overlay.active { display: block; }
.chat-header { background-color: var(--wa-primary-dark); color: var(--text-light); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.chat-messages { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; }
.message-row { display: flex; align-items: flex-end; margin-bottom: 15px; } .message-row.mine { justify-content: flex-end; } .message-row.theirs { justify-content: flex-start; }
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; margin: 0 8px; border: 1px solid rgba(18, 140, 126, 0.3); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.message { max-width: 75%; padding: 10px 15px; border-radius: 10px; position: relative; font-size: 0.95rem; line-height: 1.4; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.message.received { background-color: var(--msg-received); border-bottom-left-radius: 0; }
.message.sent { background-color: var(--msg-sent); border-bottom-right-radius: 0; }
.sender-name { font-size: 0.8rem; font-weight: bold; color: var(--wa-primary); display: block; }
.time { font-size: 0.7rem; color: #888; float: right; margin-left: 10px; margin-top: 5px; }
.chat-input-area { background-color: #f0f0f0; padding: 10px; display: flex; align-items: center; z-index: 10; position: relative;}
.chat-input-area input { flex: 1; padding: 12px 15px; border: none; border-radius: 25px; font-size: 1rem; outline: none; }
.chat-input-area button { background-color: var(--wa-primary); color: var(--text-light); border: none; width: 45px; height: 45px; border-radius: 50%; margin-left: 10px; cursor: pointer; font-size: 1.2rem; display: flex; justify-content: center; align-items: center; }
.bottom-nav { background-color: #fff; display: flex; justify-content: space-around; align-items: center; height: 60px; border-top: 1px solid #ddd; z-index: 10; }
.bottom-nav a { text-decoration: none; color: #888; display: flex; flex-direction: column; align-items: center; font-size: 0.75rem; width: 100%; transition: 0.3s; }
.bottom-nav a i { font-size: 1.3rem; margin-bottom: 3px; }
.bottom-nav a.active { color: var(--wa-primary); font-weight: bold; }

/* ANİMASYONLU RÜTBELER VE FOTOĞRAFLAR */
.legendary-name { background: linear-gradient(90deg, #ff8a00, #e52e71, #9c27b0, #128C7E, #ff8a00); background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradientGlow 3s ease infinite; font-weight: 900 !important; font-size: 0.9rem !important; }
@keyframes gradientGlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.role-badge { display: inline-block; font-size: 0.65rem; font-weight: bold; border-radius: 4px; padding: 3px 6px; letter-spacing: 0.5px; }
.badge-mod { background: rgba(0, 191, 255, 0.1); color: #00bfff; border: 1px solid rgba(0, 191, 255, 0.3); animation: pulseIce 2s infinite; }
@keyframes pulseIce { 0% { box-shadow: 0 0 0 0 rgba(0, 191, 255, 0.4); } 70% { box-shadow: 0 0 5px 5px rgba(0, 191, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 191, 255, 0); } }
.badge-chatadmin { background: rgba(255, 215, 0, 0.1); color: #cca400; border: 1px solid rgba(255, 215, 0, 0.3); animation: pulseGold 2s infinite; }
@keyframes pulseGold { 0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); } 70% { box-shadow: 0 0 5px 5px rgba(255, 215, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); } }
.badge-admin { background: rgba(226, 85, 85, 0.1); color: #e25555; border: 1px solid rgba(226, 85, 85, 0.3); animation: pulseRed 2s infinite; }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(226, 85, 85, 0.4); } 70% { box-shadow: 0 0 5px 5px rgba(226, 85, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 85, 85, 0); } }
.msg-content-text { margin-top: 3px; display: block; }
#attach-btn, #emoji-btn { color: #888; font-size: 1.4rem; margin-right: 12px; cursor: pointer; transition: 0.3s; }
#attach-btn:hover, #emoji-btn:hover { color: var(--wa-primary); }
.chat-image { max-width: 100%; border-radius: 8px; margin-top: 5px; cursor: pointer; border: 2px solid rgba(0,0,0,0.05); }

/* 🌟 YENİ: EMOJİ VE GIF PANELİ 🌟 */
.picker-panel { position: absolute; bottom: 65px; left: 10px; right: 10px; height: 250px; background: #fff; border-radius: 10px; box-shadow: 0 -5px 15px rgba(0,0,0,0.1); display: none; flex-direction: column; z-index: 100; overflow: hidden; border: 1px solid #ddd; }
.picker-panel.active { display: flex; }
.picker-tabs { display: flex; background: #f0f0f0; border-bottom: 1px solid #ddd; }
.picker-tab { flex: 1; text-align: center; padding: 10px; font-weight: bold; cursor: pointer; color: #888; font-size:0.9rem;}
.picker-tab.active { color: var(--wa-primary); border-bottom: 3px solid var(--wa-primary); background: #fff;}
.picker-content { flex: 1; overflow-y: auto; padding: 10px; display: none; }
.picker-content.active { display: block; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.emoji-item { font-size: 1.6rem; text-align: center; cursor: pointer; padding: 5px; border-radius: 5px; transition: 0.2s; user-select: none;}
.emoji-item:hover { background: #eee; }
.gif-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.gif-item { width: 100%; height: 100px; object-fit: cover; border-radius: 5px; cursor: pointer; }

/* KARANLIK MOD GÜNCELLEMESİ */
body.dark-mode { --wa-primary: #00a884; --wa-primary-dark: #1f2c34; --wa-light: #00a884; --wa-bg: #111b21; --wa-chat-bg: #0b141a; --text-dark: #e9edef; --text-light: #e9edef; --msg-received: #202c33; --msg-sent: #005c4b; }
body.dark-mode .chat-input-area { background-color: #1f2c34; } body.dark-mode .chat-input-area input { background-color: #2a3942; color: #e9edef; } body.dark-mode .bottom-nav { background-color: #1f2c34; border-top-color: #2a3942; } body.dark-mode .bottom-nav a { color: #8696a0; } body.dark-mode .bottom-nav a.active { color: #00a884; } body.dark-mode .chat-sidebar { background-color: #111b21; } body.dark-mode .chat-sidebar-links a { color: #e9edef; border-bottom-color: #2a3942; } body.dark-mode .chat-sidebar-links a:hover { background-color: #202c33; } body.dark-mode .chat-header { box-shadow: none; border-bottom: 1px solid #2a3942; } body.dark-mode .brand-signature { background-color: #111b21; border-top-color: #2a3942; }
/* Karanlık mod Emoji Panel */
body.dark-mode .picker-panel { background: #1f2c34; border-color: #2a3942; }
body.dark-mode .picker-tabs { background: #111b21; border-color: #2a3942; }
body.dark-mode .picker-tab.active { background: #1f2c34; }
body.dark-mode .emoji-item:hover { background: #2a3942; }

/* --- 🎤 SES KAYDI TASARIMLARI --- */
#mic-btn { background-color: var(--wa-primary); color: var(--text-light); border: none; width: 45px; height: 45px; border-radius: 50%; margin-left: 10px; cursor: pointer; font-size: 1.2rem; display: flex; justify-content: center; align-items: center; transition: 0.3s; }
#mic-btn.recording { background-color: #e25555; animation: pulseRecord 1s infinite; }
@keyframes pulseRecord { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(226, 85, 85, 0.7); } 50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(226, 85, 85, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(226, 85, 85, 0); } }

.audio-player { width: 100%; max-width: 250px; outline: none; margin-top: 5px; height: 40px;}
.audio-player::-webkit-media-controls-panel { background-color: rgba(0,0,0,0.05); }
body.dark-mode .audio-player::-webkit-media-controls-panel { background-color: rgba(255,255,255,0.1); }