/* GLOBAL VARIABLES & RESET */
:root {
  --primary: #0c746dff; /* Very Dark Moss Green (teal-900) */
  --primary-dark: #007f59ff; /* Ultra Dark Moss Green */
  --primary-light: #ccfbf1; /* Teal 100 for accents */
  --accent: #f97316; /* Orange 500 */
  --dark: #1e293b; /* Slate 800 */
  --gray: #64748b; /* Slate 500 */
  --light: #f8fafc; /* Slate 50 */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  font-family: "Inter", sans-serif;
  color: var(--dark);
  background-color: #f1f5f9; /* Slate 100 - slightly darker than white for better contrast */
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.container,
.modal-content {
  animation: fadeIn 0.4s ease-out;
}

/* NAVBAR IMPROVEMENTS */
.navbar {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  ) !important;
  box-shadow: var(--shadow-md) !important;
  padding-top: 0.8rem !important;
  padding-bottom: 0.8rem !important;
}
.navbar-brand .bg-white {
  color: var(--primary) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  border-radius: 50px;
  padding: 8px 16px !important;
  font-size: 0.95rem;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  transform: translateY(-1px);
}

/* CARD REDESIGN */
.card {
  border: none !important;
  background: #fff;
  border-radius: 16px !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
/* Disable hover effect for static wrappers if needed using specific class, but generally ok */

.card-header {
  background: transparent;
  border-bottom: 1px solid #f1f5f9;
}

/* DASHBOARD STATS CARDS */
.bg-primary.bg-opacity-10 {
  background-color: #dcfce7 !important;
  color: #166534 !important;
}
.bg-success.bg-opacity-10 {
  background-color: #d1fae5 !important;
  color: #047857 !important;
}
.bg-warning.bg-opacity-10 {
  background-color: #fef3c7 !important;
  color: #b45309 !important;
}
.bg-info.bg-opacity-10 {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
}

/* TABLE IMPROVEMENTS */
.table-responsive {
  border-radius: 12px;
}
.table {
  margin-bottom: 0;
}
.table thead th {
  background: #f8fafc;
  color: var(--gray);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px;
  border-bottom: 2px solid #e2e8f0;
}
.table tbody td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}
.table-hover tbody tr:hover {
  background-color: #f8fafc;
}

/* BUTTONS & BADGES */
.btn {
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.3);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.4);
  transform: translateY(-1px);
}
.btn-white {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--dark);
}
.btn-white:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ORG CHART / FLOWCHART (From previous step) - Preserved & Refined */
.tree {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 50px;
}
.tree ul {
  padding-top: 40px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-left: 0;
}
.tree li {
  text-align: center;
  list-style-type: none;
  position: relative;
  padding: 40px 10px 0 10px;
}
.tree li::before,
.tree li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 2px solid #cbd5e1;
  width: 50%;
  height: 40px;
}
.tree li::after {
  right: auto;
  left: 50%;
  border-left: 2px solid #cbd5e1;
}
.tree li:only-child::after,
.tree li:only-child::before {
  display: none;
}
.tree li:only-child {
  padding-top: 0;
}
.tree li:first-child::before,
.tree li:last-child::after {
  border: 0 none;
}
.tree li:last-child::before {
  border-right: 2px solid #cbd5e1;
  border-radius: 0 10px 0 0;
}
.tree li:first-child::after {
  border-radius: 10px 0 0 0;
}
.tree ul ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 2px solid #cbd5e1;
  width: 0;
  height: 40px;
}
.tree-card {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 20px;
  border-radius: 16px;
  min-width: 180px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.tree-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.tree-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
}

/* UTILITIES */
.hover-shadow:hover {
  box-shadow: var(--shadow-md) !important;
}
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ===== LANDING PAGE STYLES ===== */
/* Logo & Brand */
.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: #134e4a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: white;
}
.brand-text strong {
  font-size: 1.1rem;
}
.brand-text small {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Hero Section */
.hero-section {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero-section h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.subtitle {
  color: #ffffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.highlight {
  color: #ffffffff;
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 20px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.btn-hero-primary,
.btn-hero-secondary {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}
.btn-hero-primary {
  background: white;
  color: #047857;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.stat-item {
  text-align: center;
}
.stat-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.5rem;
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Section Title */
.section-title {
  text-align: center;
}
.section-title h6 {
  color: #134e4a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 10px 0 15px;
  color: #1e293b;
}
.section-title p {
  color: #64748b;
  font-size: 1.1rem;
}

/* Feature Cards */
.feature-card {
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}
.feature-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.icon-teal {
  background: #ccfbf1;
  color: #0f766e;
}
.icon-orange {
  background: #fed7aa;
  color: #c2410c;
}
.icon-blue {
  background: #dbeafe;
  color: #1e40af;
}
.icon-purple {
  background: #e9d5ff;
  color: #7c3aed;
}
.icon-red {
  background: #fee2e2;
  color: #dc2626;
}
.icon-slate {
  background: #e2e8f0;
  color: #475569;
}

.feature-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1e293b;
}
.feature-card p {
  color: #64748b;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #134e4a 0%, #0f3730 100%);
  padding: 60px 40px;
  border-radius: 24px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}
.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.btn-cta-primary,
.btn-cta-secondary {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-cta-primary {
  background: white;
  color: #134e4a;
  border: none;
}
.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.btn-cta-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #0f3730 0%, #134e4a 100%);
  color: #ffffff;
  padding: 60px 0 30px;
}
footer h6 {
  color: white;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
footer a {
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s;
}
footer a:hover {
  color: white;
}
footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
footer hr {
  border-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

/* Block Selector Cards */
.block-card {
  background: #f8fafc;
  border-color: #e2e8f0 !important;
  cursor: pointer;
  transition: all 0.3s ease;
}
.block-card:hover {
  background: #f1f5f9;
  border-color: #2d6a5f !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 106, 95, 0.15);
}
.block-card i {
  color: #64748b;
  transition: color 0.3s ease;
}
.block-card:hover i {
  color: #2d6a5f;
}
.block-card.active {
  background: linear-gradient(135deg, #2d6a5f 0%, #1f5449 100%);
  border-color: #1f5449 !important;
  color: white;
  box-shadow: 0 4px 16px rgba(45, 106, 95, 0.3);
}
.block-card.active i {
  color: white;
}
.block-card small {
  display: block;
  font-size: 0.85rem;
}
