/* ===== Brand Theme (default) ===== */
:root{
  --bg:#f4f1ed;
  --card:#ffffff;
  --fg:#2d2d34;
  --accent:#BA8A31;      /* brand orange */
  --radius:.55rem;
  --shadow:0 4px 10px rgba(0,0,0,.08);
  --tooltip-bg: var(--card);
  --tooltip-fg: var(--fg);
  --tooltip-shadow: 0 4px 12px rgba(0,0,0,0.15);
  --modal-bg: rgba(0, 0, 0, 0.5);
  --header-height: 60px;
  --sidebar-width: 300px;
  --primary-color: #4CAF50;
  --secondary-color: #2196F3;
  --text-color: #333;
  --bg-color: #fff;
  --shadow-color: rgba(0,0,0,0.1);
}
/* ===== Dark Theme ===== */
:root[data-theme="dark"]{
  --bg:#202126;
  --card:#2a2a31;
  --fg:#a47e5f;
  --accent:#ff845d;
}

/* === Reset & Globals === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html,body{height:100%;font-family:Inter,system-ui,sans-serif;background:var(--bg);color:var(--fg);}
.shadow{box-shadow:var(--shadow);}

/* === Layout Grid === */
body{
  display:grid;
  grid-template:64px 1fr 40px / 260px 1fr;
  grid-template-areas:
    'header header'
    'sidebar main'
    'footer footer';
}
@media(max-width:768px){
  body{
    grid-template:64px auto 1fr 40px / 1fr;
    grid-template-areas:
      'header'
      'sidebar'
      'main'
      'footer';
  }
}

/* === Header === */
.app-header{grid-area:header;display:flex;align-items:center;background:var(--card);padding:0 1rem;position:relative;z-index:100;}
.logo{height:42px;}@media(max-width:768px){.logo{height:34px;}}
.title{font-family:Montserrat,sans-serif;font-weight:700;font-size:1.15rem;margin:auto;}
.icon-btn{background:none;border:none;font-size:1.35rem;color:var(--fg);cursor:pointer;position:absolute;right:1rem;top:50%;transform:translateY(-50%);}

/* === Sidebar === */
.sidebar{grid-area:sidebar;background:var(--card);padding:1rem;overflow-y:auto;display:flex;flex-direction:column;gap:1.2rem;}
.grp{display:flex;flex-direction:column;gap:.45rem;}
label{font-weight:600;font-size:.85rem;}
input[type=range]{width:100%;accent-color:var(--accent);}
.toggle{display:flex;gap:.6rem;}
.btn,.toggle-btn{
  padding:.52rem .9rem;
  border:2px solid var(--accent);
  border-radius:var(--radius);
  font-weight:600;
  font-size:.85rem;
  background:#fff;
  color:var(--fg);
  cursor:pointer;
  transition:.2s all;
}
.full{width:100%;}
.toggle-btn.active,
.btn:hover,
.toggle-btn:hover{
  background:var(--accent);
  color:#fff;
}
.primary{background:var(--accent);color:#fff;}
.secondary{background:transparent;}
.toggle-btn{flex:1;min-width:48px;}

/* === Canvas === */
.canvas-container {
  grid-area: main;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #fff;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  box-sizing: border-box;
}
#vashtuCanvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  margin: auto;
  object-fit: contain;
}
.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  color: rgba(0,0,0,.45);
  pointer-events: none;
}

@media (max-width: 768px) {
  .canvas-container {
    min-height: 300px;
    height: 50vh;
    max-height: 60vh;
    width: 100vw;
    padding: 0;
  }
  #vashtuCanvas {
    max-width: 100vw;
    max-height: 60vh;
    width: 100vw;
    height: 60vh;
  }
}

/* === Footer === */
.app-footer{grid-area:footer;background:var(--card);display:flex;align-items:center;justify-content:center;font-size:.8rem;color:var(--fg);}

/* === Tooltip Styles === */
.tooltip {
  position: absolute;
  background: var(--tooltip-bg);
  color: var(--tooltip-fg);
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--tooltip-shadow);
  font-size: 0.85rem;
  max-width: 280px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--accent);
}

.tooltip-content {
  line-height: 1.4;
}

.tooltip-metal {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Make zone labels interactive */
.zone-label {
  cursor: pointer;
  transition: opacity 0.2s;
}

.zone-label:hover {
  opacity: 0.8;
}

/* === Modal Styles === */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-bg);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal.visible {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 90%;
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  font-family: Montserrat, sans-serif;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--fg);
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
  overflow: auto;
  flex: 1;
}

.img-container {
  max-height: 60vh;
  overflow: hidden;
}

.img-container img {
  max-width: 100%;
  display: block;
}

.modal-footer {
  padding: 1rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Cropper.js custom styles */
.cropper-view-box,
.cropper-face {
  border-radius: 0;
}

.cropper-view-box {
  box-shadow: 0 0 0 1px var(--accent);
  outline: 0;
}

.cropper-point {
  background-color: var(--accent);
}

.cropper-line {
  background-color: var(--accent);
}

/* Password Modal Styles */
.password-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.password-input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: Inter, sans-serif;
  background: var(--card);
  color: var(--fg);
}

.password-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(186, 138, 49, 0.2);
}

.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  font-family: Inter, sans-serif;
}

/* WhatsApp Button Styles */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366 !important;
  color: white !important;
  border: none !important;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background: #128C7E !important;
  transform: translateY(-1px);
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Custom Alert Styles */
#alertMessage {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--fg);
  text-align: center;
}

/* Locked Canvas Overlay */
.canvas-locked {
  position: relative;
}

.canvas-locked::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    max-height: 50vh;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .sidebar.visible {
    transform: translateY(0);
  }

  .canvas-container {
    height: calc(100vh - var(--header-height) - 60px);
  }

  .app-header {
    padding: 0 10px;
  }

  .title {
    font-size: 1.2rem;
  }

  .logo {
    height: 30px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .toggle-btn {
    padding: 6px;
    font-size: 0.9rem;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.visible {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  text-align: right;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

/* Tooltip Styles */
.tooltip {
  position: fixed;
  background: white;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
  max-width: 300px;
}

.tooltip.visible {
  display: block;
}

.tooltip-title {
  font-weight: 600;
  margin-bottom: 5px;
}

/* WhatsApp Button Styles */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
}

/* Theme Toggle Button */
.icon-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--md-on-surface);
  cursor: pointer;
  transition: background-color 0.2s;
  z-index: 100;
  -webkit-tap-highlight-color: transparent;
}

.icon-btn:active {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Password Input Styles */
.password-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
}

.error-message {
  color: #f44336;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

/* Footer Styles */
.app-footer {
  padding: 15px;
  text-align: center;
  background: var(--bg-color);
  font-size: 0.9rem;
  color: #666;
}

/* Canvas Locked State */
.canvas-locked {
  filter: blur(5px);
  pointer-events: none;
}

/* Cropper Styles */
.img-container {
  max-height: 60vh;
  overflow: hidden;
}

.img-container img {
  max-width: 100%;
  height: auto;
}

/* Label Input Modal Styles */
.label-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#labelInput {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: Inter, sans-serif;
  background: var(--card);
  color: var(--fg);
  transition: all 0.3s ease;
}

#labelInput:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(186, 138, 49, 0.2);
}

#labelInput::placeholder {
  color: rgba(45, 45, 52, 0.5);
}

#labelError {
  color: #dc3545;
  font-size: 0.9rem;
  font-family: Inter, sans-serif;
  margin-top: 0.5rem;
}

/* Update modal styles for label input */
.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 90%;
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header h2 {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  color: var(--fg);
  font-size: 1.2rem;
}

#submitLabel {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#submitLabel:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Dark theme adjustments */
:root[data-theme="dark"] #labelInput {
  background: var(--card);
  color: var(--fg);
  border-color: var(--accent);
}

:root[data-theme="dark"] #labelInput::placeholder {
  color: rgba(164, 126, 95, 0.5);
}

/* Bottom Navigation for Mobile */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--md-surface);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  box-shadow: var(--md-elevation-2);
  z-index: 1000;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  color: var(--md-on-surface-variant);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--md-radius-small);
  transition: all 0.2s;
  min-width: 64px;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn.active {
  color: var(--md-primary);
}

.nav-btn:active {
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(0.95);
}

.nav-btn svg {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.nav-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
  .sidebar {
    padding-bottom: 70px; /* Prevent overlap with nav */
  }
}

/* Mobile Controls Panel */
.mobile-controls {
  display: none;
}

@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }
  .mobile-controls {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 60px; /* height of bottom nav */
    background: var(--card);
    z-index: 2000;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
    padding: 1rem 0.5rem 0.5rem 0.5rem;
    max-height: 50vh;
    overflow-y: auto;
    border-top: 1.5px solid #e5e5e5;
  }
  .canvas-container {
    padding-bottom: 120px; /* space for controls + nav */
  }
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--md-surface);
    box-shadow: var(--md-elevation-3);
    z-index: 1001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 24px 16px;
    position: relative;
}

.close-menu-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-on-surface);
    cursor: pointer;
    transition: background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.close-menu-btn:active {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Degree Slider Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.popup.active {
    display: flex;
}

.popup-content {
    background: var(--md-surface);
    padding: 24px;
    border-radius: var(--md-radius-large);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--md-elevation-3);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.popup-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--md-on-surface);
    margin: 0;
}

.close-popup-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--md-on-surface);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.close-popup-btn:active {
    background-color: rgba(0, 0, 0, 0.05);
}

.degree-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.degree-slider-container input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: var(--md-primary-light);
    border-radius: 2px;
    outline: none;
}

.degree-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--md-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--md-elevation-1);
    transition: transform 0.2s;
}

.degree-slider-container input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

#popupDegreeLabel {
    font-size: 24px;
    font-weight: 600;
    color: var(--md-on-surface);
}

/* Mobile Header */
.app-header {
    background: var(--md-surface);
    box-shadow: var(--md-elevation-1);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--md-on-surface);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.icon-btn:active {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile Menu Items */
.mobile-menu .grp {
    margin-bottom: 24px;
}

.mobile-menu label {
    font-size: 14px;
    font-weight: 500;
    color: var(--md-on-surface-variant);
    margin-bottom: 8px;
}

.mobile-menu .btn {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--md-radius-small);
    background: var(--md-surface);
    color: var(--md-on-surface);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu .btn:active {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(0.98);
}

.mobile-menu .btn.primary {
    background: var(--md-primary);
    color: white;
    border: none;
}

.mobile-menu .btn.primary:active {
    background: var(--md-primary-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        background: var(--md-background);
    }
    
    .canvas-container {
        margin-left: 0;
        padding-bottom: 80px;
        background: var(--md-surface);
    }
    
    .app-footer {
        padding-bottom: 80px;
        background: var(--md-surface);
    }

    .app-header {
        padding-right: 60px; /* Space for menu button */
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
    
    .bottom-nav {
        display: none;
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25D366 !important;
    color: white !important;
    border: none !important;
    border-radius: var(--md-radius-small) !important;
    padding: 12px 16px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s !important;
}

.whatsapp-btn:active {
    background: #128C7E !important;
    transform: translateY(1px);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Material Design Colors */
:root {
  --md-primary: #BA8A31;
  --md-primary-dark: #8B6A25;
  --md-primary-light: #D4B05C;
  --md-secondary: #2196F3;
  --md-surface: #FFFFFF;
  --md-background: #F5F5F5;
  --md-on-surface: #212121;
  --md-on-surface-variant: #666666;
  --md-elevation-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.14);
  --md-elevation-2: 0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
  --md-elevation-3: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
  --md-radius-small: 8px;
  --md-radius-medium: 12px;
  --md-radius-large: 16px;
}

/* Password Modal Styles */
.password-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.password-input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--md-primary);
  border-radius: var(--md-radius-small);
  font-size: 1rem;
  font-family: Inter, sans-serif;
  background: var(--md-surface);
  color: var(--md-on-surface);
  transition: all 0.3s ease;
}

.password-input:focus {
  outline: none;
  border-color: var(--md-primary);
  box-shadow: 0 0 0 2px rgba(186, 138, 49, 0.2);
}

.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  font-family: Inter, sans-serif;
}

.password-help {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.password-help p {
  color: var(--md-on-surface-variant);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border-radius: var(--md-radius-small);
  font-weight: 500;
  transition: all 0.2s ease;
}

.whatsapp-link:hover {
  background: #128C7E;
  transform: translateY(-1px);
}

.whatsapp-link:active {
  transform: translateY(0);
}

.whatsapp-link .whatsapp-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Update modal styles */
.modal-content {
  background: var(--md-surface);
  border-radius: var(--md-radius-large);
  box-shadow: var(--md-elevation-3);
  width: 90%;
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header {
  padding: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--md-on-surface);
  font-family: Montserrat, sans-serif;
  margin: 0;
}

.modal-body {
  padding: 1.5rem;
  overflow: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

#submitPassword {
  background: var(--md-primary);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--md-radius-small);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

#submitPassword:hover {
  background: var(--md-primary-dark);
  transform: translateY(-1px);
}

#submitPassword:active {
  transform: translateY(0);
}

/* Dark theme adjustments */
:root[data-theme="dark"] .password-input {
  background: var(--md-surface);
  color: var(--md-on-surface);
  border-color: var(--md-primary);
}

:root[data-theme="dark"] .password-help {
  border-top-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .modal-header,
:root[data-theme="dark"] .modal-footer {
  border-color: rgba(255, 255, 255, 0.1);
}
