/* ChoreTyme - Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f0f4f8;
  min-height: 100vh;
}

.header {
  padding: 20px;
  text-align: center;
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Basketball theme (Ezra) */
body.basketball .header { background: linear-gradient(135deg, #e65c00, #f9d423); }
body.basketball .card { border-top: 4px solid #e65c00; }
body.basketball .btn-primary { background: #e65c00; }
body.basketball .btn-primary:hover { background: #cc5200; }

/* Girly theme (Kassidy) */
body.girly .header { background: linear-gradient(135deg, #f953c6, #b91d73); }
body.girly .card { border-top: 4px solid #f953c6; }
body.girly .btn-primary { background: #f953c6; }
body.girly .btn-primary:hover { background: #d940aa; }

/* Admin theme */
body.admin .header { background: linear-gradient(135deg, #2c3e50, #4ca1af); }
body.admin .card { border-top: 4px solid #4ca1af; }
body.admin .btn-primary { background: #4ca1af; }
body.admin .btn-primary:hover { background: #3a8a97; }

/* Home page */
body.home .header { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }

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

.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-2px);
}

.chore-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 6px;
}

.chore-desc {
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-submitted { background: #dbeafe; color: #1e40af; }
.status-approved { background: #d1fae5; color: #065f46; }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  color: white;
}

.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-secondary:hover {
  background: #cbd5e0;
}

.btn-success {
  background: #38a169;
  color: white;
}

.btn-success:hover {
  background: #2f855a;
}

.btn-danger {
  background: #e53e3e;
  color: white;
}

.btn-danger:hover {
  background: #c53030;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.photo-input {
  width: 100%;
  padding: 10px;
  border: 2px dashed #cbd5e0;
  border-radius: 8px;
  margin: 10px 0;
  cursor: pointer;
}

.photo-preview {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  margin: 10px 0;
  display: none;
}

.rejection-note {
  background: #fff5f5;
  border: 1px solid #fc8181;
  border-radius: 8px;
  padding: 10px;
  color: #c53030;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.home-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.home-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.home-card .emoji {
  font-size: 3rem;
  margin-bottom: 15px;
}

.home-card h2 {
  font-size: 1.4rem;
  color: #2d3748;
}

.home-card p {
  color: #718096;
  margin-top: 8px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  background: #e2e8f0;
  color: #4a5568;
}

.tab-btn.active {
  background: #4ca1af;
  color: white;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4ca1af;
  box-shadow: 0 0 0 3px rgba(76, 161, 175, 0.2);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: white;
  border-radius: 16px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h3 {
  margin-bottom: 20px;
  color: #2d3748;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.hidden { display: none; }

.empty-state {
  text-align: center;
  padding: 40px;
  color: #718096;
}

.empty-state .emoji {
  font-size: 3rem;
  margin-bottom: 10px;
}

.progress-bar-container {
  background: #e2e8f0;
  border-radius: 10px;
  height: 10px;
  margin: 15px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
  background: #38a169;
}

.stats {
  text-align: center;
  color: #4a5568;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.admin-photo {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 12px;
  }
}
