/* ==============================================================================
   KELVIN - DEĞERLİ METAL RAFİNERİSİ ANA KASA TAKİP SİSTEMİ
   ÖZEL TASARIM SİSTEMİ & ARAYÜZ STİLLERİ (Pure Modern CSS)
   ============================================================================== */

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

:root {
  --bg-app: #080b10;
  --bg-sidebar: #0d121a;
  --bg-topbar: #0f1520;
  --bg-surface: #131a26;
  --bg-card: #182230;
  --bg-card-hover: #1e2a3c;
  --bg-input: #0b0f16;
  --bg-dropdown: #141c28;
  
  --border-subtle: #1c2636;
  --border-card: #243245;
  --border-focus: #e5b94c;

  --gold-primary: #e5b94c;
  --gold-hover: #f3cb63;
  --gold-glow: rgba(229, 185, 76, 0.16);
  --gold-muted: #9e7f32;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --info: #38bdf8;
  --info-bg: rgba(56, 189, 248, 0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.45);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.7);

  --sidebar-width: 250px;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ==============================================================================
   GLOBAL LINK & ANCHOR STYLING (No default browser blue/purple visited links)
   ============================================================================== */
a, a:link, a:visited {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover, a:focus {
  color: var(--gold-hover);
  text-decoration: none;
}

a:active {
  color: var(--gold-primary);
}

/* Explicit button, badge and nav overrides */
.btn, .btn:link, .btn:visited {
  text-decoration: none;
}

.btn-primary, .btn-primary:link, .btn-primary:visited {
  color: #000 !important;
}

.btn-secondary, .btn-secondary:link, .btn-secondary:visited {
  color: var(--text-main) !important;
}

.btn-danger, .btn-danger:link, .btn-danger:visited {
  color: #fff !important;
}

.badge, .badge:link, .badge:visited {
  text-decoration: none;
}

.badge-success, .badge-success:link, .badge-success:visited {
  color: var(--success) !important;
}

.badge-warning, .badge-warning:link, .badge-warning:visited {
  color: var(--warning) !important;
}

.badge-danger, .badge-danger:link, .badge-danger:visited {
  color: var(--danger) !important;
}

.badge-silver, .badge-silver:link, .badge-silver:visited {
  color: #cbd5e1 !important;
}

.badge-secondary, .badge-secondary:link, .badge-secondary:visited {
  color: var(--text-muted) !important;
}

/* Navigation Links */
.nav-link, .nav-link:link, .nav-link:visited {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active, .nav-link.active:link, .nav-link.active:visited {
  color: var(--gold-primary);
}

/* Table links & helpers */
table a, table a:link, table a:visited {
  color: var(--gold-primary);
  text-decoration: none;
}

table a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

table a.text-gold, .text-gold, a.text-gold:visited {
  color: var(--gold-primary) !important;
}

table a.font-mono, td a.font-mono {
  font-weight: 700;
}

/* Action Dropdowns & Note Tooltip Pills */
.action-dropdown-menu {
  animation: fadeInDown 0.15s ease-out;
}

.action-dropdown-item {
  color: var(--text-main) !important;
  text-decoration: none !important;
}

.action-dropdown-item:hover {
  background-color: var(--bg-secondary) !important;
  color: var(--gold-primary) !important;
}

.note-pill {
  transition: all 0.15s ease;
}

.note-pill:hover {
  background-color: rgba(229, 185, 76, 0.18) !important;
  border-color: var(--gold-primary) !important;
  transform: translateY(-1px);
}

/* ==============================================================================
   LAYOUT & CONTAINER
   ============================================================================== */

.app-wrapper {
  display: flex;
  min-height: 100vh;
  min-width: 0;
  max-width: 100vw;
  overflow-x: hidden;
}

.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--gold-hover), var(--gold-muted));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 0 15px var(--gold-glow);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-main);
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 10px;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.sidebar-menu {
  flex: 1;
  padding: 20px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 12px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 13.5px;
  transition: all 0.15s ease;
}

.nav-link:hover {
  background-color: var(--bg-card);
  color: var(--text-main);
}

.nav-link.active {
  background-color: var(--bg-card);
  color: var(--gold-primary);
  border-left: 3px solid var(--gold-primary);
}

.nav-link svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: currentColor;
}

.sidebar-footer {
  padding: 8px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  background-color: transparent;
}

.sidebar-presentation-link,
.sidebar-presentation-link:link,
.sidebar-presentation-link:visited {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #334155 !important;
  text-decoration: none !important;
  padding: 3px 6px;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
  user-select: none;
}

.sidebar-presentation-link:hover,
.sidebar-presentation-link:focus {
  color: #64748b !important;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none !important;
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  max-width: calc(100vw - var(--sidebar-width));
}

/* ==============================================================================
   TOPBAR & ELEGAN USER DROPDOWN
   ============================================================================== */

.topbar {
  height: var(--header-height);
  background-color: var(--bg-topbar);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s ease;
}

.topbar-link:hover {
  color: var(--text-main);
  border-color: var(--border-card);
  background-color: var(--bg-card);
}

.topbar-link.active {
  color: var(--gold-primary);
  border-color: rgba(229, 185, 76, 0.35);
  background-color: var(--gold-glow);
}

/* User Dropdown */
.user-dropdown-wrapper {
  position: relative;
}

.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.user-dropdown-btn:hover,
.user-dropdown-btn.active {
  border-color: var(--border-card);
  background-color: var(--bg-card);
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-muted));
  color: #000;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-dropdown-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.user-dropdown-btn.active .user-dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background-color: var(--bg-dropdown);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  display: none;
  z-index: 200;
  animation: dropdownFadeIn 0.15s ease;
}

.dropdown-menu.show {
  display: block;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.dropdown-header-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.dropdown-header-phone {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 2px;
}

.dropdown-header-role {
  display: inline-block;
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-primary);
  background-color: var(--gold-glow);
  padding: 2px 6px;
  border-radius: 3px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.12s ease;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
}

.dropdown-item:hover {
  background-color: var(--bg-card);
  color: var(--text-main);
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 6px 0;
}

.dropdown-item-danger {
  color: #f87171;
}

.dropdown-item-danger:hover {
  background-color: var(--danger-bg);
  color: #fca5a5;
}

.content-body {
  padding: 28px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

/* ==============================================================================
   TYPOGRAPHY & UTILITIES
   ============================================================================== */

.font-mono {
  font-family: var(--font-mono);
}

.text-gold { color: var(--gold-primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* ==============================================================================
   CARDS & STATS
   ============================================================================== */

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

/* ==============================================================================
   BUTTONS
   ============================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.btn-primary {
  background-color: var(--gold-primary);
  color: #0d1117;
  font-weight: 600;
  box-shadow: 0 0 10px var(--gold-glow);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  box-shadow: 0 0 16px rgba(229, 185, 76, 0.35);
}

.btn-secondary {
  background-color: var(--bg-surface);
  border-color: var(--border-card);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
}

.btn-danger {
  background-color: var(--danger-bg);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--danger);
}

.btn-danger:hover {
  background-color: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 4px;
}

/* ==============================================================================
   FORMS & INPUTS
   ============================================================================== */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13.5px;
  font-family: var(--font-sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-control.font-mono {
  font-family: var(--font-mono);
}

.form-control:disabled,
.form-control[readonly] {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: var(--border-subtle);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.8;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* ==============================================================================
   TABLES & BADGES
   ============================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  padding: 12px 16px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background-color: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-card);
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-admin {
  background-color: var(--gold-glow);
  color: var(--gold-primary);
  border: 1px solid rgba(229, 185, 76, 0.3);
}

.badge-user {
  background-color: var(--info-bg);
  color: var(--info);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-active {
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-passive {
  background-color: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==============================================================================
   PERMISSION MATRIX TABLE
   ============================================================================== */

.perm-matrix {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  overflow: hidden;
  margin-top: 10px;
}

.perm-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 12px 16px;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.perm-row:last-child {
  border-bottom: none;
}

.perm-header {
  background-color: rgba(0, 0, 0, 0.3);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.perm-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-main);
}

.perm-checkbox {
  accent-color: var(--gold-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ==============================================================================
   AUDIT TRAIL DIFF VIEWER
   ============================================================================== */

.diff-box {
  background-color: #080c10;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.diff-old {
  color: #f87171;
  background-color: rgba(239, 68, 68, 0.08);
  padding: 2px 4px;
  border-radius: 3px;
}

.diff-new {
  color: #4ade80;
  background-color: rgba(74, 222, 128, 0.08);
  padding: 2px 4px;
  border-radius: 3px;
}

/* ==============================================================================
   FLASH TOASTS / ALERTS
   ============================================================================== */

.toast-container {
  margin-bottom: 20px;
}

.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}

.alert-success {
  background-color: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

.alert-error {
  background-color: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.alert-warning {
  background-color: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

.alert-info {
  background-color: var(--info-bg);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
}

/* ==============================================================================
   AUTH LAYOUT (LOGIN)
   ============================================================================== */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at center, #141d28 0%, #080b10 100%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand .brand-icon {
  margin: 0 auto 14px;
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.auth-brand h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.auth-brand p {
  font-size: 12px;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
}


/* ==============================================================================
   PERMISSION MATRIX TABLE
   ============================================================================== */
.perm-matrix {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  overflow: hidden;
  margin-top: 10px;
}
.perm-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 12px 16px;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}
.perm-row:last-child {
  border-bottom: none;
}
.perm-header {
  background-color: rgba(0, 0, 0, 0.3);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}
.perm-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-main);
}
.perm-checkbox {
  accent-color: var(--gold-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ==============================================================================
   AUDIT TRAIL DIFF VIEWER
   ============================================================================== */
.diff-row td {
  width: 100% !important;
  box-sizing: border-box;
}
.diff-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}
.diff-box {
  background-color: #05080c;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  max-height: 380px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  width: 100%;
  box-sizing: border-box;
}
.diff-old {
  color: #fca5a5;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.diff-new {
  color: #86efac;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ==============================================================================
   AUTH LAYOUT (LOGIN)
   ============================================================================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at center, #141d28 0%, #080b10 100%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
.auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

/* ==============================================================================
   ACTION MODULE CARDS (NEXT LOT OPERATIONS)
   ============================================================================== */
.action-module-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
}
.action-module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 185, 76, 0.45) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.action-module-card:hover .action-module-icon {
  transform: scale(1.06);
}
.action-module-icon {
  transition: transform 0.2s ease;
}


/* ==============================================================================
   ANADOLU BRAND & HERO LOGO DUAL-STAGE CINEMATIC ANIMATION (SIDEBAR)
   ============================================================================== */
.anadolu-brand-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  user-select: none;
  text-decoration: none;
  margin: 0 auto;
  overflow: visible;
}

.brand-text-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  animation: stageTextCycle 15s cubic-bezier(0.77, 0, 0.175, 1) infinite;
  will-change: transform, opacity;
}

.brand-anadolu {
  font-family: var(--font-brand);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  line-height: 1;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  animation: brandAnadoluPulse 3s ease-in-out infinite alternate;
}

.brand-sub-slider {
  position: relative;
  height: 24px;
  min-width: 68px;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
}

.brand-slide-item {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  white-space: nowrap;
  line-height: 24px;
  will-change: transform, opacity;
  background: transparent !important;
  border: none !important;
}

.brand-gold {
  color: #fbbf24;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  animation: brandGoldWordReel 15s cubic-bezier(0.77, 0, 0.175, 1) infinite, brandGoldGlowPulse 2.8s ease-in-out infinite alternate;
  will-change: transform, opacity, text-shadow, color;
}

.brand-silver {
  color: #ffffff;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  animation: brandSilverWordReel 15s cubic-bezier(0.77, 0, 0.175, 1) infinite, brandSilverGlowPulse 2.8s ease-in-out infinite alternate;
  will-change: transform, opacity, text-shadow, color;
}

/* HERO LOGO AŞAMASI (KURUMSAL LOGO - MERKEZLİ) */
.brand-hero-logo-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  animation: stageLogoHero 15s cubic-bezier(0.77, 0, 0.175, 1) infinite;
  will-change: transform, opacity;
}

.brand-hero-logo-img {
  height: 24px;
  max-height: 26px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: none !important;
  display: block;
  margin: 0 auto;
}

/* =========================================================================
   SIDEBAR IŞILTI PULSE (BREATHING) KEYFRAME'LERİ
   ========================================================================= */
@keyframes brandGoldGlowPulse {
  0% {
    color: #fbbf24;
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.7), 0 0 14px rgba(245, 158, 11, 0.4);
  }
  100% {
    color: #fef08a;
    text-shadow: 0 0 12px rgba(254, 240, 138, 0.95), 0 0 24px rgba(251, 191, 36, 0.8), 0 0 40px rgba(245, 158, 11, 0.45);
  }
}

@keyframes brandSilverGlowPulse {
  0% {
    color: #f1f5f9;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.7), 0 0 14px rgba(226, 232, 240, 0.45);
  }
  100% {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 0 24px rgba(248, 250, 252, 0.85), 0 0 40px rgba(203, 213, 225, 0.45);
  }
}

@keyframes brandAnadoluPulse {
  0% {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
  }
  100% {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  }
}

/* =========================================================================
   SIDEBAR 15.0 SANİYE COUNTER DÖNGÜ ZAMANLAMASI:
   1. 0.0s - 5.0s  : ANADOLU (Sabit) + ALTIN (Dönen Slot)
   2. 5.0s - 10.0s : ANADOLU (Sabit) + GÜMÜŞ (Dönen Slot)
   3. 10.0s - 15.0s: EMAK LOGOSU (Merkez)
   ========================================================================= */

@keyframes stageTextCycle {
  0%, 62.8% {
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
  }
  66.66% {
    transform: translate(-50%, calc(-50% - 24px));
    opacity: 0;
    pointer-events: none;
  }
  66.67%, 96.2% {
    transform: translate(-50%, calc(-50% + 24px));
    opacity: 0;
    pointer-events: none;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
  }
}

@keyframes brandGoldWordReel {
  0%, 29.5% {
    transform: translateY(-50%);
    opacity: 1;
  }
  33.33% {
    transform: translateY(calc(-50% - 24px));
    opacity: 0;
  }
  33.34%, 96.2% {
    transform: translateY(calc(-50% + 24px));
    opacity: 0;
  }
  100% {
    transform: translateY(-50%);
    opacity: 1;
  }
}

@keyframes brandSilverWordReel {
  0%, 29.5% {
    transform: translateY(calc(-50% + 24px));
    opacity: 0;
  }
  33.33% {
    transform: translateY(-50%);
    opacity: 1;
  }
  33.33%, 62.8% {
    transform: translateY(-50%);
    opacity: 1;
  }
  66.66% {
    transform: translateY(calc(-50% - 24px));
    opacity: 0;
  }
  66.67%, 100% {
    transform: translateY(calc(-50% + 24px));
    opacity: 0;
  }
}

@keyframes stageLogoHero {
  0%, 62.8% {
    transform: translate(-50%, calc(-50% + 24px));
    opacity: 0;
    pointer-events: none;
  }
  66.66% {
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
  }
  66.66%, 96.2% {
    transform: translate(-50%, -50%);
    opacity: 1;
    pointer-events: auto;
  }
  100% {
    transform: translate(-50%, calc(-50% - 24px));
    opacity: 0;
    pointer-events: none;
  }
}

/* ==============================================================================
   TOPBAR ICON BUTTONS
   ============================================================================== */
.topbar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-icon-btn,
.topbar-icon-btn:visited,
.topbar-icon-btn:link {
  color: var(--text-muted);
  text-decoration: none;
}

.topbar-icon-btn:hover {
  color: var(--gold-primary);
  border-color: rgba(229, 185, 76, 0.45);
  background-color: rgba(229, 185, 76, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(229, 185, 76, 0.15);
}

.topbar-icon-btn.active,
.topbar-icon-btn.active:visited {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background-color: rgba(229, 185, 76, 0.12);
  box-shadow: 0 0 10px rgba(229, 185, 76, 0.2);
}

.topbar-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}