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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
}

.app {
  max-width: 1800px;
  margin: 0 auto;
  padding: 2rem;
}

.app-header {
  margin-bottom: 2rem;
}

.app-header h1 {
  font-size: 2.5rem;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.app-header p {
  color: #94a3b8;
  font-size: 1.1rem;
}

.toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.date-input {
  padding: 0.875rem 1.25rem;
  background: #1e293b;
  border: 2px solid #334155;
  color: #f8fafc;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.date-input:focus {
  outline: none;
  border-color: #3b82f6;
}

.btn-primary {
  padding: 0.875rem 1.5rem;
  background: #3b82f6;
  border: none;
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
}

.btn-primary:hover {
  background: #2563eb;
}

.schedule-container {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table thead {
  background: #0f172a;
}

.schedule-table th {
  padding: 1rem;
  text-align: left;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.9375rem;
  border-bottom: 2px solid #334155;
}

.schedule-table th.staff-column {
  width: 200px;
  min-width: 200px;
}

.schedule-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #334155;
  border-right: 1px solid #334155;
}

.schedule-table td:last-child {
  border-right: none;
}

.schedule-table tbody tr:hover {
  background: #0f172a;
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.staff-column {
  background: #0f172a;
}

.staff-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.staff-name {
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.9375rem;
}

.role-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  width: fit-content;
}

.shift-cell {
  text-align: center;
  vertical-align: middle;
}

.shift-block {
  background: #3b82f6;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.shift-block:hover {
  background: #2563eb;
  transform: scale(1.02);
}

.shift-time {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.no-shift {
  color: #475569;
  font-size: 1.25rem;
}

.summary {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.summary h3 {
  color: #f8fafc;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.summary-stat {
  background: #0f172a;
  padding: 1.25rem;
  border-radius: 0.5rem;
  text-align: center;
}

.summary-stat .stat-label {
  display: block;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.summary-stat .stat-value {
  display: block;
  color: #f8fafc;
  font-size: 2rem;
  font-weight: 700;
}

@media (max-width: 1400px) {
  .schedule-container {
    overflow-x: auto;
  }
  
  .schedule-table {
    min-width: 1200px;
  }
}
