/* General Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

.body-container {
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  min-height: 100vh;       /* full viewport height */
  padding: 2rem;
  background-color: #f9f9f9; /* optional background */
}

.container {
  max-width: 800px;
  width: 100%;
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

  .header1 {
    text-align: center;
    margin-bottom: 30px;
  }
  
  h1 {
    font-size: 2.5rem;
    color: #6a82fb;
    margin-bottom: 10px;
  }
  
  p {
    font-size: 1rem;
    color: #555;
  }
  
  /* Input Section */
  .input-section {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .input-group {
    display: flex;
    flex-direction: column;
  }
  
  label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #444;
  }
  
  input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  
  input:focus {
    border-color: #6a82fb;
    box-shadow: 0 0 8px rgba(106, 130, 251, 0.3);
    outline: none;
  }
  
  button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background-color: #6a82fb;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    flex: 1;
  }
  
  button:hover {
    background-color: #5a72db;
    transform: translateY(-2px);
  }
  
  /* Result Section */
  .result-section {
    margin-top: 30px;
  }
  
  h2 {
    font-size: 1.8rem;
    color: #6a82fb;
    margin-bottom: 20px;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }
  
  th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
  }
  
  th {
    background-color: #6a82fb;
    color: #ffffff;
    font-weight: 500;
  }
  
  tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  tbody tr:hover {
    background-color: #f1f1f1;
  }
  
  .total-emi {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    color: #000;
  }
  
  /* Article Section */
  .article {
    margin-top: 30px;
  }
  
  .article h2 {
    font-size: 1.8rem;
    color: #6a82fb;
    margin-bottom: 15px;
  }
  
  .article h3 {
    font-size: 1.4rem;
    color: #444;
    margin-bottom: 10px;
  }
  
  .article p, .article ol, .article ul {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
  }
  
  .article ol, .article ul {
    padding-left: 20px;
  }
  

  /* Add these styles to your existing CSS */
  .button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
  }

  #resetBtn {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  #resetBtn:hover {
    background-color: #cc0000;
  }

  .download-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s;
  }

  .download-btn:hover {
    background-color: #45a049;
  }
  /* Responsive Design */
  @media (max-width: 600px) {
    .container {
      padding: 20px;
    }
  
    h1 {
      font-size: 2rem;
    }
  
    h2 {
      font-size: 1.5rem;
    }
  
    input, button {
      font-size: 0.9rem;
    }
  
    table {
      font-size: 0.9rem;
    }
  }