/* Fallback styles if Tailwind doesn't load */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(to right, #111827, #0f172a, #000);
  color: #fff;
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  color: #fff;
  transition: all 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #60a5fa;
  background: rgba(255,255,255,0.1);
}

/* Buttons */
.btn,
button[type="submit"] {
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.btn:hover,
button[type="submit"]:hover {
  background: linear-gradient(90deg, #1e40af, #0891b2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Cards */
.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

th {
  font-weight: 600;
  background: rgba(255,255,255,0.05);
}

tr:hover {
  background: rgba(255,255,255,0.05);
}

/* Flash messages */
.flash-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.flash-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility classes */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }
.rounded { border-radius: 0.5rem; }
.shadow { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* Loading spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #60a5fa;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.4s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.3s ease-out;
}

.transition-all {
  transition: all 0.3s ease;
}

/* Hover effects */
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .card {
    padding: 1rem;
  }
  
  th, td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  
  /* Mobile sidebar */
  aside {
    position: fixed;
    left: -256px;
    transition: left 0.3s ease;
    z-index: 50;
  }
  
  aside.open {
    left: 0;
  }
  
  /* Mobile footer adjustment */
  footer {
    left: 0 !important;
    padding: 0.5rem;
  }
  
  /* Mobile buttons */
  .btn, button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}
