/* Modern Light Theme for Multiplication Table Generator */
:root {
  --primary-color: #3498db;
  --accent-color: #2980b9;
  --background-color: #f8f9fa;
  --text-color: #333;
  --border-color: #ddd;
  --success-color: #2ecc71;
  --hover-color: #e9f7fe;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  color: var(--primary-color);
  text-align: center;
  margin: 30px 0;
  font-size: 2.5rem;
  font-weight: 600;
}

#input-UI {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
}

#input {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 250px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

#submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

#submit:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

#submit:active {
  transform: translateY(0);
}

#article {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: var(--shadow);
}

#article p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

#article strong {
  color: var(--primary-color);
}

hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
  margin: 30px 0;
}

/* Table styling (for when tables are generated) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}

td {
  border: 1px solid var(--border-color);
  padding: 12px;
  text-align: center;
  transition: background-color 0.2s;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:hover td {
  background-color: var(--hover-color);
}

/* Responsive design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  #input-UI {
    flex-direction: column;
    align-items: center;
  }
  
  #input {
    width: 100%;
    max-width: 300px;
  }
  
  #article {
    padding: 20px;
  }
}