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

body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

body:has(.login-container) {
  display: flex;
  align-items: center;
  justify-content: center;
}

body:has(.schedule-page) {
  background: #f8fafc;
}

.loading {
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  padding: 40px;
  animation: .5s ease-out slideUp;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header h1 {
  color: #1a1a2e;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-header p {
  color: #6b7280;
  font-size: .95rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #374151;
  font-size: .875rem;
  font-weight: 600;
}

.form-group input {
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: all .2s;
  outline: none;
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-group input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, .1);
}

.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: #f3f4f6;
  border-radius: 10px;
}

.login-tabs .tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all .2s;
}

.login-tabs .tab:hover:not(.active) {
  color: #374151;
  background: rgba(255, 255, 255, .5);
}

.login-tabs .tab.active {
  background: #fff;
  color: #667eea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.error-message .error-icon {
  font-size: 1.1rem;
}

.success-message {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.success-message .success-icon {
  font-size: 1.1rem;
}

.login-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
  margin-top: 8px;
}

.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, .4);
}

.login-button:active:not(:disabled) {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.secondary-button {
  width: 100%;
  background: none;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  padding: 14px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  margin-top: 8px;
}

.secondary-button:hover {
  border-color: #667eea;
  color: #667eea;
  background: rgba(102, 126, 234, .05);
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.login-footer .demo-credentials {
  color: #6b7280;
  font-size: .85rem;
}

.login-footer .demo-credentials code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: #667eea;
}

.dashboard-container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

.dashboard-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  padding: 40px;
  animation: .5s ease-out slideUp;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 32px;
}

.dashboard-header h1 {
  color: #1a1a2e;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dashboard-header p {
  color: #6b7280;
  font-size: 1rem;
}

.dashboard-header p strong {
  color: #667eea;
}

.dashboard-content {
  margin-bottom: 24px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  margin-bottom: 20px;
}

.user-info .avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.user-info .user-details h3 {
  color: #1a1a2e;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.user-info .user-details .user-id {
  color: #9ca3af;
  font-size: .75rem;
  font-family: monospace;
}

.logout-button {
  width: 100%;
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
}

.logout-button:hover:not(:disabled) {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, .4);
}

.logout-button:active:not(:disabled) {
  transform: translateY(0);
}

.logout-button:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.schedule-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.schedule-header .header-left h1 {
  color: #1a1a2e;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.schedule-header .header-left .welcome-text {
  color: #6b7280;
  font-size: .9rem;
}

.schedule-header .header-left .welcome-text strong {
  color: #667eea;
}

.schedule-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.schedule-header .user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #f3f4f6;
  border-radius: 50px;
}

.schedule-header .user-badge .avatar-small {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
}

.schedule-header .user-badge .username {
  color: #374151;
  font-weight: 600;
  font-size: .9rem;
}

.schedule-header .logout-btn {
  padding: 10px 20px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.schedule-header .logout-btn:hover:not(:disabled) {
  background: #dc2626;
}

.schedule-header .logout-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.schedule-container {
  flex: 1;
  padding: 24px 32px;
  overflow: auto;
}

.schedule-wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  overflow: hidden;
}

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

.schedule-table th, .schedule-table td {
  border: 1px solid #e5e7eb;
  text-align: center;
  vertical-align: middle;
}

.schedule-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.schedule-table .time-header {
  width: 80px;
  min-width: 80px;
  padding: 16px 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.schedule-table .day-header {
  padding: 16px 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.schedule-table .time-cell {
  padding: 12px 8px;
  background: #f9fafb;
  color: #6b7280;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}

.schedule-table .schedule-cell {
  padding: 0;
  height: 48px;
  min-height: 48px;
  background: #fff;
  transition: background-color .15s;
  cursor: pointer;
}

.schedule-table .schedule-cell:hover {
  background: #f0f4ff;
}

.schedule-table tbody tr:nth-child(2n) .time-cell {
  background: #f3f4f6;
}

@media (width <= 1024px) {
  .schedule-header {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .schedule-header .header-left h1 {
    font-size: 1.5rem;
  }

  .schedule-container {
    padding: 16px;
  }

  .schedule-table .day-header {
    font-size: .7rem;
    padding: 12px 4px;
  }

  .schedule-table .time-cell {
    font-size: .7rem;
    padding: 8px 4px;
  }

  .schedule-table .schedule-cell {
    height: 40px;
  }
}

@media (width <= 768px) {
  .schedule-header .user-badge .username {
    display: none;
  }

  .schedule-table .day-header {
    font-size: .65rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 12px 8px;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: .2s fadeIn;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  width: 90%;
  max-width: 400px;
  animation: .3s slideUp;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modal-header h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.modal-header .modal-close {
  background: rgba(255, 255, 255, .2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.modal-header .modal-close:hover {
  background: rgba(255, 255, 255, .3);
}

.modal-body {
  padding: 24px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  justify-items: center;
}

.modal-hint {
  text-align: center;
  color: #6b7280;
  font-size: .85rem;
  margin-bottom: 16px;
}

.icon-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 3px solid rgba(0, 0, 0, 0);
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}

.icon-option:hover {
  transform: translateY(-3px)scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

.icon-option:active {
  transform: translateY(0)scale(1);
}

.icon-option.selected {
  border-color: #1a1a2e;
  box-shadow: 0 0 0 3px rgba(26, 26, 46, .3);
}

.icon-option.selected:after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: #1a1a2e;
  border-radius: 50%;
  color: #fff;
  font-size: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-option .icon-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.icon-option.color-1 {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.icon-option.color-2 {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.icon-option.color-3 {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.icon-option.color-4 {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.icon-option.color-5 {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.icon-option.color-6 {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.icon-option.color-7 {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.icon-option.color-8 {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.cell-entries {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px;
  width: 100%;
}

.cell-entry {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .65rem;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
}

.cell-entry.color-1 {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.cell-entry.color-2 {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.cell-entry.color-3 {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.cell-entry.color-4 {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.cell-entry.color-5 {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.cell-entry.color-6 {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.cell-entry.color-7 {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.cell-entry.color-8 {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.cell-entry .cell-entry-number {
  font-weight: 800;
}

.cell-entry .cell-entry-time {
  font-weight: 500;
  opacity: .9;
}

.modal-section {
  margin-bottom: 16px;
}

.no-entries {
  text-align: center;
  color: #9ca3af;
  font-size: .85rem;
  padding: 12px;
}

.current-entries {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px;
}

.entries-label {
  font-size: .8rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.entry-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.entry-row:last-child {
  margin-bottom: 0;
}

.entry-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.entry-number.color-1 {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.entry-number.color-2 {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.entry-number.color-3 {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.entry-number.color-4 {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.entry-number.color-5 {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.entry-number.color-6 {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.entry-number.color-7 {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.entry-number.color-8 {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.entry-time {
  flex: 1;
  font-size: .85rem;
  color: #374151;
  font-weight: 500;
}

.entry-remove {
  width: 24px;
  height: 24px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: all .2s;
}

.entry-remove:hover {
  background: #dc2626;
  color: #fff;
}

.time-input-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.selected-number-display {
  display: flex;
  justify-content: center;
}

.large-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.large-number.color-1 {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.large-number.color-2 {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.large-number.color-3 {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.large-number.color-4 {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.large-number.color-5 {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.large-number.color-6 {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.large-number.color-7 {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.large-number.color-8 {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.time-inputs {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}

.time-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.time-field label {
  font-size: .75rem;
  color: #6b7280;
  text-align: center;
}

.time-field input {
  width: 80px;
  padding: 10px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  transition: border-color .2s;
}

.time-field input:focus {
  outline: none;
  border-color: #667eea;
}

.time-separator {
  font-size: 1rem;
  color: #6b7280;
  padding-bottom: 12px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.back-button {
  flex: 1;
  padding: 12px;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  color: #6b7280;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.back-button:hover {
  background: #e5e7eb;
  color: #374151;
}

.done-button {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.done-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, .4);
}

.done-button.full-width {
  flex: none;
  width: 100%;
}

.schedule-table .schedule-cell:has(.cell-entry) {
  background: #f8fafc;
}

.clipboard-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.clipboard-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}

.clipboard-button .button-icon {
  font-size: 1rem;
}

.clipboard-button:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.clipboard-button:disabled, .clipboard-button.disabled {
  opacity: .5;
  cursor: not-allowed;
}

.clipboard-button.copy-button:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.clipboard-button.paste-button:hover:not(:disabled) {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #15803d;
}

.clipboard-button.clear-button:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #ef4444;
  color: #dc2626;
}

.clipboard-hint {
  margin-top: 12px;
  padding: 8px 12px;
  background: #eff6ff;
  border-radius: 6px;
  color: #1d4ed8;
  font-size: .8rem;
  text-align: center;
}

.schedule-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #6b7280;
}

.schedule-loading p {
  margin-top: 16px;
  font-size: .9rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: 1s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.schedule-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: .9rem;
}

@media (width <= 480px) {
  .modal-content {
    width: 95%;
    margin: 16px;
  }

  .icon-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .icon-option {
    width: 48px;
    height: 48px;
  }

  .icon-option .icon-number {
    font-size: 1.25rem;
  }

  .cell-number {
    width: 26px;
    height: 26px;
    font-size: .85rem;
  }
}

.schedule-selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.schedule-selector-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.schedule-label {
  font-weight: 600;
  color: #374151;
  font-size: .9rem;
  white-space: nowrap;
}

.loading-text {
  color: #9ca3af;
  font-size: .9rem;
}

.no-schedules {
  color: #9ca3af;
  font-size: .9rem;
  font-style: italic;
}

.schedule-select {
  flex: 1;
  max-width: 300px;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: #374151;
  background: #fff;
  cursor: pointer;
  transition: all .2s;
}

.schedule-select:hover {
  border-color: #d1d5db;
}

.schedule-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, .1);
}

.schedule-selector-right {
  display: flex;
  gap: 8px;
}

.schedule-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.schedule-btn.new-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.schedule-btn.new-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, .4);
}

.schedule-btn.manage-btn {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.schedule-btn.manage-btn:hover {
  background: #e5e7eb;
}

.schedule-btn.now-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
}

.schedule-btn.now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, .4);
}

.schedule-btn.deploy-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
}

.schedule-btn.deploy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, .4);
}

.no-schedule-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  text-align: center;
}

.no-schedule-message p {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 20px;
}

.create-first-schedule-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.create-first-schedule-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, .4);
}

.schedule-modal {
  max-width: 450px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.schedule-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0);
  transition: all .2s;
}

.schedule-list-item.current {
  background: #eff6ff;
  border-color: #3b82f6;
}

.schedule-list-item:hover {
  background: #f3f4f6;
}

.schedule-name {
  font-weight: 500;
  color: #374151;
  font-size: .95rem;
}

.schedule-actions {
  display: flex;
  gap: 6px;
}

.schedule-action-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: .9rem;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-action-btn.rename-btn {
  background: #fef3c7;
}

.schedule-action-btn.rename-btn:hover {
  background: #fde68a;
}

.schedule-action-btn.delete-btn {
  background: #fee2e2;
}

.schedule-action-btn.delete-btn:hover {
  background: #fecaca;
}

.delete-header {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.delete-warning {
  color: #374151;
  font-size: .95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.delete-warning strong {
  color: #dc2626;
}

.delete-confirm-button {
  flex: 1;
  padding: 12px;
  background: #ef4444;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.delete-confirm-button:hover {
  background: #dc2626;
}

.operations-or-schedule {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.operations-or-schedule-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.operations-or-schedule-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, .4);
}

@media (width <= 640px) {
  .schedule-selector {
    flex-direction: column;
    align-items: stretch;
  }

  .schedule-selector-left {
    flex-direction: column;
    align-items: stretch;
  }

  .schedule-select {
    max-width: none;
  }

  .schedule-selector-right {
    justify-content: stretch;
  }

  .schedule-selector-right .schedule-btn {
    flex: 1;
  }
}
