/* Workspaces Page Styles */
.workspaces-page {
  max-width: 1400px;
}

.workspaces-page .page-header {
  margin-bottom: 40px;
}

.workspaces-page .page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffd700;
  margin: 0 0 8px 0;
}

.workspaces-page .page-description {
  color: #cbd5e1;
  font-size: 1.125rem;
  margin: 0 0 24px 0;
}

.workspaces-page .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: all 0.2s ease;
}

.workspaces-page .btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
  text-decoration: none;
}

.workspaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.workspace-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.workspace-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.workspace-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.workspace-card:hover::before {
  opacity: 1;
}

.workspace-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.workspace-color {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.workspace-header h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.3;
}

.workspace-description {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex: 1;
  min-height: 48px;
}

.workspace-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.workspace-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.workspace-actions .btn {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-actions .btn-secondary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.workspace-actions .btn-secondary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
  transform: translateY(-1px);
}

.workspace-actions .btn-link {
  background: transparent;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.workspace-actions .btn-link:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1a1a2e;
}

/* Color variables */
:root {
  --color-red: #ef4444;
  --color-orange: #f97316;
  --color-yellow: #f59e0b;
  --color-green: #10b981;
  --color-blue: #3b82f6;
  --color-purple: #8b5cf6;
  --color-pink: #ec4899;
  --color-gray: #6b7280;
}

/* Empty state */
.workspaces-grid:empty::after {
  content: 'No workspaces yet';
  display: block;
  text-align: center;
  padding: 64px;
  color: #94a3b8;
  font-size: 1.25rem;
  grid-column: 1 / -1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .workspaces-page .page-header h1 {
    font-size: 2rem;
  }

  .workspaces-page .page-description {
    font-size: 1rem;
  }

  .workspaces-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .workspace-card {
    padding: 20px;
  }

  .workspace-header h3 {
    font-size: 1.25rem;
  }

  .workspace-description {
    font-size: 0.875rem;
  }

  .workspace-actions {
    flex-direction: column;
  }

  .workspace-actions .btn {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .workspaces-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Workspace Form Styles */
.form-page {
  max-width: 700px;
  margin: 0 auto;
}

.form-container {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-container h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px 0;
}

.form-container .form-description {
  color: #64748b;
  font-size: 1rem;
  margin: 0 0 32px 0;
  line-height: 1.5;
}

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

.form-container .form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.form-container .form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: white;
  color: #1a1a2e;
  font-family: inherit;
  box-sizing: border-box;
}

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

.form-input::placeholder {
  color: #94a3b8;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.form-actions .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 1rem;
}

.form-actions .btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
  text-decoration: none;
}

.form-actions .btn-link {
  background: transparent;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 1rem;
}

.form-actions .btn-link:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1a1a2e;
  text-decoration: none;
}

/* Mobile form responsiveness */
@media (max-width: 768px) {
  .form-container {
    padding: 24px;
  }

  .form-container h1 {
    font-size: 1.5rem;
  }

  .form-description {
    font-size: 0.9375rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn-primary,
  .form-actions .btn-link {
    width: 100%;
    text-align: center;
  }
}
