@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Dropdown: Hesabım Metninin Tam Altında --- */
#dynamicUserDropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 0; /* Parent içindeki konumu sol hizaya çektik */
    width: 280px; 
    background: #fff; 
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
    border: 1px solid #eee; 
    display: none; 
    overflow: hidden;
    font-family: 'Inter', sans-serif; 
    z-index: 10000;
}
#dynamicUserDropdown.is-active { display: block !important; animation: slideIn 0.25s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.drp-profile-card { padding: 20px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #f5f5f5; background: #fafafa; }
.drp-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.drp-user-name { font-weight: 700; font-size: 14px; color: #1c1c1e; display: block; }
.drp-user-location { font-size: 11px; color: #8e8e93; }

.drp-menu-list { list-style: none; padding: 8px 0; margin: 0; }
.drp-menu-item a { padding: 12px 20px; display: flex; align-items: center; gap: 12px; color: #444; text-decoration: none; font-size: 13px; font-weight: 500; transition: 0.2s; }
.drp-menu-item a:hover { background: #f4f7ed; color: #6B8E23; }
.drp-menu-item a i { font-size: 18px; color: #999; width: 20px; text-align: center; }
.drp-divider { height: 1px; background: #eee; margin: 5px 0; }
.drp-logout-item a:hover { color: #ff3b30; background: #fff5f5; }

/* --- Login Modal: Tam Ortalı --- */
.login-modal-overlay { 
    position: fixed; inset: 0; 
    background: rgba(0,0,0,0.7); 
    display: none; align-items: center; justify-content: center; 
    flex-direction: column; /* Toastların modal altında çıkması için önemli */
    z-index: 999999; backdrop-filter: blur(5px);
    padding: 20px;
}
.login-modal-overlay.active { display: flex; }

.login-modal { 
    background: #fff; border-radius: 20px; 
    width: 100%; max-width: 400px; 
    padding: 0; box-shadow: 0 25px 60px rgba(0,0,0,0.3); 
    position: relative; overflow: hidden; 
    border-top: 6px solid #6B8E23;
}
.modal-padding { padding: 35px 30px; display: flex; flex-direction: column; gap: 20px; }
.login-modal h2 { margin:0; font-size:24px; font-weight:700; text-align:center; color:#1a1a1a; letter-spacing: -0.5px; }

/* Form Elemanları */
.login-input-group { display:flex; flex-direction:column; gap:8px; }
.login-input-group label { font-size:13px; font-weight:600; color:#555; }
.login-input-group input { 
    width:100%; padding:14px 16px; font-size:14px; border:1.5px solid #eee; 
    border-radius:10px; transition:0.3s; background:#f9f9f9; box-sizing: border-box; 
}
.login-input-group input:focus { border-color:#6B8E23; outline:none; background:#fff; box-shadow: 0 4px 12px rgba(107, 142, 35, 0.08); }

.password-wrapper { position:relative; }
.toggle-password { 
    position:absolute; right:15px; bottom:14px; width:20px; height:20px; 
    background:url('https://kuskanzeytincilik.com/wp-content/uploads/2025/12/goz.svg') no-repeat center center; 
    background-size:contain; cursor:pointer; opacity: 0.5; 
}

/* Beni Hatırla & Switch */
.remember-forgot { display:flex; justify-content:space-between; align-items:center; font-size:13px; }
.remember-label { display:flex; align-items:center; gap:8px; cursor:pointer; font-weight:500; color: #666; }
.toggle-switch { position:relative; width:34px; height:18px; }
.toggle-switch input { opacity:0; width:0; height:0; }
.slider { position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0; background-color:#e0e0e0; border-radius:20px; transition:0.3s; }
.slider:before { position:absolute; content:""; height:12px; width:12px; left:3px; bottom:3px; background:#fff; border-radius:50%; transition:0.3s; }
input:checked + .slider { background-color:#6B8E23; }
input:checked + .slider:before { transform:translateX(16px); }

.login-btn { 
    width:100%; padding:15px; background: linear-gradient(135deg, #6B8E23 0%, #000000 100%); 
    color:#fff; font-size:15px; font-weight:600; border:none; border-radius:10px; cursor:pointer; transition:0.3s; margin-top: 5px;
}
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* --- Modal Altı Toast: Beyaz & Gölgeli --- */
.modal-under-toast {
    margin-top: 20px; background: #fff; padding: 15px 22px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: none; align-items: center;
    gap: 12px; width: 100%; max-width: 400px; position: relative; overflow: hidden;
    animation: toastUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes toastUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.toast-content { display: flex; align-items: center; gap: 12px; flex: 1; }
.toast-icon { font-size: 20px; }
.toast-text { font-size: 14px; font-weight: 600; color: #333; }
.toast-bar { position: absolute; bottom: 0; left: 0; height: 4px; background: #6B8E23; width: 100%; }
.modal-under-toast.error .toast-bar { background: #ff3b30; }

.create-account { text-align:center; font-size:13px; color:#777; margin-top: 10px; border-top: 1px solid #f0f0f0; padding-top: 20px; }
.create-account a { color:#6B8E23; font-weight:700; text-decoration:none; margin-left: 5px; cursor: pointer; }
.login-modal-close { position:absolute; top:20px; right:20px; font-size:22px; cursor:pointer; color:#ccc; z-index: 10; }

@media (max-width: 480px) { .login-modal, .modal-under-toast { max-width: 100%; } }