/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Themes */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shared styling */
  --blur-value: 20px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* Midnight Nebula Theme (Dark) */
[data-theme="dark"] {
  --bg-primary: #08090f;
  --bg-gradient: radial-gradient(circle at 0% 0%, #16122d 0%, #08090f 60%), radial-gradient(circle at 100% 100%, #0d1e2e 0%, #08090f 80%);
  --panel-bg: rgba(20, 22, 35, 0.6);
  --panel-border: rgba(255, 255, 255, 0.07);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --accent: #00f0ff;
  --accent-rgb: 0, 240, 255;
  --accent-secondary: #9d4edd;
  --accent-secondary-rgb: 157, 78, 221;
  --btn-bg: rgba(255, 255, 255, 0.05);
  --btn-hover: rgba(255, 255, 255, 0.1);
  --btn-active: rgba(255, 255, 255, 0.15);
  --input-bg: rgba(0, 0, 0, 0.4);
  --input-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --keypad-op-bg: rgba(0, 240, 255, 0.15);
  --keypad-op-hover: rgba(0, 240, 255, 0.25);
  --keypad-eq-bg: linear-gradient(135deg, #00f0ff, #9d4edd);
  --keypad-eq-color: #08090f;
  --keypad-num-bg: rgba(255, 255, 255, 0.03);
  --keypad-fn-bg: rgba(157, 78, 221, 0.15);
}

/* Lavender Daylight Theme (Light) */
[data-theme="light"] {
  --bg-primary: #f5f6fa;
  --bg-gradient: radial-gradient(circle at 0% 0%, #eef2ff 0%, #f5f6fa 60%), radial-gradient(circle at 100% 100%, #fae8ff 0%, #f5f6fa 80%);
  --panel-bg: rgba(255, 255, 255, 0.65);
  --panel-border: rgba(0, 0, 0, 0.06);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --accent: #6366f1;
  --accent-rgb: 99, 102, 241;
  --accent-secondary: #db2777;
  --accent-secondary-rgb: 219, 39, 119;
  --btn-bg: rgba(0, 0, 0, 0.03);
  --btn-hover: rgba(0, 0, 0, 0.06);
  --btn-active: rgba(0, 0, 0, 0.1);
  --input-bg: rgba(255, 255, 255, 0.8);
  --input-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --keypad-op-bg: rgba(99, 102, 241, 0.1);
  --keypad-op-hover: rgba(99, 102, 241, 0.2);
  --keypad-eq-bg: linear-gradient(135deg, #6366f1, #db2777);
  --keypad-eq-color: #ffffff;
  --keypad-num-bg: rgba(255, 255, 255, 0.9);
  --keypad-fn-bg: rgba(219, 39, 119, 0.1);
}

/* Reset and Core Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  transition: background var(--transition-slow), color var(--transition-fast);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Layout Framework */
#app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* Sidebar Styling */
aside#sidebar {
  width: 280px;
  background: var(--panel-bg);
  backdrop-filter: blur(var(--blur-value));
  -webkit-backdrop-filter: blur(var(--blur-value));
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition-normal);
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
}

/* Sidebar Menu Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.nav-category {
  margin-bottom: 20px;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  padding-left: 12px;
  font-weight: 700;
}

.nav-links {
  list-style: none;
}

.nav-links li {
  margin-bottom: 4px;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-links a:hover {
  background: var(--btn-hover);
  color: var(--text-primary);
  transform: translateX(4px);
}

.nav-links li.active a {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-weight: 600;
  border-left: 3px solid var(--accent);
}

.nav-links a i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Sidebar Footer (Controls) */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--btn-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.control-btn:hover {
  background: var(--btn-hover);
}

/* Main Panel Frame */
main#main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

header#top-bar {
  height: 70px;
  border-bottom: 1px solid var(--panel-border);
  background: var(--panel-bg);
  backdrop-filter: blur(var(--blur-value));
  -webkit-backdrop-filter: blur(var(--blur-value));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 90;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toggle-sidebar-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-primary);
  cursor: pointer;
  display: none; /* Desktop hidden */
}

.page-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Main Scrollable View Panel */
.content-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Dashboard Panel Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Premium Card Panels */
.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(var(--blur-value));
  -webkit-backdrop-filter: blur(var(--blur-value));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 24px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.dashboard-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(var(--accent-rgb), 0.15);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 16px;
}

.dashboard-card:nth-child(2n) .card-icon {
  background: rgba(var(--accent-secondary-rgb), 0.1);
  color: var(--accent-secondary);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.card-category {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1px;
  margin-top: 16px;
}

/* ==========================================================================
   STANDARD & SCIENTIFIC CALCULATOR LAYOUT
   ========================================================================== */
.calc-container {
  max-width: 480px;
  margin: 0 auto;
}

.display-panel {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  text-align: right;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.history-expr {
  font-size: 16px;
  color: var(--text-secondary);
  min-height: 24px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.current-input {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Hide scrollbar for display */
}

.current-input::-webkit-scrollbar {
  display: none;
}

/* Memory Buttons Row */
.mem-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mem-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 0;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mem-btn:hover {
  color: var(--accent);
}

/* Buttons Keypad Grid */
.keypad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.keypad-grid.scientific-pad {
  grid-template-columns: repeat(5, 1fr);
}

.key-btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-btn.btn-num {
  background: var(--keypad-num-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.key-btn.btn-op {
  background: var(--keypad-op-bg);
  color: var(--accent);
}

.key-btn.btn-fn {
  background: var(--keypad-fn-bg);
  color: var(--accent-secondary);
  font-size: 14px;
}

.key-btn.btn-action {
  background: var(--btn-bg);
  color: var(--text-secondary);
}

.key-btn.btn-eq {
  background: var(--keypad-eq-bg);
  color: var(--keypad-eq-color);
  font-size: 22px;
  font-weight: 700;
}

.key-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.key-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   DYNAMIC FORMS (BMR, REGISTRY CALCS, ETC.)
   ========================================================================== */
.two-column-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .two-column-layout {
    grid-template-columns: 1fr;
  }
}

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

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.input-suffix {
  position: absolute;
  right: 16px;
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 13px;
}

/* Slider Controls */
.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-container input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.slider-value-badge {
  min-width: 60px;
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
}

/* Button Switches / Toggles */
.toggle-switch {
  display: flex;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.toggle-option {
  flex: 1;
  padding: 8px 12px;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggle-option.active {
  background: var(--accent);
  color: var(--bg-primary);
}

/* Tab Headers */
.tab-headers {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-btn {
  padding: 10px 18px;
  background: var(--btn-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background: var(--btn-hover);
}

.tab-btn.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

/* Results panel styles */
.results-header-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 8px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dotted var(--panel-border);
}

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

.result-label {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.result-value {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

/* Calculation Step-by-Step Display Panel */
.steps-panel {
  margin-top: 24px;
}

.steps-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.steps-container {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  max-height: 280px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: var(--text-secondary);
}

/* Matrix Layouts */
.matrix-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.matrix-grid {
  display: grid;
  gap: 8px;
  background: rgba(0, 0, 0, 0.1);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--panel-border);
}

.matrix-cell {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
}

/* ==========================================================================
   GST POS INVOICING / BILLING SYSTEM
   ========================================================================== */
.billing-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

@media (max-width: 900px) {
  .billing-grid {
    grid-template-columns: 1fr;
  }
}

.billing-items-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.receipt-preview-pane {
  position: sticky;
  top: 0;
}

/* POS Cart Table */
.pos-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
}

.pos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pos-table th {
  background: rgba(0,0,0,0.2);
  padding: 12px 16px;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--panel-border);
}

.pos-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--panel-border);
}

.pos-table input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  border-radius: 4px;
  padding: 4px 8px;
  width: 100%;
}

.pos-table .item-name-input { min-width: 120px; }
.pos-table .item-qty-input { width: 60px; text-align: center; }
.pos-table .item-price-input { width: 80px; text-align: right; }
.pos-table .item-select-gst { width: 70px; }

.remove-item-btn {
  background: none;
  border: none;
  color: var(--accent-secondary);
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  transition: var(--transition-fast);
}

.remove-item-btn:hover {
  transform: scale(1.2);
}

.pos-actions {
  display: flex;
  gap: 12px;
}

.pos-btn {
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pos-btn.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.pos-btn.btn-secondary {
  background: var(--btn-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
}

.pos-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Receipt Preview Invoice Format */
#receipt-invoice-print {
  background: #ffffff;
  color: #000000;
  padding: 24px;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', Courier, monospace;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
}

.receipt-header {
  text-align: center;
  margin-bottom: 16px;
  border-bottom: 2px dashed #000;
  padding-bottom: 12px;
}

.receipt-store-title {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.receipt-meta {
  font-size: 11px;
  line-height: 1.4;
  margin-top: 6px;
}

.receipt-body {
  font-size: 12px;
}

.receipt-item-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.receipt-divider {
  border-top: 1px dashed #000;
  margin: 12px 0;
}

.receipt-total-block {
  text-align: right;
  font-weight: 700;
  font-size: 13px;
}

.receipt-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 10px;
}

/* Printable Stylesheet Rule */
@media print {
  body * {
    visibility: hidden;
  }
  
  #receipt-invoice-print, #receipt-invoice-print * {
    visibility: visible;
  }

  #receipt-invoice-print {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */
@media (max-width: 768px) {
  aside#sidebar {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  }

  aside#sidebar.visible {
    transform: translateX(0);
  }

  .toggle-sidebar-btn {
    display: block;
  }

  .two-column-layout {
    grid-template-columns: 1fr;
  }
}

/* Calculator Workspace with History Panel */
.calculator-workspace {
  display: flex;
  gap: 24px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.history-panel {
  width: 280px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  max-height: 480px;
  overflow-y: auto;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 8px;
}

.history-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.clear-history-btn {
  background: transparent;
  border: none;
  color: var(--accent-secondary);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  transition: transform var(--transition-fast);
}

.clear-history-btn:hover {
  transform: scale(1.1);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
}

.history-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 8px;
  background: var(--btn-bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.history-item:hover {
  background: var(--btn-hover);
}

.history-item .hist-expr {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
  word-break: break-all;
}

.history-item .hist-res {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  word-break: break-all;
}

@media (max-width: 768px) {
  .calculator-workspace {
    flex-direction: column;
    align-items: center;
  }
  .history-panel {
    width: 100%;
    max-width: 480px;
    max-height: 250px;
  }
}

/* Scientific Landscape mode override */
.calculator-workspace.scientific-mode {
  max-width: 950px;
}

.calculator-workspace.scientific-mode .calc-container {
  max-width: 850px;
  width: 100%;
}

.calculator-workspace.scientific-mode .keypad-grid.scientific-pad {
  grid-template-columns: repeat(10, 1fr);
}

.calculator-workspace.scientific-mode .key-btn {
  padding: 12px 0;
  font-size: 14.5px;
}


