/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background: #f5f5f5;
  color: #222;
  line-height: 1.5;
  transition: background 0.3s, color 0.3s;
}

body.dark {
  background: #121212;
  color: #e5e5e5;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Header */
header {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 2px solid #ccc;
}

header img {
  height: 50px;
  margin-right: 15px;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.mode-btn {
  margin-left: auto;
  padding: 8px 15px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background: #ff9800;
  color: #fff;
  transition: background 0.3s;
}

.mode-btn:hover {
  background: #e68a00;
}

/* Hero Section */
.hero .title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.hero .subtitle {
  font-size: 1rem;
  margin-bottom: 15px;
}

.countdown-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.countdown-big {
  display: flex;
  gap: 15px;
}

.time-part {
  background: #ff9800;
  color: #fff;
  padding: 15px 10px;
  border-radius: 8px;
  text-align: center;
  min-width: 70px;
}

.time-part .time-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.time-part .time-label {
  font-size: 0.75rem;
}

/* Latest Draw Card */
.latest-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.latest-head {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.pill-text {
  font-weight: 600;
  font-size: 0.85rem;
  color: #555;
}

.pill {
  background: #ff9800;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* Balls */
.balls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ball {
  width: 40px;
  height: 40px;
  background: #2196f3;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ball.bonus {
  background: #ff5722;
}

/* Past Results */
.past-results {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.result-card {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.result-date {
  font-weight: 700;
  font-size: 0.9rem;
  width: 100px;
}

.result-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: 10px;
}

/* Admin Panel */
.admin-container {
  width: 90%;
  max-width: 600px;
  margin: 30px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.admin-container h1 {
  text-align: center;
  margin-bottom: 20px;
}

.admin-container input,
.admin-container textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.admin-container button {
  padding: 10px 15px;
  background: #ff9800;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.admin-container button:hover {
  background: #e68a00;
}

.hidden {
  display: none;
}

/* Responsive */
@media (max-width:768px){
  .balls {
    justify-content: flex-start;
  }

  .countdown-big {
    flex-direction: column;
    align-items: center;
  }

  .result-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-date {
    width: auto;
    margin-bottom: 5px;
  }
}
