@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Livora-inspired deep dark theme, with KES Red */
  --bg-base: #0a0c10; /* Very deep blue-black */
  --bg-panel: #13161c; /* Slightly lighter for cards */
  
  --primary: #e60000; /* KES Red */
  --gradient-primary: linear-gradient(135deg, #ff4b4b 0%, #b30000 100%); /* Bright red to deep red */
  --gradient-button: linear-gradient(135deg, #e60000 0%, #cc0000 100%);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.15);
  
  --glow-primary: 0 0 20px rgba(230, 0, 0, 0.4);
  --white: #ffffff;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-base);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.logo-container img {
  width: 40px;
  object-fit: contain;
}

.logo-container h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
  font-weight: 500;
  margin-bottom: 5px;
}

.nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.05);
}

.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 3rem 4rem;
  overflow-y: auto;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(230, 0, 0, 0.08) 0%, transparent 50%);
}

/* Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.top-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

/* Glass Card -> mapped to Livora Card style */
.card, .glass-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover, .glass-card:hover {
  border-color: rgba(230, 0, 0, 0.4);
  transform: translateY(-5px);
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border: none;
  background: var(--bg-panel);
  color: white;
  border: 1px solid var(--border-highlight);
}

.btn:hover { background: rgba(255,255,255,0.1); }

.btn-primary, button.btn[type="submit"] {
  background: var(--gradient-button);
  color: white;
  box-shadow: var(--glow-primary);
  border: none;
}

.btn-primary:hover, button.btn[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(230, 0, 0, 0.6);
  background: var(--gradient-button);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--border-highlight);
  color: white;
  background: rgba(255,255,255,0.03);
  box-shadow: none;
}

/* Grid Layouts */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Global Form Elements for Desktop */
.form-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-label {
  display: block;
  font-size: 1.0rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.wide-form-container {
  max-width: 1400px;
  margin: 0 auto;
}
