/* 
   kwSwitchboard Mailbox Theme
   Silver Gray Brushed Metal Aesthetics matching physical cabinet
*/

:root {
  --metal-bg: #e2e8f0;
  --metal-surface: #f1f5f9;
  --metal-card: #ffffff;
  --metal-card-alt: #f8fafc;
  --metal-border: #cbd5e1;
  --metal-border-dark: #94a3b8;
  --metal-dark: #334155;
  --metal-darker: #1e293b;
  --metal-deep: #0f172a;
  
  --silver-light: #f8fafc;
  --silver-mid: #e2e8f0;
  --silver-dark: #94a3b8;
  --silver-shine: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #cbd5e1 75%, #94a3b8 100%);
  --silver-panel: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  --steel-gradient: linear-gradient(135deg, #475569 0%, #334155 50%, #1e293b 100%);
  
  --primary-orange: #f97316;
  --dark-orange: #ea580c;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-green: #10b981;
  --accent-green-dark: #059669;
  --accent-red: #ef4444;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-metallic: 0 8px 20px -4px rgba(15, 23, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

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

body {
  font-family: var(--font-sans);
  background-color: #f1f5f9;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(203, 213, 225, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

/* Header layout */
header {
  background: linear-gradient(135deg, #475569 0%, #334155 45%, #1e293b 100%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  padding: 0.85rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid #94a3b8;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}

.logo-icon:hover {
  transform: scale(1.08);
}

.logo-btn {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  letter-spacing: -0.2px;
}

.logo-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.logo-mailbox {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.2);
}

.logo-mailbox:hover {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  color: #0f172a;
  text-shadow: none;
}

.logo-mailbox.active-logo {
  border-color: #f97316;
}

/* Header Right Actions */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-apply {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-nav-apply:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.5);
}

/* Menu Dropdown */
.menu-dropdown-wrapper {
  position: relative;
}

.menu-dropdown-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.menu-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.menu-dropdown-content {
  position: absolute;
  top: 120%;
  right: 0;
  background: #1e293b;
  border: 1.5px solid #475569;
  border-radius: 8px;
  min-width: 190px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.menu-dropdown-content.show {
  display: flex;
}

.menu-dropdown-content a {
  color: #f1f5f9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-dropdown-content a:last-child {
  border-bottom: none;
}

.menu-dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.menu-dropdown-content a.active {
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
  border-left: 3px solid #f97316;
}

/* Page container */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
  flex: 1;
}

/* Cards & Metallic Panels */
.metal-panel {
  background: var(--silver-panel);
  border: 2px solid var(--metal-border-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-metallic);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.metal-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #94a3b8, #f8fafc, #94a3b8);
}

.white-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--metal-border);
  box-shadow: var(--shadow-md);
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
  color: var(--metal-deep);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.page-header {
  text-align: center;
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 60%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* =========================================================
   REALISTIC PHYSICAL METAL MAILBOX CABINET (MATCHING PHOTO)
   ========================================================= */

.real-cabinet-container {
  max-width: 620px;
  margin: 0 auto;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  padding: 12px;
  border-radius: 8px;
  border: 3px solid #64748b;
  box-shadow: 0 15px 35px rgba(0,0,0,0.35), inset 0 2px 4px rgba(255,255,255,0.2);
}

.cabinet-inner-module {
  background: #cbd5e1;
  border: 2px solid #94a3b8;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.15);
}

/* Brushed Metal Header Plate */
.cabinet-header-plate {
  height: 38px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 40%, #cbd5e1 100%);
  border-bottom: 2px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.cabinet-screw {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, #f8fafc 20%, #94a3b8 70%, #475569 100%);
  border: 1px solid #475569;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.cabinet-screw::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 1.5px;
  background: #334155;
}

/* Sections Grid */
.cabinet-grid-small {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.5px;
  background: #64748b;
  padding: 2.5px;
}

.cabinet-grid-med {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5px;
  background: #64748b;
  padding: 0 2.5px 2.5px 2.5px;
}

.cabinet-grid-large {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5px;
  background: #64748b;
  padding: 0 2.5px 2.5px 2.5px;
}

/* Realistic Brushed Metal Door */
.door-real {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 30%, #cbd5e1 70%, #94a3b8 100%);
  border: 1px solid #64748b;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 4px 6px;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.8), inset -1px -1px 0 rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
}

.door-real:hover {
  transform: scale(1.04);
  z-index: 10;
  border-color: var(--primary-orange);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6), inset 1px 1px 0 #ffffff;
}

/* Size Specific Proportions matching the photo */
.door-size-A {
  height: 74px;
}

.door-size-B {
  height: 78px;
}

.door-size-C {
  height: 84px;
}

/* Circular Lock Cylinder */
.door-lock-cylinder {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 15%, #cbd5e1 45%, #64748b 90%);
  border: 1.5px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  margin-bottom: 6px;
}

.door-key-slot {
  width: 2px;
  height: 7.5px;
  background: #0f172a;
  border-radius: 1px;
}

/* Recessed Black Number Plate with White Digits */
.door-number-plate {
  background: #0f172a;
  color: #f8fafc;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 2px 4px;
  border-radius: 2px;
  border: 1px solid #334155;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.9);
  width: 82%;
  text-align: center;
}

/* Micro LED status marker */
.door-status-led {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0.5px solid rgba(0,0,0,0.3);
}

.status-available {
  background: #10b981;
  box-shadow: 0 0 5px #10b981;
}

.status-reserved {
  background: #f59e0b;
  box-shadow: 0 0 5px #f59e0b;
}

.status-rented {
  background: #ef4444;
  box-shadow: 0 0 5px #ef4444;
}

/* Brushed Metal Bottom Kick Plate */
.cabinet-footer-plate {
  height: 44px;
  background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 50%, #64748b 100%);
  border-top: 2px solid #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

/* Tables */
.metal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  border: 1px solid var(--metal-border);
}

.metal-table th {
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
  color: #ffffff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #1e293b;
}

.metal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
  color: var(--text-main);
  vertical-align: middle;
}

.metal-table tr:last-child td {
  border-bottom: none;
}

.metal-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  color: #ffffff;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  transform: translateY(-2px);
}

.btn-metallic {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  color: #0f172a;
  border: 1px solid #94a3b8;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0,0,0,0.1);
}

.btn-metallic:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
  border-color: #64748b;
  transform: translateY(-1px);
}

/* Form inputs */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--metal-deep);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--metal-border);
  background-color: #f8fafc;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-orange);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Multi-step progress bar */
.stepper-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 30px;
}

.stepper-line {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #cbd5e1;
  z-index: 1;
}

.stepper-line-active {
  position: absolute;
  top: 18px;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #f97316, #ea580c);
  z-index: 2;
  transition: width 0.4s ease;
}

.stepper-item {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.stepper-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 6px;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.stepper-item.active .stepper-circle {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.stepper-item.completed .stepper-circle {
  background: #10b981;
  color: #ffffff;
}

.stepper-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.stepper-item.active .stepper-title {
  color: var(--primary-orange);
}

/* Live Price Calculation Box */
.price-summary-box {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid var(--metal-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-top: 20px;
}

.price-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.98rem;
}

.price-summary-row.total-row {
  border-top: 2px solid #cbd5e1;
  border-bottom: none;
  margin-top: 8px;
  padding-top: 14px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-orange);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-green {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-blue {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-yellow {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-gray {
  background-color: #e2e8f0;
  color: #334155;
}

/* Footer layout */
footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #94a3b8;
  padding: 40px 20px 24px;
  margin-top: auto;
  border-top: 4px solid var(--metal-dark);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-col h4 {
  color: #f8fafc;
  font-size: 1.1rem;
  margin-bottom: 14px;
  border-bottom: 2px solid #475569;
  padding-bottom: 6px;
  display: inline-block;
}

.footer-col p, .footer-col li {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary-orange);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    padding: 0.75rem 1rem;
  }
  
  .door-number-plate {
    font-size: 0.72rem;
    padding: 1px 2px;
  }

  .door-lock-cylinder {
    width: 14px;
    height: 14px;
  }
  
  .door-key-slot {
    height: 6px;
  }

  .door-size-A {
    height: 60px;
  }

  .door-size-B {
    height: 65px;
  }

  .door-size-C {
    height: 70px;
  }
}
