/* Updated trending color palette and responsive design */
:root {
    --primary: #3F51B5; /* Modern blue */
    --secondary: #009688; /* Teal */
    --accent: #FFC107; /* Amber */
    --background: #f4f4f4;
    --text: #333;
    --card-bg: #ffffff;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
  }
  
  /* Header styling */
  header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 1rem 0;
  }
  
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .header-container h1 {
    font-size: 1.8rem;
  }
  
  .header-container nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
  }
  
  .header-container nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
  }
  
  /* Main container */
  .container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    animation: fadeIn 1s ease-in-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Calculator card styling */
  .calculator-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
  }
  
  .input-group {
    margin-bottom: 1.5rem;
  }
  
  label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
  }
  
  input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .amount-display {
    font-weight: bold;
    color: var(--primary);
  }
  
  .results-card {
    background-color: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
  }
  
  .emi-display h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .emi-amount {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }
  
  .total-payment {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
  }
  
  .chart-container {
    margin-top: 2rem;
    height: 300px;
  }
  
  /* Advertisement Section */
  .ad-section {
    margin: 2rem 0;
  }
  
  .ad-container {
    text-align: center;
    padding: 1rem;
    background-color: #e0e0e0;
    border-radius: 8px;
  }
  
  .ad-placeholder {
    background-color: #ccc;
    padding: 20px;
    color: #555;
    border-radius: 4px;
    font-weight: bold;
  }
  
  /* Affiliate Section */
  .affiliate-section {
    background-color: var(--card-bg);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .affiliate-section h3 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1rem;
  }
  
  .affiliate-section ul {
    list-style: none;
    padding: 0;
  }
  
  .affiliate-section ul li {
    margin-bottom: 0.5rem;
  }
  
  .affiliate-section ul li a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .affiliate-section ul li a:hover {
    color: var(--secondary);
  }
  
  /* Footer styling */
  footer {
    background: var(--primary);
    color: #fff;
    padding: 1rem 0;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-container p {
    margin-bottom: 0.5rem;
  }
  
  .footer-container nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
  }
  
  .footer-container nav ul li a {
    color: #fff;
    text-decoration: none;
  }
  
  /* Floating AI Chatbot Styles */
  .chatbot-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-width: 90%;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
  }
  
  @keyframes slideIn {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  .chatbot-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .chatbot-header h2 {
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
  }
  
  .chatbot-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
  }
  
  .chatbot-body {
    padding: 0.75rem;
    flex: 1;
    overflow-y: auto;
    max-height: 250px;
    background: #f9f9f9;
  }
  
  .ai-conversation .ai-msg, .ai-conversation .user-msg {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
  }
  
  .ai-conversation .ai-msg {
    background-color: #e0f7fa;
    color: #00695c;
    margin-right: 20%;
  }
  
  .ai-conversation .user-msg {
    background-color: #d1c4e9;
    color: #4a148c;
    margin-left: 20%;
    text-align: right;
  }
  
  /* Sample Prompts styling */
  .sample-prompts {
    padding: 0.5rem;
    background: #fff;
    border-top: 1px solid #ddd;
  }
  
  .sample-prompts p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text);
  }
  
  .sample-prompts ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .sample-prompts ul li {
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
  }
  
  .sample-prompts ul li:hover {
    opacity: 0.9;
  }
  
  .chatbot-footer {
    border-top: 1px solid #ddd;
    padding: 0.75rem;
    background: #fff;
  }
  
  .chatbot-footer textarea {
    width: 100%;
    resize: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .chatbot-footer button {
    width: 100%;
    background-color: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .chatbot-footer button:hover {
    background-color: #00796B;
  }
  
  /* Responsive adjustments */
  @media (max-width: 600px) {
    .calculator-card, .affiliate-section {
      padding: 1rem;
    }
    .emi-amount {
      font-size: 2rem;
    }
    .total-payment {
      flex-direction: column;
    }
    header .header-container {
      flex-direction: column;
      align-items: center;
    }
    footer .footer-container {
      align-items: center;
    }
  }
  