/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Logo */
.logo-container {
  text-align: center;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
}

.logo {
  max-width: 180px;
  height: auto;
}

:root {
  --primary-color: #28005A;
  --primary-dark: #1c0040;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --background: #f8f9fa;
  --card-background: #ffffff;
  --border-color: #dadce0;
  --highlight-bg: #ede8f5;
  --success-color: #34a853;
  --warning-color: #ea4335;
  --facilities-color: #fbbc04;
}

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
.header {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--card-background);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.desk-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.desk-location {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Today Section */
.today-section {
  background: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.today-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.today-team {
  background: var(--primary-color);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 600;
}

.today-team.weekend {
  background: var(--text-secondary);
}

.loading {
  color: var(--text-secondary);
  font-weight: 400;
}

/* Schedule Section */
.schedule-section {
  background: var(--card-background);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.schedule-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.schedule-list {
  list-style: none;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
}

.schedule-item.is-today {
  background: var(--highlight-bg);
  font-weight: 600;
}

.schedule-day {
  color: var(--text-secondary);
  min-width: 3rem;
}

.schedule-item.is-today .schedule-day {
  color: var(--primary-color);
}

.schedule-team {
  color: var(--text-primary);
  text-align: right;
}

.today-indicator {
  color: var(--primary-color);
  margin-left: 0.5rem;
  font-size: 0.75rem;
}

/* Actions Section */
.actions-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.action-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--card-background);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.action-link:active {
  transform: scale(0.98);
}

.action-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.action-it .action-icon {
  background: #fce8e6;
  color: var(--warning-color);
}

.action-facilities .action-icon {
  background: #fef7e0;
  color: #e37400;
}

/* Error Section */
.error-section {
  background: var(--card-background);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.error-content h2 {
  color: var(--warning-color);
  margin-bottom: 0.5rem;
}

.error-content p {
  color: var(--text-secondary);
}

/* Search Form */
.search-form {
  background: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-button {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.search-button:hover {
  background: var(--primary-dark);
}

.search-button:active {
  transform: scale(0.98);
}

/* Back Button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-color);
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.back-button:hover {
  background: var(--highlight-bg);
}

.back-button::before {
  content: "\2190";
}

.error-content .back-button {
  margin-top: 1rem;
}

[hidden] {
  display: none !important;
}

/* Tablet and up */
@media (min-width: 768px) {
  .container {
    padding: 2rem;
  }

  .header {
    padding: 2rem;
  }

  .desk-title {
    font-size: 1.75rem;
  }

  .today-team {
    font-size: 1.5rem;
    padding: 1.5rem 2rem;
  }

  .actions-section {
    flex-direction: row;
  }

  .action-link {
    flex: 1;
  }
}
