
/* Trading Calculator Styles */
.trading-calculator {
  background: rgba(0,0,0,0.3);
  padding: 2px 6%;
  color: #f5f5dc;
}

.calculator-container {
  max-width: 1000px;
  margin: 0 auto;
}

.trading-calculator h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 15px;
  color: #f5f5dc;
}

.calculator-subtitle {
  text-align: center;
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

.calculator-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.tab {
  background: transparent;
  border: 1px solid #f5f5dc;
  color: #f5f5dc;
  padding: 10px 20px;
  border-radius: 25px;
  border-color: #f5f5dc;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.tab.active,
.tab:hover {
  background: #f5f5dc;
  color: #375426;
}

.calculator-description {
  text-align: center;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

.calculator-form {
  background: #f5f5dc;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #375426;
  font-weight: 600;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #375426;
  border-radius: 8px;
  background: white;
  color: #375426;
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23375426' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: #2a3f1e;
  box-shadow: 0 0 0 2px rgba(55, 84, 38, 0.2);
}

.calculate-btn {
  display: block;
  width: 200px;
  margin: 20px auto 0;
  padding: 12px 25px;
  background: #375426;
  color: #f5f5dc;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
}

.calculate-btn:hover {
  background: #2a3f1e;
  transform: translateY(-2px);
}

.calculator-results {
  background: #f5f5dc;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.calculator-results h3 {
  color: #375426;
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  background: rgba(55, 84, 38, 0.1);
  border-radius: 8px;
}

.result-label {
  color: #375426;
  font-weight: 600;
}

.result-value {
  color: #375426;
  font-weight: bold;
}

.calculator-disclaimer {
  background: rgba(0, 0, 0, 0.05);
  padding: 10px;
  border-radius: 8px;
  /* border-left: 4px solid #ffa500; */
}
  
.calculator-disclaimer p {
  font-size: 12px;
  line-height: 1;
  color: #f5f5dc;
  margin: 0;
}

.calculator-disclaimer strong {
  color: #ffa500;
}

/* ////////////////////////////////// */


/* Trading Calculator Styles */
/* .trading-calculator {
  background: rgba(0,0,0,0.3);
  color: #f5f5dc;
}

.calculator-container {
  max-width: 1000px;
  margin: 0 auto;
}

.trading-calculator h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 15px;
  color: #f5f5dc;
}

.calculator-subtitle {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

.calculator-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tab {
  background: transparent;
  border: 1px solid #f5f5dc;
  color: #f5f5dc;
  padding: 10px 20px;
  border-radius: 25px;
  border-color: #f5f5dc;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.tab.active,
.tab:hover {
  background: #f5f5dc;
  color: #375426;
}

.calculator-description {
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

.calculator-form {
  background: #f5f5dc;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #375426;
  font-weight: 600;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #375426;
  border-radius: 8px;
  background: white;
  color: #375426;
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23375426' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: #2a3f1e;
  box-shadow: 0 0 0 2px rgba(55, 84, 38, 0.2);
}

.calculate-btn {
  display: block;
  width: 200px;
  margin: 20px auto 0;
  padding: 12px 25px;
  background: #375426;
  color: #f5f5dc;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
}

.calculate-btn:hover {
  background: #2a3f1e;
  transform: translateY(-2px);
}

.calculator-results {
  background: #f5f5dc;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.calculator-results h3 {
  color: #375426;
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  background: rgba(55, 84, 38, 0.1);
  border-radius: 8px;
}

.result-label {
  color: #375426;
  font-weight: 600;
}

.result-value {
  color: #375426;
  font-weight: bold;
}
 */



/* ////////////////////////////////////////// */

        .login-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            background-color: #f5f5dc;
            padding: 30px;
            border-radius: 8px;
            width: 90%;
            max-width: 400px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }
        
        .modal-content h3 {
            margin-bottom: 15px;
            color: #375426;
        }
        
        .modal-content p {
            margin-bottom: 20px;
            color: #375426;
        }
        
        .modal-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
        }
        
        .modal-buttons button {
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 600;
            transition: background-color 0.3s ease;
        }
        
        .btn-login {
            background-color: #375426;
            color: #f5f5dc;
        }
        
        .btn-login:hover {
            background-color: #9d9d55;
        }
        
        .btn-cancel {
            background-color: #f5f5dc;
            color: #375426;
        }
        
        .btn-cancel:hover {
            background-color: #f5f5dc;}
/* Trading Calculator Styles */
.trading-calculator {
  background: rgba(0,0,0,0.3);
  /* padding: 60px 8%; */
  color: #f5f5dc;
}

.calculator-container {
  max-width: 1000px;
  margin: 0 auto;
}

.trading-calculator h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 15px;
  color: #f5f5dc;
}

.calculator-subtitle {
  text-align: center;
  font-size: 16px;
  /* margin-bottom: 40px; */
  line-height: 1.6;
  opacity: 0.9;
}

.calculator-tabs {
  display: flex;
  justify-content: center;
  /* margin-bottom: 30px; */
  flex-wrap: wrap;
  gap: 10px;
}

.tab {
  background: transparent;
  border: 1px solid #f5f5dc;
  color: #f5f5dc;
  padding: 10px 20px;
  border-radius: 25px;
  border-color: #f5f5dc;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.tab.active,
.tab:hover {
  background: #f5f5dc;
  color: #375426;
}

.calculator-description {
  text-align: center;
  /* margin-bottom: 30px; */
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

.calculator-form {
  background: #f5f5dc;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #375426;
  font-weight: 600;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #375426;
  border-radius: 8px;
  background: white;
  color: #375426;
  font-size: 14px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23375426' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: #2a3f1e;
  box-shadow: 0 0 0 2px rgba(55, 84, 38, 0.2);
}

.calculate-btn {
  display: block;
  width: 200px;
  margin: 20px auto 0;
  padding: 12px 25px;
  background: #375426;
  color: #f5f5dc;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
}

.calculate-btn:hover {
  background: #2a3f1e;
  transform: translateY(-2px);
}

.calculator-results {
  background: #f5f5dc;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.calculator-results h3 {
  color: #375426;
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  background: rgba(55, 84, 38, 0.1);
  border-radius: 8px;
}

.result-label {
  color: #375426;
  font-weight: 600;
}

.result-value {
  color: #375426;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .trading-calculator {
    padding: 40px 5%;
  }
  
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .form-group {
    min-width: 100%;
  }
  
  .calculator-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .calculator-form {
    padding: 20px;
  }
}
    
    /* Risk disclaimer styling */
    .risk-disclaimer {
      background: rgba(255, 0, 0, 0.1);
      border-left: 4px solid #ff4444;
      padding: 15px;
      margin: 20px 0;
      font-size: 14px;
      color: #f5f5dc;
    }
    
    /* Broker regulation badges */
    .regulation-badge {
      display: inline-block;
      background: #375426;
      color: #f5f5dc;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 10px;
      margin: 2px;
      font-weight: bold;
    }
    
    /* Loading state for TradingView widget */
    .widget-loading {
      text-align: center;
      padding: 20px;
      color: #f5f5dc;
    }

    
    /* Risk disclaimer styling */
    .risk-disclaimer {
      background: rgba(255, 0, 0, 0.1);
      border-left: 4px solid #ff4444;
      padding: 15px;
      margin: 20px 0;
      font-size: 14px;
      color: #f5f5dc;
    }
    
    /* Broker regulation badges */
    .regulation-badge {
      display: inline-block;
      background: #375426;
      color: #f5f5dc;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 10px;
      margin: 2px;
      font-weight: bold;
    }
    
    /* Loading state for TradingView widget */
    .widget-loading {
      text-align: center;
      padding: 20px;
      color: #f5f5dc;
    }

/* Forex News Section Styles */
.forex-news {
  background: rgba(0,0,0,0.3);
  /* padding: 60px 8%; */
  color: #f5f5dc;
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
}

.forex-news h2 {
  text-align: center;
  font-size: 32px;
  /* margin-bottom: 15px; */
  color: #f5f5dc;
}

.news-subtitle {
  text-align: center;
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
}

.news-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid #f5f5dc;
  color: #f5f5dc;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
  background: #f5f5dc;
  color: #375426;
}

.calendar-header {
  display: grid;
  grid-template-columns: 100px 80px 1fr 100px 100px 100px 100px;
  gap: 10px;
  padding: 15px 20px;
  background: #375426;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  margin-bottom: 2px;
}

.header-item {
  text-align: center;
  font-size: 14px;
}

.calendar-events {
  background: #f5f5dc;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.event-item {
  display: grid;
  grid-template-columns: 100px 80px 1fr 100px 100px 100px 100px;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(55, 84, 38, 0.2);
  transition: background 0.3s;
  align-items: center;
}

.event-item:hover {
  background: rgba(55, 84, 38, 0.1);
}

.event-item:last-child {
  border-bottom: none;
}

.event-time {
  font-weight: 600;
  color: #375426;
  text-align: center;
  font-size: 14px;
}

.event-currency {
  text-align: center;
  font-weight: bold;
  color: #375426;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(55, 84, 38, 0.1);
  font-size: 14px;
}

.event-name {
  color: #375426;
  font-weight: 600;
  font-size: 14px;
}

.event-impact {
  text-align: center;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
}

.impact-high {
  background: #ff4444;
  color: white;
}

.impact-medium {
  background: #ffaa00;
  color: white;
}

.impact-low {
  background: #00aa44;
  color: white;
}

.impact-none {
  background: #cccccc;
  color: #666666;
}

.event-value {
  text-align: center;
  font-weight: 600;
  color: #375426;
  font-size: 14px;
}

.event-value.positive {
  color: #00aa44;
}

.event-value.negative {
  color: #ff4444;
}

.news-loading {
  text-align: center;
  padding: 40px;
  background: #f5f5dc;
  border-radius: 8px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(55, 84, 38, 0.2);
  border-left: 4px solid #375426;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.news-footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.news-footer p {
  /* margin-bottom: 10px; */
  opacity: 0.9;
}

.external-link {
  color: #f5f5dc;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #f5f5dc;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s;
  display: inline-block;
}

.external-link:hover {
  background: #f5f5dc;
  color: #375426;
}

/* No events message */
.no-events {
  text-align: center;
  padding: 40px;
  color: #375426;
  font-style: italic;
}
