/* Modern CSS inspired by React Frontend - Tailwind-like utilities */

/* CSS Variables */
:root {
  --primary-500: #A86E48;
  --primary-600: #9a5e3a;
  --primary-400: #d2bab0;
  --primary-300: #e0cec7;
  --accent-500: #803530;
  --dark-900: #0a0a0a;
  --white: #ffffff;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --red-400: #f87171;
  --red-500: #ef4444;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: rgba(255, 255, 255, 0.1);
}

body {
  background-color: var(--dark-900);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: 14px;
}

html {
  scroll-behavior: smooth;
}

/* Glass Morphism Effects */
.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.glass-button {
  background: linear-gradient(to right, var(--primary-600), var(--primary-500));
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.glass-button:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, var(--primary-500), var(--primary-600));
  box-shadow: 0 10px 15px -3px rgba(168, 110, 72, 0.5);
}

.glass-button:active {
  transform: scale(0.95);
}

/* Text Gradients */
.glow-text {
  background: linear-gradient(to right, var(--primary-400), var(--accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient {
  background: linear-gradient(to right, var(--primary-400), var(--accent-500), var(--primary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 20px rgba(168, 110, 72, 0.2);
}

/* Navigation Link */
.nav-link {
  position: relative;
  padding: 8px 16px;
  color: var(--gray-300);
  transition: color 0.3s;
  text-decoration: none;
  display: inline-block;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-500), var(--accent-500));
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fff 0%, var(--primary-500) 50%, var(--accent-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

/* Feature Card */
.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 20px rgba(168, 110, 72, 0.2);
}

/* Stat Number */
.stat-number {
  background: linear-gradient(to right, var(--primary-400), var(--accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.25rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 3rem;
  }
}

/* Status Badges */
.status-online {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(34, 197, 94, 0.2);
  color: var(--green-400);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-offline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(239, 68, 68, 0.2);
  color: var(--red-400);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 15, 8, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-500) 0%, var(--accent-500) 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-600) 0%, #6d2d28 100%);
}

/* Selection */
::selection {
  background: rgba(168, 110, 72, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(168, 110, 72, 0.3);
  color: white;
}

/* Animations */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(168, 110, 72, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(168, 110, 72, 0.8);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Background Patterns */
.bg-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(168, 110, 72, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 110, 72, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

.bg-dots-pattern {
  background-image: radial-gradient(rgba(168, 110, 72, 0.15) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Modern Container */
.modern-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Modern Header */
.modern-header {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Modern Menu */
.modern-menu {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.modern-menu li {
  margin: 0;
}

.modern-menu a {
  position: relative;
  padding: 0.75rem 1.5rem;
  color: var(--gray-300);
  transition: color 0.3s;
  text-decoration: none;
  display: block;
  font-weight: 600;
  border-radius: 8px;
}

.modern-menu a:hover,
.modern-menu a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

/* Modern Content */
.modern-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

/* Modern Form */
.modern-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--primary-300);
  font-size: 0.875rem;
}

.form-input {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.875rem;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 2px rgba(168, 110, 72, 0.2);
}

.form-input::placeholder {
  color: var(--gray-500);
}

/* Modern Table */
.modern-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.modern-table th,
.modern-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-table th {
  background: rgba(168, 110, 72, 0.2);
  font-weight: 600;
  color: var(--primary-300);
}

.modern-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Modern Card */
.modern-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Success/Error Messages */
.success-message {
  background: rgba(34, 197, 94, 0.2);
  color: var(--green-400);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
}

.error-message {
  background: rgba(239, 68, 68, 0.2);
  color: var(--red-400);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
}

.info-message {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .modern-container {
    padding: 1rem;
  }

  .modern-content {
    padding: 1rem;
  }

  .modern-menu {
    flex-direction: column;
    width: 100%;
  }

  .modern-menu a {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 1.875rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.transition { transition: all 0.3s; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-4xl { font-size: 2.25rem; }
}