:root {
  --bg-color: #f0f2f5;
  --container-bg: white;
  --text-color: #333;
  --ball-placeholder: #ddd;
  --ball-placeholder-text: #888;
  --input-bg: #fff;
  --input-border: #ddd;
  --accent-color: #ff6b6b;
}

body.dark-mode {
  --bg-color: #1a1a1a;
  --container-bg: #2d2d2d;
  --text-color: #e0e0e0;
  --ball-placeholder: #444;
  --ball-placeholder-text: #666;
  --input-bg: #3d3d3d;
  --input-border: #555;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 2rem 0;
  transition: background-color 0.5s ease, color 0.5s ease;
  box-sizing: border-box;
}

.container {
  background-color: var(--container-bg);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 500px;
  width: 90%;
  transition: background-color 0.5s ease;
}

h1 {
  color: var(--text-color);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

/* AI Section Styles (Upload) */
.ai-section {
  margin-bottom: 2rem;
}

.upload-container {
  margin-bottom: 1.5rem;
}

.upload-label {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.upload-label:hover {
  background-color: #ee5253;
}

.upload-label input[type="file"] {
  display: none;
}

#image-preview-container {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

#image-preview {
  max-width: 100%;
  max-height: 300px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.label-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  text-align: left;
}

.class-name {
  width: 80px;
  font-weight: bold;
  font-size: 0.9rem;
}

.progress-bar {
  flex-grow: 1;
  height: 16px;
  background-color: var(--input-border);
  border-radius: 8px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.probability {
  width: 45px;
  font-size: 0.85rem;
  text-align: right;
}

/* Lotto Section Styles */
.numbers-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.ball {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.ball:hover {
  transform: scale(1.1);
}

.ball.placeholder {
  background-color: var(--ball-placeholder);
  color: var(--ball-placeholder-text);
}

.color-1 { background-color: #fbc400; } 
.color-11 { background-color: #69c8f2; } 
.color-21 { background-color: #ff7272; } 
.color-31 { background-color: #aaa; }    
.color-41 { background-color: #b0d840; } 

#generate-btn {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  width: 100%;
}

#generate-btn:hover {
  background-color: #357abd;
}

#generate-btn:active {
  transform: scale(0.95);
}

.divider {
  height: 1px;
  background-color: var(--input-border);
  margin: 2.5rem 0;
}

/* Inquiry Section Styles */
.inquiry-section h3 {
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.form-group {
  margin-bottom: 1rem;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background-color: var(--input-bg);
  color: var(--text-color);
  font-family: inherit;
  box-sizing: border-box;
}

textarea {
  height: 100px;
  resize: vertical;
}

#submit-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
}

#submit-btn:hover {
  background-color: #27ae60;
}
