/* Minimal reset */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #0f172a;
  background: #f8fafc;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

:root {
  --brand: #0ea5e9;
  --brand-700: #0369a1;
  --bg: #f8fafc;
  --card: #ffffff7d;
  --muted: #393333;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --radius: 16px;
  --shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
}
.nav-links {
  padding-left: 162px;
}
.nav-links a {
  position: relative;
  display: inline-block;
  
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 0%;
  height: 2px;
  background: #0a3d62;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;

}


.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.1rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.btn:hover {
  background: #0c87b8;
  transform: translateY(-1px);
  transition: 0.3s;
  box-shadow: 0 12px 30px #0f172a3f;
}

.btn.secondary {
  background: #fff;
  color: #0f172a;
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--brand);
}

.badge {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
}

.nav-links a.active {
  color: #16a34a
}

nav.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(248, 250, 252, .7);
  border-bottom: 1px solid #e2e8f0;
}

nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0px;
}


.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 900;
  letter-spacing: .4px;
}

.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #22d3ee);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  align-items: center;
}

nav a {
  display: inline-block;
  padding: .6rem .8rem;
  border-radius: 12px;
}

.brand:hover {
  transform: scale(1.05);
  transition: 0.3s;
  background-color: #0b6b9f;
}
.H1{
    display: inline;
    padding: 14rem;
}


.hero {
  padding: 76px 0;
  background-image: url(https://static.vecteezy.com/system/resources/previews/017/112/769/non_2x/abstract-background-creative-background-texture-design-in-abstract-style-creative-illustration-for-business-marketing-promotion-poster-web-landing-page-cover-ad-greeting-card-banner-free-vector.jpg);
  
}

.hero .grid {
  display: contents;
  grid-template-columns: 1.3fr 1fr;
  /* gap: 2rem; */
}

.hero h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin: 2rem 0 2rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 2rem 0rem;
}

.card {
  background: var(--card) ;
  /* border: 1px solid #e2f0e6; */
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  
}

/* Filters (Search + Status + Date in one line) */
.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.filters input,
.filters select {
  padding: 0.7rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  flex: 1;
  min-width: 150px;
}

/* Make search wider */
#searchBox {
  flex: 2;
}

/* Counters align to the right */
.counters {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  font-size: 14px;
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
  .filters {
    flex-wrap: wrap;
  }

  #searchBox, 
  #statusFilter,
  #dateFilter {
    flex: 1 1 100%; /* take full width */
  }
}


.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-2 {
  display: contents;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero .grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

section {
  padding: 2rem 0;
  background-color: #9a9ea13d;
}

section h2 {
  font-size: 1.5rem;
  margin: 0 0 .75rem;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.kpi {
  background: var(--card);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.kpi .value {
  font-size: 1.8rem;
  font-weight: 800;
}

.kpi .label {
  color: var(--muted);
}

footer {
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
  color: #475569;
}

footer .grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

footer .links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

footer a {
  color: #334155;
}

footer a:hover {
  color: var(--brand-700);
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 600;
  color: #0f172a;
}

input,
textarea,
select {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .15);
}

.help {
  color: var(--muted);
  font-size: .9rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery .item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery .meta {
  padding: .8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}

.tag {
  padding: .25rem .5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 600;
  font-size: .8rem;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
}

.table th,
.table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.table th {
  background: #f1f5f9;
  color: #0f172a;
}

.table tr:last-child td {
  border-bottom: none;
}

.alert {
  padding: .8rem 1rem;
  border-radius: 12px;
  background: #ecfeff;
  border: 1px solid #bae6fd;
  color: #075985;
}

small.muted {
  color: var(--muted);
}

@media (max-width: 900px) {
  #nav-toggle {
    display: block;
    z-index: 101;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -260px;
    width: 220px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 16px #0002;
    padding: 2rem 1rem;
    display: block;
    flex-direction: column;
    gap: 1.5rem;
    transition: left 0.3s cubic-bezier(.4,2,.3,1);
    z-index: 100;
  }
  .nav-links.open {
    left: 0;
  }
  nav.site .container.inner {
    position: relative;
  }
  .nav-links li {
    margin-bottom: 1rem;
  }
  .nav-links a {
    font-size: 1.1rem;
    padding: .7rem 1rem;
    border-radius: 8px;
    display: block;
  }
  /* Optional: dark overlay when menu is open */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: #0005;
    z-index: 99;
  }
}
/* Mobile nav toggle button */
#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

#nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #0f172a;
  border-radius: 3px;
  transition: 0.3s ease;
}

/* Animate into X */
#nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
#nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 900px) {
  #nav-toggle {
    display: flex;
    margin-left: auto;
  }
}
/* Reset */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.site {
  background: #f8fafc;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
}

.container.inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px;
}

/* Toggle button */
#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

#nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #0f172a;
  border-radius: 3px;
  transition: 0.3s ease;
}

#nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
#nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop menu */
.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
}

/* Mobile menu */
@media (max-width: 900px) {
  #nav-toggle {
    display: flex;
  }
  .H1{
    display: inline;
    padding: 5px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 1rem;
    width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  .brand .logo{
    width: 40px;
    height: 32px;
  }

  .nav-links.open {
    display: flex;
  }
}
@media (max-width: 900px) {
  #nav-toggle {
    display: flex;

  }

  .nav-links {
    display: none; /* hidden by default */
    position: absolute;
    top: 70px;
    right: 1rem;
    width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    z-index: 100;
  }
  .brand .logo{
    height: 30px;
    width: 40px;
  }
  .nav-links.open {
    display: flex; /* show when "open" class added */
  }
}

/* Final nav overrides to keep header responsive and consistent across pages */
.nav-links {
  padding-left: 0;
  margin: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.H1 {
  display: block;
  padding: 0 1rem;
  text-align: center;
}

@media (max-width: 900px) {
  nav .inner {
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.6rem 0;
  }

  #nav-toggle {
    display: flex;
    margin-left: auto;
  }

  nav .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    width: min(260px, 90vw);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    padding: 0.75rem;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 120;
  }

  nav .nav-links.open {
    display: flex;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
