/* ============================================================
   Password Manager — Ana Stil Dosyası
   Bootstrap 5 üzerine kurulu, minimal & kurumsal tema
   ============================================================ */

:root {
    --navy:       #1a2744;
    --navy-dark:  #131d37;
    --navy-light: #243358;
    --primary:    #3b6fd4;
    --border:     #e8edf5;
    --bg:         #f4f6fb;
    --card-bg:    #ffffff;
    --text-muted: #8492a6;
}

/* ── Reset & Base ─────────────────────────────────────────── */
body { background: var(--bg); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }

/* ── Navbar ───────────────────────────────────────────────── */
.bg-navy { background-color: var(--navy) !important; }
.navbar-dark .navbar-brand { font-size: .9rem; letter-spacing: .01em; }
.navbar-dark .nav-link { color: rgba(255,255,255,.75) !important; font-size: .85rem; padding: .4rem .75rem; }
.navbar-dark .nav-link:hover { color: #fff !important; }
.navbar-dark .dropdown-menu-dark { background: var(--navy-dark); border: 1px solid rgba(255,255,255,.08) !important; border-radius: .5rem; }
.navbar-dark .dropdown-item { padding: .45rem 1rem; font-size: .83rem; border-radius: .25rem; color: rgba(255,255,255,.8); }
.navbar-dark .dropdown-item:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── Login Sayfası ────────────────────────────────────────── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); }
.login-wrapper { width: 100%; max-width: 420px; padding: 1rem; }
.login-card { border: none; border-radius: 1rem; }
.login-logo { width: 56px; height: 56px; background: #eef2ff; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; }

/* ── App Layout ───────────────────────────────────────────── */
.app-page { min-height: 100vh; }

/* ── Cards ────────────────────────────────────────────────── */
.card { border-radius: .75rem !important; }
.card.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 12px rgba(0,0,0,.04) !important; }

/* ── Customer Cards ───────────────────────────────────────── */
.customer-card { border-radius: .75rem !important; transition: transform .15s ease, box-shadow .15s ease; }
.customer-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,.08) !important; }
.customer-avatar {
    width: 40px; height: 40px; min-width: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, #5a8ef5 100%);
    border-radius: .5rem;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 1rem;
}

/* ── Table ────────────────────────────────────────────────── */
.table > :not(caption) > * > * { padding: .85rem 1rem; }
.table thead th { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); border-bottom-width: 1px; }
.table tbody tr { transition: background .1s; }
.text-mono { font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace; font-size: .85rem; }
.password-dots { letter-spacing: .1em; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: #2d5fc4; border-color: #2d5fc4; }
.btn-ghost { background: transparent; border: none; padding: .25rem .4rem; border-radius: .375rem; color: var(--text-muted); transition: background .1s, color .1s; }
.btn-ghost:hover { background: var(--border); color: #333; }
.btn-ghost.text-danger:hover { background: #fff2f2; color: #dc3545 !important; }
.btn-xs { font-size: .78rem; padding: .2rem .4rem; }

/* ── Badges ───────────────────────────────────────────────── */
.bg-success-subtle { background: #ecfdf5 !important; }
.bg-danger-subtle  { background: #fff2f2 !important; }
.bg-warning-subtle { background: #fffbeb !important; }
.bg-primary-subtle { background: #eef2ff !important; }
.bg-secondary-subtle { background: #f1f5f9 !important; }
.bg-info-subtle { background: #ecfeff !important; }

/* ── Admin icon box ───────────────────────────────────────── */
.admin-icon-box { width: 44px; height: 44px; min-width: 44px; border-radius: .625rem; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }

/* ── User avatar (navbar) ─────────────────────────────────── */
.user-avatar-sm { width: 26px; height: 26px; min-width: 26px; background: rgba(255,255,255,.15); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: #fff; }

/* ── Forms ────────────────────────────────────────────────── */
.form-control, .form-select { border-color: var(--border); font-size: .875rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(59,111,212,.15); }
.input-group-text { font-size: .875rem; }
.form-label { font-size: .85rem; }

/* ── Modals ───────────────────────────────────────────────── */
.modal-content { border: none !important; border-radius: 1rem !important; }
.modal-header { padding: 1.25rem 1.25rem .5rem; }
.modal-body { padding: .75rem 1.25rem; }
.modal-footer { padding: .5rem 1.25rem 1.25rem; }

/* ── Toast container ──────────────────────────────────────── */
#toastContainer { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.pm-toast { min-width: 260px; max-width: 360px; background: #fff; border-radius: .625rem; padding: .75rem 1rem; box-shadow: 0 4px 20px rgba(0,0,0,.12); display: flex; align-items: center; gap: .75rem; animation: slideInRight .2s ease; font-size: .875rem; }
.pm-toast.success { border-left: 4px solid #22c55e; }
.pm-toast.danger  { border-left: 4px solid #ef4444; }
.pm-toast.info    { border-left: 4px solid var(--primary); }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cdd6e8; border-radius: 3px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 576px) {
    .container-fluid.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
}
