@import url('font-awesome.css');
@import url('animate.css');

/* ==========================================================================
   EvoStackr Zoo Management System (ZMS) - Core Design System
   Midnight Navy Palette & Modern Clean Component Architecture
   ========================================================================== */

:root {
  --evo-navy-950: #070b14;
  --evo-navy-900: #0b132b;
  --evo-navy-800: #0f172a;
  --evo-navy-700: #1c2541;
  --evo-navy-600: #1e293b;
  --evo-navy-500: #334155;
  --evo-blue-600: #2563eb;
  --evo-blue-500: #3b82f6;
  --evo-cyan-400: #38bdf8;
  --evo-slate-50: #f8fafc;
  --evo-slate-100: #f1f5f9;
  --evo-slate-200: #e2e8f0;
  --evo-slate-300: #cbd5e1;
  --evo-slate-600: #475569;
  --evo-slate-700: #334155;
  --evo-slate-800: #1e293b;
  --evo-slate-900: #0f172a;
  --evo-radius-sm: 6px;
  --evo-radius-md: 10px;
  --evo-radius-lg: 14px;
  --evo-radius-full: 9999px;
  --evo-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --evo-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --evo-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --evo-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

/* Base Reset & Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: #334155;
  background-color: #f8fafc;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#wrapper {
  background: #ffffff;
  overflow: hidden;
}

a {
  color: var(--evo-blue-600);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover, a:focus {
  color: #1d4ed8;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25rem;
  color: #475569;
}

/* Navigation & Header */
header.evostackr-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 4px 20px rgba(7, 11, 20, 0.15);
}

.evostackr-navbar.navbar {
  background: #0b132b !important;
  border: none;
  margin-bottom: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 72px;
}

.navbar-brand.evostackr-brand {
  padding: 8px 15px;
  height: auto;
  display: flex;
  align-items: center;
}

.navbar-default .navbar-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  margin-top: 14px;
  border-radius: 6px;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: #ffffff;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: rgba(255, 255, 255, 0.15);
}

.navbar-default .navbar-nav > li > a {
  color: #cbd5e1 !important;
  font-weight: 500;
  font-size: 14px;
  padding: 14px 18px;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 4px 2px;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #38bdf8 !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #ffffff !important;
  background-color: rgba(37, 99, 235, 0.2) !important;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.btn-admin-nav {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  margin-left: 10px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-admin-nav:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
  color: #ffffff !important;
}

/* Banner & Sliders */
#banner {
  background: #070b14;
  position: relative;
}

.flexslider {
  background: transparent;
  border: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.flex-caption {
  position: absolute;
  bottom: 12%;
  left: 8%;
  background: rgba(11, 19, 43, 0.88);
  backdrop-filter: blur(8px);
  padding: 24px 32px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.4);
  max-width: 580px;
}

.flex-caption h3 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.flex-caption p {
  color: #94a3b8;
  font-size: 15px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Call to Action Bar */
#call-to-action-2 {
  background: linear-gradient(135deg, #0b132b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#call-to-action-2 h3 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

#call-to-action-2 p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 0;
}

/* Inner Page Headline */
#inner-headline {
  background: linear-gradient(135deg, #0b132b 0%, #0f172a 100%);
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#inner-headline .pageTitle {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Content Sections */
#content {
  padding: 60px 0;
  background: #f8fafc;
}

.section-padding {
  padding: 50px 0;
}

/* Animal & Box Content Cards */
.box-content {
  background: #ffffff;
  border-radius: var(--evo-radius-lg);
  border: 1px solid #e2e8f0;
  padding: 18px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.box-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 24px -4px rgba(15, 23, 42, 0.12), 0 6px 10px -4px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.box-content a {
  text-decoration: none;
  display: block;
  color: inherit;
}

.box-content img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
  background-color: #f1f5f9;
}

.box-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 6px;
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: none;
}

.box-content strong {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.box-content p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Buttons */
.btn {
  border-radius: 8px !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid #1d4ed8;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary {
  border: 1px solid #2563eb;
  color: #2563eb;
  background: transparent;
}

.btn-outline-primary:hover {
  background: #2563eb;
  color: #ffffff;
}

/* Forms & Inputs */
.form-control {
  border-radius: 8px !important;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 14px;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Detail & Animal Page Showcase */
.animal-detail-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--evo-shadow-lg);
  padding: 32px;
  margin-top: 20px;
}

.animal-detail-card img {
  border-radius: 12px;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  box-shadow: var(--evo-shadow-md);
}

.animal-meta-box {
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.animal-meta-item {
  margin-bottom: 8px;
}

.animal-meta-item strong {
  color: #0f172a;
}

/* About & Showcase Section */
.showcase-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.showcase-section img {
  border-radius: 14px;
  box-shadow: var(--evo-shadow-lg);
  width: 100%;
}

.about-text {
  padding-left: 20px;
}

.about-text h3 {
  font-size: 26px;
  color: #0f172a;
  margin-bottom: 16px;
}

/* Metric / Stat Pillars */
.stat-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--evo-shadow-sm);
  margin-bottom: 24px;
}

.stat-pill .stat-number {
  font-size: 36px;
  font-weight: 800;
  color: #0b132b;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-pill .stat-label {
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Footer Styling */
footer.evostackr-footer {
  background: #0b132b;
  color: #cbd5e1;
  padding: 60px 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scroll to top */
.scrollup {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: #0b132b;
  color: #38bdf8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  z-index: 1000;
}

.scrollup:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-default .navbar-nav > li > a {
    padding: 10px 14px;
  }
  .btn-admin-nav {
    margin-left: 0;
    margin-top: 8px;
    display: inline-block;
  }
  .flex-caption {
    left: 4%;
    right: 4%;
    bottom: 6%;
    padding: 16px 20px;
  }
  .flex-caption h3 {
    font-size: 20px;
  }
  .about-text {
    padding-left: 0;
    margin-top: 24px;
  }
}
