/* adresal.com.tr - Kurumsal Eğitim Webmail Stilleri */
:root {
  --navy: #0f172a;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --emerald: #059669;
  --amber: #d97706;
  --danger: #dc2626;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header & Navigation */
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-badge {
  background: var(--primary);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}
.nav-links a.btn-nav {
  background: var(--primary);
  color: #fff;
}
.nav-links a.btn-nav:hover { background: var(--primary-hover); }

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 20px;
  flex: 1;
}
.container-sm {
  width: 100%;
  max-width: 520px;
  margin: 36px auto;
  padding: 0 20px;
  flex: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.45);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.08rem;
  color: #cbd5e1;
  max-width: 660px;
  margin: 0 auto 28px;
}
.hero-list {
  display: inline-block;
  text-align: left;
  list-style: disc;
  padding-left: 22px;
  margin: 0 auto 28px;
  color: #e2e8f0;
  font-size: 1.02rem;
  line-height: 1.85;
}
.hero-list li { white-space: nowrap; }
@media (max-width: 680px) {
  .hero-list li { white-space: normal; }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.hero-actions .btn {
  padding: 14px 28px;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 11px;
  min-width: 190px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}
.btn-hero-emerald {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}
.btn-hero-emerald:hover { background: #059669; border-color: #059669; }
.btn-hero-white {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}
.btn-hero-white:hover { background: #f1f5f9; }
.btn-hero-outline {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover { background: #047857; }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-outline-light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-outline-light:hover { background: rgba(255,255,255,0.2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 7px 12px; font-size: 0.84rem; border-radius: 7px; }
.btn-block { width: 100%; }

/* Cards & Grids */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.card-header h2 { font-size: 1.2rem; font-weight: 700; }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-card h3 {
  font-size: 1.04rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--navy);
}
.step-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  white-space: nowrap;
}
@media (max-width: 960px) {
  .step-card p { white-space: normal; }
}

/* Stat Cards */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.stat-label { font-size: 0.84rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.stat-val { font-size: 1.75rem; font-weight: 800; color: var(--navy); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}
.form-control {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}
textarea.form-control { min-height: 150px; resize: vertical; }
.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-addon {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-left: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}
.form-hint { font-size: 0.82rem; color: var(--muted); margin-top: 5px; }

/* Tabs */
.tabs {
  display: flex;
  background: #e2e8f0;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
}
.tab-btn {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #475569;
  cursor: pointer;
}
.tab-btn.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Alerts & Badges */
.alert {
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 0.92rem;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-amber  { background: #fef3c7; color: #92400e; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-gray   { background: #e2e8f0; color: #475569; }

/* Tables */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.91rem;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: #f8fafc;
}
tr:hover td { background: #f8fafc; }

/* Webmail Layout */
.mail-shell {
  display: grid;
  grid-template-columns: 230px 340px 1fr;
  gap: 16px;
  flex: 1;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px;
}
.mail-sidebar, .mail-list, .mail-reader {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 580px;
}
.mail-sidebar { padding: 16px; gap: 10px; }
.folder-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
}
.folder-link:hover { background: #f1f5f9; text-decoration: none; }
.folder-link.active { background: #eff6ff; color: var(--primary); }
.mail-list-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mail-items { overflow-y: auto; flex: 1; }
.mail-item {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background 0.12s;
}
.mail-item:hover { background: #f8fafc; text-decoration: none; }
.mail-item.active { background: #eff6ff; border-left: 3px solid var(--primary); }
.mail-item.unread { background: #f8fafc; }
.mail-item.unread .mail-subject { font-weight: 800; color: var(--navy); }
.mail-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 3px;
}
.mail-subject {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mail-reader { padding: 24px; }
.mail-reader-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 18px;
}
.mail-reader-head h2 { font-size: 1.25rem; margin-bottom: 10px; }
.mail-body {
  font-size: 0.96rem;
  color: #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
}
.mail-body-html {
  font-size: 0.96rem;
  color: #1e293b;
  word-break: break-word;
  flex: 1;
}
.attachment-box {
  margin-top: 20px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 9px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  overflow: hidden;
}
.modal-head {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.modal-body { padding: 20px; }

/* Progress Bar */
.progress {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
}

/* Footer */
.footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 20px 24px;
  font-size: 0.86rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer a { color: #e2e8f0; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mail-shell { grid-template-columns: 1fr; }
  .mail-sidebar, .mail-list, .mail-reader { min-height: auto; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .topbar { padding: 0 14px; }
  .nav-links a { padding: 6px 10px; font-size: 0.84rem; }
}

/* Gmail Benzeri Çok Adımlı Kayıt Sihirbazı */
.wizard-wrap {
  width: 100%;
  max-width: 960px;
  margin: 36px auto;
  padding: 0 20px;
  flex: 1;
}
.wizard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.wizard-progress {
  height: 5px;
  background: #e2e8f0;
  width: 100%;
}
.wizard-progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.25s ease;
}
.wizard-body {
  display: grid;
  grid-template-columns: 0.92fr 1.33fr;
  gap: 0;
  padding: 0;
  min-height: 360px;
}
.wizard-left {
  display: flex;
  flex-direction: column;
  padding: 36px 36px 32px 40px;
  border-right: 1px solid #e8eef5;
}
.wizard-step-pill {
  display: inline-block;
  align-self: flex-start;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.wizard-left h1 {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--navy);
}
.wizard-left .wizard-sub {
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.wizard-tip-bar {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 13px 40px;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.5;
}
.wizard-right {
  display: flex;
  flex-direction: column;
  padding: 36px 40px 32px 36px;
}
.wizard-step { display: none; flex: 1; }
.wizard-step.active { display: flex; flex-direction: column; }
.wizard-actions {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}
.wizard-actions .btn {
  padding: 12px 26px;
  font-size: 0.98rem;
  border-radius: 10px;
  min-width: 112px;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.radio-option:hover { background: #f8fafc; border-color: var(--primary); }
.radio-option.selected { background: #eff6ff; border-color: var(--primary); font-weight: 600; }
.pw-rules {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 0.82rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.pw-rules li { color: var(--muted); }
.pw-rules li.ok { color: var(--emerald); font-weight: 600; }
.review-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
}
.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.terms-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 0.84rem;
  color: #334155;
  margin-bottom: 14px;
}
.terms-box ul { padding-left: 18px; margin-top: 6px; }
.terms-box li { margin-bottom: 5px; white-space: nowrap; }
@media (max-width: 780px) {
  .wizard-body { grid-template-columns: 1fr; }
  .wizard-left { padding: 24px 20px 18px; border-right: none; border-bottom: 1px solid #e8eef5; }
  .wizard-right { padding: 22px 20px 24px; }
  .wizard-tip-bar { padding: 13px 20px; }
  .pw-rules { grid-template-columns: 1fr; }
  .terms-box li { white-space: normal; }
}
