* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #f0f2f5;
  color: #333;
  min-height: 100vh;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 40px 0 20px;
}

header h1 {
  font-size: 2rem;
  color: #1a73e8;
  margin-bottom: 8px;
}

header p {
  color: #666;
  font-size: 1.05rem;
}

.generator-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 32px;
  margin-top: 24px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-row .form-group:first-child {
  flex: 1;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
  appearance: auto;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: #1a73e8;
}

.count-input {
  width: 72px !important;
}

.btn-generate {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-generate:hover {
  background: #1557b0;
}

.btn-generate:active {
  background: #0d47a1;
}

/* Result Section */
.result-section {
  display: none;
  margin-top: 28px;
}

.iban-output {
  background: #f8f9fa;
  border: 2px solid #e8eaed;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  position: relative;
}

.iban-text {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a73e8;
  letter-spacing: 2px;
  word-break: break-all;
  padding: 4px 0;
}

.iban-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.btn-copy {
  padding: 8px 20px;
  background: #34a853;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-copy:hover {
  background: #2d8f47;
}

.copy-feedback {
  display: none;
  color: #34a853;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Details Table */
.iban-details {
  margin-top: 24px;
}

.iban-details h3 {
  margin-bottom: 12px;
  color: #444;
  font-size: 1rem;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
}

.details-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
}

.details-table td:first-child {
  font-weight: 600;
  color: #555;
  width: 40%;
}

.details-table td:last-child {
  font-family: "Courier New", Courier, monospace;
  color: #333;
}

.valid {
  color: #34a853 !important;
  font-weight: 700;
}

.invalid {
  color: #ea4335 !important;
  font-weight: 700;
}

footer {
  text-align: center;
  padding: 32px 0 20px;
  color: #999;
  font-size: 0.85rem;
}

footer a {
  color: #1a73e8;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 12px;
  }

  header {
    padding: 24px 0 12px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .generator-card {
    padding: 20px;
  }

  .iban-text {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .form-row {
    flex-direction: column;
  }

  .count-input {
    width: 100% !important;
  }
}
