:root {
  /* ==================== Greeks TABLE HEADER COLORS ==================== */
  /* Symbol - original burlywood */
  --color-symbol: #deb887;
  
  /* Volatility - soft blue */
  --color-volatility: #b8d4f0;
  
  /* Delta - soft pink */
  --color-delta: #e68aee;
  
  /* Theta - soft green */
  --color-theta: #a4ecd4;
  
  /* Vega - soft yellow */
  --color-vega: #f0f0b8;
  
  /* Gamma - soft purple */
  --color-gamma: #e0b8f0;
  
  /* Charm - soft orange */
  --color-charm: #f0d9b8;
}
body { 
  font-family: Arial; 
  margin: 20px;
}
table {
  border-collapse: collapse;
  margin-bottom: 30px;
}
table.nowrap-data {
  width: 100%;
}
th, td {
  border: 1px solid #ccc;
  padding: 6px;
  font-size: 12px;
}
table th {
  background: var(--color-symbol) !important;
}
h2 { 
  margin-top: 30px;
}
.pricechange {
  background: #fff3cd;
  font-weight: bold;
}
.nowrap-data tbody td {
  white-space: nowrap;
}
.column-raw-prices {
  background-color: #fff3cd; /* background - adjust color as needed */
}
.column-raw-symbols {
  background-color: #f7e3a5; /* background - adjust color as needed */
}
table th, table td {
  text-align: center;
  vertical-align: middle;
}
/* Custom table widths */
table.table-greeks-main,
table.table-greeks,
table.table-greeks-aggregate,
table.table-senario,
table.table-margin,
table.table-price,
table.table-input {
  width: 100% !important;
  table-layout: fixed;
}
/* Form container */
.form-input {
  width: 100% !important;
  margin: 0 auto 20px auto;
  text-align: center;
}
/* input box size */
.small-input {
  width: 10ch;          /* 4 character width */
  text-align: center;
}
.value-positive {
  background-color: #9df59d !important; /* light green */
}
.value-negative {
  background-color: #ffcccc !important; /* light red */
}
.volatility-table-single {
  background-color: #f8e6aa !important; /* light brown */
}
/* Wrapper alignment styles */
.section-align {
  margin: 0 auto 30px auto;
}
.section-align.width-60 { width: 60%; }
.section-align.width-70 { width: 70%; }
.section-align.width-80 { width: 80%; }
.section-align h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}
/* Login Form Styles */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.login-error {
  color: #d32f2f;
  margin-bottom: 15px;
  padding: 10px;
  background: #ffcdd2;
  border-radius: 3px;
}
.login-info {
  color: #1976d2;
  margin-bottom: 15px;
  padding: 10px;
  background: #bbdefb;
  border-radius: 3px;
}
.login-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.login-form input[type="password"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0 20px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.login-form button {
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}
.login-form button:hover {
  background: #0056b3;
}
.back-btn {
  display: inline-block;
  text-align: center;
}
.back-btn-container {
  text-align: center;
  margin: 15px 0;
}
.back-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}
.back-btn:hover {
  background: #005f88;
}
/* ==================== Navigation Buttons ==================== */
.section-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  background: #f5f5f5;
  padding: 15px;
  margin: 20px 150px 5px 150px;
  border-radius: 5px;
  border: 1px solid #ddd;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}
.section-nav label {
  margin-right: 10px;
  font-weight: bold;
  font-size: 16px;
}  
.section-nav button {
  padding: 5px 12px;
  cursor: pointer;
  background: #0b5eb6;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
}
.section-nav button:hover {
  background: #0056b3;
}
.page-title {
    display: flex;
    align-items: center;
}
.webhook-btn,
.refresh-btn {
    margin-left: 12px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
}
/* Add offset for sticky navigation */
.section {
  scroll-margin-top: 80px;
}
/* ==================== GREEKS TABLE HEADER COLORS ==================== */
/* Different background colors for each header in the top row of Greeks main table */
table.table-greeks-main tr:first-child th:nth-child(1) {
  background-color: var(--color-symbol) !important;
}
table.table-greeks-main tr:first-child th:nth-child(2) {
  background-color: var(--color-volatility) !important;
}
table.table-greeks-main tr:first-child th:nth-child(3) {
  background-color: var(--color-delta) !important;
}
table.table-greeks-main tr:first-child th:nth-child(4) {
  background-color: var(--color-theta) !important;
}
table.table-greeks-main tr:first-child th:nth-child(5) {
  background-color: var(--color-vega) !important;
}
table.table-greeks-main tr:first-child th:nth-child(6) {
  background-color: var(--color-gamma) !important;
}
table.table-greeks-main tr:first-child th:nth-child(7) {
  background-color: var(--color-charm) !important;
}
/* Second row header colors - matching first row categories */
table.table-greeks-main tr:nth-child(2) th:nth-child(1),
table.table-greeks-main tr:nth-child(2) th:nth-child(2) {
  background-color: var(--color-volatility) !important;
}
table.table-greeks-main tr:nth-child(2) th:nth-child(3),
table.table-greeks-main tr:nth-child(2) th:nth-child(4) {
  background-color: var(--color-delta) !important;
}
table.table-greeks-main tr:nth-child(2) th:nth-child(5),
table.table-greeks-main tr:nth-child(2) th:nth-child(6) {
  background-color: var(--color-theta) !important;
}
table.table-greeks-main tr:nth-child(2) th:nth-child(7),
table.table-greeks-main tr:nth-child(2) th:nth-child(8) {
  background-color: var(--color-vega) !important;
}
table.table-greeks-main tr:nth-child(2) th:nth-child(9),
table.table-greeks-main tr:nth-child(2) th:nth-child(10) {
  background-color: var(--color-gamma) !important;
}
table.table-greeks-main tr:nth-child(2) th:nth-child(11),
table.table-greeks-main tr:nth-child(2) th:nth-child(12) {
  background-color: var(--color-charm) !important;
}
/* Different background colors for each header in the top row of Greeks tables */
table.table-greeks tr:first-child th:nth-child(1) {
  background-color: var(--color-symbol) !important;
}
table.table-greeks tr:first-child th:nth-child(2) {
  background-color: var(--color-volatility) !important;
}
table.table-greeks tr:first-child th:nth-child(3) {
  background-color: var(--color-delta) !important;
}
table.table-greeks tr:first-child th:nth-child(4) {
  background-color: var(--color-theta) !important;
}
table.table-greeks tr:first-child th:nth-child(5) {
  background-color: var(--color-vega) !important;
}
table.table-greeks tr:first-child th:nth-child(6) {
  background-color: var(--color-gamma) !important;
}
table.table-greeks tr:first-child th:nth-child(7) {
  background-color: var(--color-charm) !important;
}
.scenario-group-container {
  background-color: #ebf1da;  /* Light background color */
  padding: 10px;              /* Space inside the container */
  border-radius: 8px;         /* Rounded corners */
  border: 1px solid #18599a;  /* Barker border */
  margin-bottom: 30px;        /* Space below the group */
}
.scenario-group-container > div {
  margin: 0 !important;       /* Remove default margins */
  padding-bottom: 10px;       /* Space between sections */
}
.scenario-group-container > div:last-child {
  padding-bottom: 0;          /* No space after last section */
}
.scenario-group-container h2 {
  margin-top: 0;              /* Remove top margin from first heading */
  margin-bottom: 10px;
}

/* Additional styles for the calculator page */
.container-newo {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.input-section-newo {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.input-row-newo {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.input-group-newo {
    flex: 1;
    min-width: 10px;
}
.input-group-newo label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.calculate-btn-newo {
    background: #9b59b6;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}
.calculate-btn-newo:hover {
    background: #8e44ad;
}
.highlight-current-newo {
    background-color: #fff9c4 !important;
    font-weight: bold;
}
@media (max-width: 768px) {
    .input-row-newo {
        flex-direction: column;
    }
}
/* Specific fix for Option Parameters inputs */
.option-params-section-newo .input-row-newo {
    justify-content: flex-start !important;
}