* {
  margin: 0;
  padding: 0;

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f1f2f3;

}

.container {
  box-sizing: border-box;
  max-width: 1540px;
  min-width: 1240px;
  width: 100%;
  margin: 20px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  position: relative;
  margin-bottom: 25px;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.6;
}

.settings-panel {
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 25px;
}

.panel-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #e53935;
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.setting-group {
  margin-bottom: 20px;
}

.setting-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

select,
input[type="text"] {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  background: white;
  transition: all 0.3s;
}

select:focus,
input[type="text"]:focus {
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
  outline: none;
}

.fixed-balls,
.excluded-balls {
  display: flex;
  gap: 10px;
}

.fixed-balls input,
.excluded-balls input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}

.fixed-balls input:focus,
.excluded-balls input:focus {
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
  outline: none;
}

.number-range {
  display: flex;
  align-items: center;
  gap: 10px;
}

.number-range input {
  flex: 1;
}

.actions {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 14px 28px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-generate {
  background: linear-gradient(135deg, #e53935, #b71c1c);
  color: white;
}

.btn-copy {
  background: linear-gradient(135deg, #1e88e5, #0d47a1);
  color: white;
}

.btn-clear {
  background: linear-gradient(135deg, #43a047, #2e7d32);
  color: white;
}

.btn-reset {
  background: linear-gradient(135deg, #795548, #5d4037);
  color: white;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.results-section {
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 25px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.result-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eee;
}

.card-number {
  font-weight: bold;
  color: #e53935;
  font-size: 18px;
}

.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.red-ball,
.blue-ball {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  color: white;
}

.red-ball {
  background: linear-gradient(135deg, #e53935, #b71c1c);
  box-shadow: 0 2px 5px rgba(229, 57, 53, 0.3);
}

.blue-ball {
  background: linear-gradient(135deg, #1e88e5, #0d47a1);
  box-shadow: 0 2px 5px rgba(30, 136, 229, 0.3);
}

.card-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #777;
  margin-top: 10px;
}

.info-section {
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 25px;
}

.info-title {
  font-size: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-content {
  line-height: 1.8;
  color: #555;
}

.info-content p {
  margin-bottom: 10px;
}

.info-content p:last-child {
  margin-bottom: 0;
  color: #e53935;
  font-weight: 500;
}

footer {
  text-align: center;
  color: #777;
  font-size: 14px;
  background: #f1f1f1;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
  margin: 20px 0;
}

.warning-note {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 10px;
  border-radius: 0 4px 4px 0;
}
