/***********************************************************************************
 * Application Name: OptionCalcPro
 * Name: style.css
 * Author: Stephen Mitchell
 * Company: MicroLogic, Inc.
 * Purpose: Provides styling of presentation layer 
 * Last Updated: 12/15/2024
 ***********************************************************************************/

/* ----------------------------------------
   Primary Colors
---------------------------------------- */
/* 
1. Old Glory Red: #B31942 
2. Old Glory Blue: #0A3161 
3. Neutral Tones: 
   - #F5E8D9 / #D9E3E4 / #EBE8CA (U.S. currency White $10)
   - #F5F5F5 (White Smoke)  
4. Accent Colors: 
   - #0E0B10 / #394026 (Dark tones instead of pure black)
   - #007850 / #566646 / #91A88C / #B3D0AE / #8CBB65 (U.S. Currency Green)
   - #E2B5C1 / #985A4D (U.S. Currency Red - Five Dollar Bill)
   - #FF6F61 (Coral)
*/

/* ----------------------------------------
   Typography Styles
---------------------------------------- */

/* Font Definition: Montserrat */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2'),
         url('../fonts/Montserrat-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Options: block, fallback, optional, auto */
}

/* Font Definition: Roboto */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
         url('../fonts/Roboto-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Font Definition: Dollar Bill */
@font-face {
    font-family: 'Dollar Bill';
    src: url('../fonts/Dollar%20Bill.woff2') format('woff2'),
         url('../fonts/Dollar%20Bill.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ----------------------------------------
   Header Styles
---------------------------------------- */

/* H1: Dollar Bill in U.S. Currency Green */
h1 {
    font-family: 'Dollar Bill', Engravers MT, serif;
    color: #007850; /* U.S. Currency Green */
    font-weight: normal; /* Matches the classic engraved style */
    margin-bottom: 40px; /* Distance between Title and Ticker field */
}

/* H2: Heavier Montserrat in Black */
h2 {
    font-family: 'Montserrat', sans-serif;
    color: #000000; /* Strong black for a professional look */
    font-weight: 700; /* Bold weight */
}

/* H3: Heavier Montserrat in U.S. Currency Green */
h3 {
    font-family: 'Montserrat', sans-serif;
    color: #007850; /* U.S. Currency Green */
    font-weight: 700;
}

/* H4 to H6: Slightly Lighter Montserrat in Black */
h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #000000; /* Black for consistency */
    font-weight: 600; /* Lighter than H2 but still bold */
}
} /* This rogue brace is required for reasons I can't figure out. Without it, field labels are removed. */

/* ----------------------------------------
   Base Styles
---------------------------------------- */

/* Body: General Page Styles */
body {
    font-family: 'Roboto', sans-serif; /* Default font */
    font-size: 0.9em; /* Slightly smaller than default */
    line-height: 1.6; /* Improves readability */
    color: #fff; /* Default text color */
}

/* ----------------------------------------
   Misc. Form Elements
---------------------------------------- */

/* Standardize all form control heights and widths */
input[type="text"],
input[type="number"],
input[type="date"],
select {
/*    width: 300px; */
    height: 21px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif; 
    font-size: 14px;
    line-height: normal;
    padding: 1px 2px;
}

.form-group {
    margin-bottom: 1.5rem; /* Increase the vertical spacing between fields  */
/*	display: flex;  */
/*    align-items: center;  */
/*    gap: 5px;  */  /* Small gap between label and field */
} 

.form-field-label {
    font-family: 'Montserrat', sans-serif; 
    font-size: 16px;
    line-height: normal;
    padding: 1px 2px;
    display: inline-block;
    width: auto;
    text-align: left;
    margin-right: 0px; /* Space between field label and input field */
}

.form-field:focus {
  outline: none;
  border-color: #66AFE9;
  box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
}

#researchButton {
    display: none;
    margin: 0 0 15px 0;
}

#researchButton.visible {
    display: inline-block;
}

/* Company name display */
.company-name {
    margin-left: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #102852;
	/* font-weight: bold; */
}

/* ---------------------------------------------
  Field widths. Vertical spacing between fields. 
---------------------------------------------- */

/* Individual field width controls */
.field-ticker { /* Ticker */
    width: 257px  !important;
    text-align: left;
}

.field-current-stock-price { /* Current Stock Price */
    width: 151px !important;
    text-align: left;
}

.field-option-type { /* Option Type */
    width: 207px !important;
    text-align: left;
}

.field-expiration-date { /* Expiration Date */
    width: 181px !important;
    text-align: left;
}

.field-buy-strike { /* Buy Strike (Entry) */
    width: 152px !important;
    text-align: left;
}

.field-premium-type { /* Net Premium Type */
    width: 153px !important;
    text-align: left;
}

.field-net-amount { /* Net Premium Amount */
    width: 100px !important;
    text-align: left;
}

.field-contracts { /* Number of Contracts */
    width: 137px !important;
    text-align: left;
}

/* ----------------------------------------
   Explanation Text Styles
---------------------------------------- */
#explanationText {
    /* Sets the background color, text color, and maximum width */
    background-color: #0D2541;
    color: #FFFFFF;
    max-width: 600px;
    overflow-y: auto;  /* Enables vertical scrolling if content exceeds height */
    /* Typography and layout */
    line-height: 1.6;
    font-family: Roboto, sans-serif;
    overflow-wrap: break-word;
    /* border: 1px solid #CCC; */ /* Border around Explanation text in modal */
	border: none;
    margin: 20px;
    padding: 20px;
    height: auto;
}

/* Styling for paragraphs within the explanation text area */
#explanationText p {
    margin: 10px 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Heading styles specifically within the explanation section */
#explanationText h1 {
    font-size: 24px;
    font-weight: bold;
    color: #FF6F61; /* U.S. Currency Green for headers */
    margin-bottom: 10px;
}

#explanationText h2 {
    font-size: 20px;
    font-weight: bold;
    color: #FF6F61; /* U.S. Currency Green for headers */
    margin-bottom: 8px;
}

#explanationText h3 {
    font-size: 18px;
    font-weight: bold;
    color: #FFFFFF; /* White for sub-sub-headers */
    margin-bottom: 6px;
}

#explanationText h4 {
    font-size: 16px;
    font-weight: bold;
    color: #FFFFFF; /* White for smaller headers */
    margin-bottom: 4px;
}

/* Styling for ordered lists within the explanation section */
#explanationText ol {
    padding-left: 40px;  /* Increased indentation to match bullets */
    margin: 15px 0;      /* More vertical space between lists */
}

#explanationText ol li {
    margin: 10px 0;      /* More space between list items */
    font-size: 16px;
    line-height: 1.5;
}

/* Styling for bold text within explanations */
#explanationText strong {
    font-weight: bold;
    color: #FF6F61; /* Make bold text stand out with a different color */
}

/* Italics within explanations */
#explanationText i {
    font-style: italic;
    color: #D9E3E4; /* Optional color for italics */
}

/* Underline within explanations */
#explanationText u {
    text-decoration: underline;
    color: #FF6F61; /* Optional color for underlined text */
}

/* Styles for explanation content */
.explanation-content {
    /* Sets line height, font size, and text color */
    line-height: 1.5;
    font-size: 16px;
    color: #FFFFFF;
}

/* ----------------------------------------
   Alert Modal Styles
---------------------------------------- */
.alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 11, 16, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    /* Add animation */
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.alert-content {
    background-color: #0D2541;
    border: 2px solid #007850;
    border-radius: 8px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: default;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-icon {
    font-size: 32px;
    margin-right: 15px;
    line-height: 1;
}

/* Add specific styles for different alert types */
.alert-content[data-type="error"] .alert-icon {
    color: #B31942;  /* Old Glory Red */
}

.alert-content[data-type="warning"] .alert-icon {
    color: #FF6F61;  /* Coral */
}

.alert-content[data-type="success"] .alert-icon {
    color: #007850;  /* U.S. Currency Green */
}

.alert-content[data-type="info"] .alert-icon {
    color: #0A3161;  /* Old Glory Blue */
}

.alert-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #F5E8D9;  /* Currency white */
    margin: 0;
    padding: 0;
}

.alert-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #F5F5F5;  /* White Smoke */
    margin: 15px 0;
    padding: 0 10px;
}

#alertOkButton {
    background-color: #007850;  /* U.S. Currency Green */
    color: #F5E8D9;  /* Currency white */
    border: none;
    border-radius: 4px;
    padding: 10px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 120px;
    margin-top: 20px;
}

#alertOkButton:hover {
    background-color: #0A3161;  /* Old Glory Blue */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#alertOkButton:active {
    transform: translateY(0);
    box-shadow: none;
}

.alert-modal:focus-within {
    outline: none;
}

#alertOkButton:focus {
    outline: 2px solid #F5E8D9;
    outline-offset: 2px;
}

/* ----------------------------------------
   Utility Classes
---------------------------------------- */
/* This class initially hides the Explanation div */
.hidden {
    display: none;
}

/* ----------------------------------------
   Calculation Results Row Layout
---------------------------------------- */
.result-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Label Styling */
.label {
    width: 150px; /* Set to accommodate the longest label */
    font-weight: bold;
    margin: 0; /* Remove extra margin from the h4 elements */
}

/* Value Display */
.value {
    display: inline-block;
    text-align: left;
    padding-left: 5px; 
}

/* Styles specifically for calculation results */
.calculation-result-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.calculation-result-row .result-value {
    display: inline-block;
    margin-left: 10px; /* Adjust spacing between label and value */
    text-align: left;
    max-width: 400px; /* Adjust the width as needed */
}

.calculation-result-row h4.result-label {
    margin: 0;
    display: inline;
}

/* ----------------------------------------
   Hidden Button States
---------------------------------------- */
#executeTradeButton,
#saveButton {
    display: none; /* Hide the buttons initially */
}

#executeSaveButton {
    display: none; /* Hide the button initially */
}

#newTransactionButton {
    display: none; /* Hide the New Transaction button initially */
}

/* Modal Background */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Explanation Modal Content */
.modal-content {
    background-color: #FEFEFE;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 3px solid #007850;  /* Currency Green */ 
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

#research-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    max-width: 90vw;
    height: 65vh;  /* Height of Reseach modal. Reduced from 80vh to 65vh */
}

/* Close Button */
.close-button {
    color: #AAA;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
/* Action button styling for all buttons */
.action-button {
    background-color: #007850 !important; /* U.S. Currency Green */
    color: #F5E8D9 !important; /* Currency white */
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    margin-right: 10px;
    transition: background-color 0.3s ease;
/*  height: 21px;  */
/*  padding: 1px 12px; */
/*  box-sizing: border-box; */
/*  vertical-align: middle; */
}	

.action-button:hover {
    background-color: #0A3161 !important; /* Old Glory Blue */
}

/* Modal content styles */
.modal-content {
    background-color: #0D2541;
    color: #F5E8D9;
}

.modal-content h2 {
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
}

/* UI form Controls */
form label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95em;
    line-height: 1.6;
    color: #000000;  /* To ensure readability */
}

/* -------------------------------------------------
   Options Expiration Date Calendar Date Picker
-------------------------------------------------- */
/* Date Input Styling */
.date-input {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;  /* Match other input widths */
}

/* Style the calendar picker icon */
.date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
}

.date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
/* ----------------------------------------
   Notes Section Styling
---------------------------------------- */
.notes-section {
    margin-top: 20px;
    width: 100%;
}

.notes-container {
    margin-top: 10px;
    transition: all 0.3s ease;
}

.notes-container.hidden {
    display: none;
}

.notes-header {
    font-family: 'Montserrat', sans-serif;
    color: #007850;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.trade-notes-area {
    width: 600px;
    min-height: 150px;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #0D2541;
    color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
    line-height: 1.6;
    resize: vertical;
}

.trade-notes-area:focus {
    outline: none;
    border-color: #007850;
}

#showNotesButton {
    display: none; /* Initially hidden */
    margin-top: 15px;
}

#saveNotesButton {
    display: none; /* Initially hidden */
    margin-top: 10px;
}

/* ----------------------------------------
   Research Modal Styles
---------------------------------------- */
.research-modal-header h2 {
    color: #FFFFFF;  /* Pure white */
}

.research-modal-content {
    border: 3px solid #007850;  /* Currency Green */ 
	background-color: #152140;
    padding: 20px;
    border-radius: 8px;
	width: 900px;
    max-width: 90vw;
}

.research-modal-header {
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: none;  /* Remove the border that's causing the line */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.research-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.research-tab-button {
    background-color: #B22234; /* B76765, B22234 */
    color: #FFFFFF;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.research-tab-button.active {
    opacity: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.research-content-area {
	transition: height 0.3s ease-in-out;
    background: #152140;  /* Match the modal's background exactly */
    border-radius: 8px;
    padding: 20px;
    min-height: 400px;
}

.chart-container {
    width: 100%;
    min-height: 400px;
    background: #152140;  /* Same color as parent */
    position: relative;
    border-radius: 8px;
}

.research-close-button {
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.research-close-button:hover {
    color: #B76765;   
	/* opacity: 0.8; */
}

#tradingview-chart {
    width: 100% !important;
    height: 400px !important;
    position: relative;
}

.chart-loading, .chart-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.timeframe-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.timeframe-button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.2s;
}

.timeframe-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.timeframe-button.active {
    background: #1E88E5;
}

.chart-loading, .chart-error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #FFFFFF;
    font-size: 14px;
}

.chart-error {
    color: #EF5350;
}

/* ----------------------------------------
  Ticker price change
---------------------------------------- */

.ticker-container {
    display: inline-flex; /* Changed from flex to inline-flex */
    align-items: center;
    gap: 10px;
    margin: 0;  /* Ensure no extra margins */
    padding: 0; /* Ensure no extra padding */	
}

/* Price change display styling */
#priceChangeDisplay .price-change {
    margin-left: 30px;
    margin-top: 0px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px; 
    display: inline-block; /* Ensure margins work */
    vertical-align: middle; /* Align with the price field */
}

/* ----------------------------------------
  RSI Component Base Styles
---------------------------------------- */
.rsi-container {
    padding: 24px;
    color: #FFFFFF;
    background: #1A1F36;  /* Match the modal background */
    margin: -24px;  /* Remove the gap at edges */
    height: 100%;   /* Ensure full height coverage */
}

/* ----------------------------------------
  RSI Header & Controls
---------------------------------------- */
.rsi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 20px 0;

}

.period-selector-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.period-selector-label {
    color: #FFFFFF;
	font-family: Roboto, sans-serif;
    font-size: 14px;
}

.rsi-header h3 {
    color: #FF6F61;
    font-size: 24px;
    margin: 0;
}

.period-selector {
    background: #152140;
    border: 2px solid #007850;  /* Green border */
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
/*   min-width: 120px; */
	width: 40px;
    cursor: pointer;
    transition: all 0.2s ease; 
    appearance: auto; */          /* Add this */
    -webkit-appearance: auto;  /* Add this */
    -moz-appearance: auto;     /* Add this */
    display: inline-block;     /* Add this */
}

.period-selector:hover {
    border-color: #007850;
}

.period-selector:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 120, 80, 0.3);
}

/* ----------------------------------------
  RSI Value Display
---------------------------------------- */
.rsi-value-container {
    background: #152140;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.rsi-display {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.rsi-number {
    background: #152140; 
    padding: 12px 0px;
	padding-left: 80px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: bold;
    min-width: 140px;
    text-align: center;
/*    border: 1px solid rgba(255, 255, 255, 0.05); */
}

.rsi-status {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    background: #152140;
    padding: 6px 16px;
	margin-top: 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RSI Status Colors */
.rsi-number.oversold, 
.rsi-status.oversold { 
    background: #152140;
    color: #31A59A; 
}

.rsi-number.overbought, 
.rsi-status.overbought { 
    background: #152140;
    color: #B22234; 
}

.rsi-number.neutral, 
.rsi-status.neutral { 
    background: #152140;
    color: #FFFFFF; 
}

/* ----------------------------------------
  RSI Legend Styling
---------------------------------------- */
.rsi-legend {
    display: flex;
    gap: 24px;
    padding: 16px;
    background: rgba(21, 33, 64, 0.4);
    border-radius: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.legend-item:hover .legend-color {
    transform: scale(1.1);
}

.legend-color.oversold { 
    background-color: #007850;
    border: 2px solid #FFFFFF;
}

.legend-color.neutral { 
    background-color: #FFFFFF;
    border: 2px solid #FFFFFF;	
}

.legend-color.overbought { 
    background-color: #FF4444;
    border: 2px solid #FFFFFF;	
}

/* Historical markers with border */
.legend-color.historical-oversold { 
    background-color: #1E90FF; 
}

.legend-color.historical-overbought { 
    background-color: #BB7800;
}


/* ----------------------------------------
  RSI Chart Section
---------------------------------------- */
.rsi-chart-container {
    background: rgba(21, 33, 64, 0.6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 24px 0;
    height: 300px;  /* Ensure minimum height */
    width: 100%;    /* Ensure full width */
}

.rsi-chart {
    position: relative;
    background: #152140;
    border-radius: 6px;
    padding: 16px;
    height: 300px;
}

/* ----------------------------------------
  RSI Educational Section
---------------------------------------- */
.rsi-explanation {
    background: rgba(21, 33, 64, 0.6);
    padding: 24px;
    border-radius: 8px;
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rsi-explanation h4 {
    color: #FF6F61;
    font-size: 20px;
    margin: 0 0 16px 0;
}

.rsi-explanation p {
	font-family: Roboto, sans-serif;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 16px;
}

.rsi-explanation ul {
    margin: 0;
    padding-left: 20px;
}

.rsi-explanation li {
    color: rgba(255, 255, 255, 0.9);
    font-family: Roboto, sans-serif;
	margin-bottom: 8px;
    line-height: 1.5;
}

/* Additional RSI Modal Styles */
.rsi-explanation-modal {
    background: #152140;
    max-width: 800px;
    width: 90%;
    border: 2px solid #007850;
    border-radius: 8px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #FF6F61;
    margin: 0;
    font-size: 24px;
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.rsi-basics, 
.period-explanation, 
.rsi-usage {
    background: rgba(21, 33, 64, 0.6);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rsi-basics h4,
.period-explanation h4,
.rsi-usage h4 {
    color: #FF6F61;
    margin: 0 0 16px 0;
    font-size: 18px;
}

.rsi-overbought {
    color: #26A69A;
    font-weight: 400;
	padding-left: 5px;		
}

.rsi-oversold {
    color: #EF5350;
    font-weight: 400;
	padding-left: 5px;		
}
.rsi-neutral {
    color: #FFFFFF;
    font-weight: 400;
	padding-left: 75px;	
}

.period-summary {
    background: rgba(21, 33, 64, 0.4);
    padding: 16px;
    border-radius: 6px;
    margin-top: 16px;
}

.more-info-button {
    display: inline-block;
    padding: 8px 16px;
    background: #007850;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    margin-top: 16px;
    transition: background-color 0.2s;
}

.more-info-button:hover {
    background: #005A3D;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

/* Ensure proper text styling in the modal */
.modal-body p {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.modal-body ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 12px 0;
}

.modal-body li {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Adjust current period display */
.current-period {
    background: rgba(21, 33, 64, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #8A8A8A;
    font-family: 'Roboto', sans-serif;
}

/* Legend separator */
.legend-separator {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.demo-mode-message {
    color: #007BFF; /* Bright blue color for emphasis */
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    display: block;
    margin: 20px 0;
}

.demo-mode-message a {
    color: #FF4500; /* Bright orange for the email link */
    text-decoration: none;
}

.demo-mode-message a:hover {
    text-decoration: underline;
}

