/* Servsy Admin Panel Styles */
/* This file prevents 404 errors for app.css requests */

:root {
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #0f172a;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #2563eb;
  --background: #ffffff;
  --foreground: #0f172a;
}

.dark {
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --secondary: #1e293b;
  --secondary-foreground: #f8fafc;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #1e293b;
  --accent-foreground: #f8fafc;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #334155;
  --input: #334155;
  --ring: #3b82f6;
  --background: #0f172a;
  --foreground: #f8fafc;
}

/* Basic reset and utilities */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

/* Loading spinner */
.animate-spin {
  animation: spin 1s linear infinite;
}

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

/* Admin panel specific styles */
.admin-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-sidebar {
  width: 250px;
  background-color: var(--secondary);
  border-right: 1px solid var(--border);
}

.admin-content {
  flex: 1;
  padding: 1rem;
}

/* Error boundary styles */
.error-boundary {
  padding: 2rem;
  text-align: center;
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin: 1rem;
}

.error-boundary h2 {
  color: var(--destructive);
  margin-bottom: 1rem;
}

.error-boundary button {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  margin: 0.25rem;
}

.error-boundary button:hover {
  opacity: 0.9;
}

/* Responsive design */
@media (max-width: 768px) {
  .admin-sidebar {
    width: 100%;
    height: auto;
  }
  
  .admin-content {
    padding: 0.5rem;
  }
}