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

:root {
  --primary-color: #f5951e;
  --primary-hover: #f5951e;
  --secondary-color: #f5951e;
  --secondary-hover: #f5951e;
  --accent-color: #F59E0B;
  --accent-hover: #d97706;
  --bg-color: #F9FAFB;
  --text-dark: #111827;
  --text-muted: #6B7280;
  --white: #FFFFFF;
  --border-color: #E5E7EB;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --border-radius: 12px;
  --border-radius-lg: 16px;
  
  --font-family: 'Inter', sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}
.text-muted {
    --bs-text-opacity: 1;
    color: rgb(212, 212, 212) !important;
}
::placeholder{
 color: rgb(212 212 212 / 75%) !important;
}
.text-darks{
  color: #787474;
}
a:hover {
  color: var(--primary-hover);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-dark);
}

/* Utilities */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-muted-custom { color: var(--text-muted) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary-custom {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-secondary-custom:hover {
  background-color: var(--secondary-hover);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 8px;
  font-weight: 500;
}
.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}
.navbar-brand img{
  width: 160px;
}


.hero-section {
    background: linear-gradient(120deg, #f0fdfa, #eef2ff);
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(120deg, #ff8c00, #ffa500);
    z-index: 0;
}
/* Parent fix */
.hero-img {
    position: relative;
    overflow: hidden;
}

/* Image */
.hero-img img {
    display: block;
    width: 100%;
}

/* Shine layer */
.hero-img::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.331),
        transparent
    );

    transform: rotate(25deg);
    animation: shineMove 5s infinite linear;
}

/* Animation */
@keyframes shineMove {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    100% {
        transform: translateX(100%) rotate(25deg);
    }
}
.hero-img img{
  border-radius: 20px;
    border-right: solid 4px #fff;
}
@media (max-width:500px) {
  .hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(120deg, #ff8c00, #ffa500);
    z-index: 0;
    display:none;
}


}
.btn{
  font-size:14px;
  border-radius: 4px;
}
.hero-section .container {
    position: relative;
    z-index: 1;
}
/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--white);
}
.card.hover-elevate:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  font-weight: 600;
}

/* Navbar */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}
.nav-link {
  font-weight: 500;
  color: var(--text-dark);
}
.nav-link:hover {
  color: var(--primary-color);
}

/* Inner Page Navigation */
.navbar-inner {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
}
.inner-nav-link {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s;
}
.inner-nav-link:hover, .inner-nav-link.active {
  background-color: rgba(79, 70, 229, 0.05);
  color: var(--primary-color);
}

/* Matrix Tree UI */
.tree-container {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: 2rem 0;
}

.tree ul {
  padding-top: 20px; 
  position: relative;
  transition: all 0.5s;
  display: flex;
  justify-content: center;
}

.tree li {
  float: left; text-align: center;
  list-style-type: none;
  position: relative;
  padding: 20px 5px 0 5px;
  transition: all 0.5s;
}

/* Connectors */
.tree li::before, .tree li::after{
  content: '';
  position: absolute; top: 0; right: 50%;
  border-top: 2px solid var(--border-color);
  width: 50%; height: 20px;
}
.tree li::after{
  right: auto; left: 50%;
  border-left: 2px solid var(--border-color);
}

.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 var(--border-color);
  border-radius: 0 5px 0 0;
}
.tree li:first-child::after{
  border-radius: 5px 0 0 0;
}

.tree ul ul::before{
  content: '';
  position: absolute; top: 0; left: 50%;
  border-left: 2px solid var(--border-color);
  width: 0; height: 20px;
}

.tree li a {
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  text-decoration: none;
  color: var(--text-dark);
  font-family: var(--font-family);
  font-size: 11px;
  display: inline-block;
  border-radius: 8px;
  transition: all 0.5s;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  min-width: 80px;
}

.tree li a.active-node {
  border: 2px solid var(--secondary-color);
  background-color: rgba(34, 197, 94, 0.05);
}
.tree li a.empty-node {
  border: 1px dashed var(--text-muted);
  color: var(--text-muted);
}
.tree li a.inactive-node {
  border: 2px solid #EF4444; /* Red */
  background-color: rgba(239, 68, 68, 0.05);
}

.tree li a:hover, .tree li a:hover+ul li a {
  background: rgba(79, 70, 229, 0.1); 
  border-color: var(--primary-color);
}

.tree-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px;
  font-weight: bold;
}
.active-node .tree-avatar { background-color: var(--secondary-color); }
.empty-node .tree-avatar { background-color: var(--border-color); color: var(--text-muted); }
.inactive-node .tree-avatar { background-color: #EF4444; }

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    font-size: small;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}
.input-group-text {
  border-radius: 8px;
  background-color: #F3F4F6;
  border-color: var(--border-color);
}

/* Custom Table */
.table-custom {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
}
.table-custom th {
  background-color: #F9FAFB;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.table-custom td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

/* Badges */
.badge-soft-success {
  background-color: rgba(197, 121, 34, 0.1);
  color: #d97706;
}
.badge-soft-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #d97706;
}
.badge-soft-primary {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary-hover);
}
.breadcrumb-section {
    height: 300px;
    position: relative;
    background: url('../images/hero.jpg') center/cover no-repeat;
    overflow: hidden;
}

/* Dark overlay */
.breadcrumb-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

/* Moving light animation (behind content) */
.breadcrumb-section::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.08),
        transparent
    );

    transform: rotate(25deg);
    animation: moveLight 6s infinite linear;
    z-index: 1;
}

/* Content above everything */
.breadcrumb-section .container {
    position: relative;
    z-index: 2;
}

/* Animation */
@keyframes moveLight {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    100% {
        transform: translateX(100%) rotate(25deg);
    }
}

/* Dark Overlay */
.breadcrumb-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.7)
    );
}

/* Content above overlay */
.breadcrumb-section .container {
    position: relative;
    z-index: 1;
}
/* Hero Section */
.hero-section {
  padding: 1rem 0;
  background: linear-gradient(135deg, #f0fdfa 0%, #eef2ffac 100%);

}
.btn:focus,
.btn:active {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.4); /* orange glow */
}
/* Footer */
.footer {
  background-color: #111827;
  color: #9CA3AF;
  padding: 4rem 0 2rem;
  margin-top: auto;
}
.footer h5 {
  color: #FFFFFF;
}
.footer a {
  color: #9CA3AF;
}
.footer a:hover {
  color: #FFFFFF;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .inner-nav-link {
    display: block;
    margin-bottom: 0.5rem;
  }
}
