:root {
  --lotto-pink: #d81b60;
  --lotto-pink-light: #fce4ec;
  --lotto-magenta: #c2185b;
  --lotto-blue-grey: #546e7a;
  --lotto-blue-grey-light: #eceff1;
  --lotto-orange: #f57c00;
  --lotto-blue-btn: #1976d2;
  --lotto-grey-text: #757575;
  
  --primary-color: var(--lotto-pink);
  --primary-hover: var(--lotto-magenta);
  --secondary-color: var(--lotto-blue-grey);
  --background-color: #f5f5f5;
  --card-bg: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  --font-sans: 'Inter', 'Malgun Gothic', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--background-color);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
}

/* Layout */
.app-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .app-container {
    grid-template-columns: 1fr;
  }
}

/* Panels */
.selection-panel {
  border: 2px solid var(--lotto-pink);
  border-radius: var(--radius-md);
  background: white;
  overflow: hidden;
}

.confirmation-panel {
  border: 2px solid var(--lotto-blue-grey);
  border-radius: var(--radius-md);
  background: white;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 0.875rem;
}

.btn-pink-text {
  background: transparent;
  color: var(--lotto-pink);
  border: 1px solid var(--lotto-pink);
}

.btn-pink-text:hover {
  background: var(--lotto-pink-light);
}

.btn-confirm {
  background-color: #757575;
  color: white;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
}

.btn-purchase {
  background-color: var(--lotto-blue-btn);
  color: white;
  width: 100%;
  padding: 1.25rem;
  font-size: 1.25rem;
  border-radius: 0;
}

/* Lotto Numbers Styling */
.lotto-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.75rem;
  color: white;
}

.ball-1-10 { background-color: #fbc02d; }
.ball-11-20 { background-color: #1976d2; }
.ball-21-30 { background-color: #d32f2f; }
.ball-31-40 { background-color: #757575; }
.ball-41-45 { background-color: #388e3c; }

.ball-empty {
  background-color: #e0e0e0;
}

/* Selector Grid - Updated to 5x9 */
.num-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 15px;
  background: #fff;
}

.num-box {
  aspect-ratio: 1;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  transition: all 0.2s ease;
}

.num-box:hover {
  border-color: var(--lotto-pink);
  background: var(--lotto-pink-light);
}

.num-box.selected {
  background-color: var(--lotto-pink);
  color: white;
  border-color: var(--lotto-pink);
  box-shadow: 0 2px 4px rgba(216, 27, 96, 0.3);
}

/* Redesigning buttons for better clickability */
.btn-confirm {
  background-color: #454545;
  color: white;
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  margin-top: 10px;
  border-radius: var(--radius-md);
}

.btn-confirm:hover {
  background-color: #222;
}

.game-slot {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
  min-height: 60px;
}

.game-slot .prefix {
  font-weight: bold;
  color: #333;
}

.game-slot .status-text {
  color: #999;
  font-size: 0.875rem;
}

.slot-actions button {
  background: white;
  border: 1px solid #ddd;
  padding: 2px 6px;
  font-size: 0.75rem;
  margin-left: 2px;
  cursor: pointer;
}

