/* =========================================================
   ROOT VARIABLES
   ========================================================= */
:root {
  --accent: #3cff83;
  --fg: #e1f5e3;
  --muted: #8ab29a;
  --bg: #010402;

  --font-head: 'Orbitron', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* =========================================================
   GLOBAL BASE
   ========================================================= */
body {
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;

  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
}

/* =========================================================
   LAYOUT - HEADER / NAV
   ========================================================= */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;

  display: flex;
  justify-content: center;
  padding: 0.75rem 2rem;

  backdrop-filter: blur(12px) saturate(160%);
  background: rgba(5, 10, 8, 0.3);
  border-bottom: 1px solid rgba(36, 255, 100, 0.1);
}

.wrap {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================================================
   BRAND
   ========================================================= */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  height: 28px;
  border-radius: 4px;
  box-shadow: 0 0 6px #000a;
}

.brand span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fg);
}

/* =========================================================
   NAV LINKS
   ========================================================= */
.navlinks {
  display: flex;
  gap: 1.5rem;
}

.navlinks a {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.25s, text-shadow 0.25s;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

/* =========================================================
   HERO BACKGROUND
   ========================================================= */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  z-index: -1;

  transition: opacity 2s ease-in-out;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero::before {
  opacity: 1;
  background-image: var(--bg-before);
}

.hero::after {
  opacity: 0;
  background-image: var(--bg-after);
}

.hero.fade-active::before { opacity: 0; }
.hero.fade-active::after  { opacity: 1; }

/* =========================================================
   COMPONENTS - OVERLAY
   ========================================================= */
.overlay {
  position: absolute;
  top: 25%;
  left: 20%;
  transform: translate(-50%, -50%);
  z-index: 1;

  max-width: 480px;
  padding: 1.25rem 2rem;
  text-align: center;

  background: rgba(0, 0, 0, 0.55);
  border: 1px solid #174c2a;
  border-radius: 6px;

  box-shadow: 0 0 25px rgba(36, 255, 100, 0.1);

  clip-path: polygon(0% 0%, 92% 0%, 100% 10%, 100% 100%, 8% 100%, 0% 90%);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.overlay:hover {
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 35px rgba(60, 255, 131, 0.25);
}

.overlay h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  margin-bottom: 0.4rem;

  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(60, 255, 131, 0.25);
}

.overlay p {
  font-size: 1rem;
  letter-spacing: 0.4px;
  opacity: 0.9;
}

/* =========================================================
   COMPONENTS - BUTTON
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  padding: 0.9rem 1.4rem;

  border-radius: 6px;
  border: 1px solid #1fa94d;

  background: linear-gradient(135deg, #12401e, #1d6934);
  color: #e8ffe9;

  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;

  box-shadow: 0 0 15px rgba(36, 255, 100, 0.15);

  clip-path: polygon(0% 0%, 94% 0%, 100% 10%, 100% 100%, 6% 100%, 0% 90%);
  transition: all 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1a3f23, #2eea6a);
  border-color: #2eea6a;
  box-shadow: 0 0 25px rgba(46, 234, 106, 0.35);
  color: #eafff0;
}

.btn:active {
  transform: translateY(0);
  background: linear-gradient(135deg, #082511, #114a2a);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   COMPONENTS - ABOUT BLOCK (YOUR BOXES)
   ========================================================= */
.about-block {
  position: relative;
  margin-bottom: 3rem;
  padding: 2rem;

  border-radius: 8px;
  background: linear-gradient(145deg, #070d09 0%, #0e1b12 100%);
  border: 1px solid rgba(36, 255, 100, 0.15);

  box-shadow:
    inset 0 0 10px rgba(0, 255, 80, 0.05),
    0 6px 20px rgba(0, 0, 0, 0.6);

  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 2px,
    transparent 3px
  );

  clip-path: polygon(0% 0%, 94% 0%, 100% 10%, 100% 100%, 6% 100%, 0% 90%);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.about-block:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(46, 234, 106, 0.15),
    inset 0 0 20px rgba(36, 255, 100, 0.05);
}

.about-block h2 {
  color: var(--accent);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.about-block p {
  line-height: 1.7;
}

/* =========================================================
   COMPONENTS - CORNER LOGO
   ========================================================= */
.corner-logo {
  position: fixed;
  bottom: 16px;
  right: 16px;

  width: 100px;
  height: 100px;

  object-fit: contain;
  pointer-events: none;

  opacity: 0.9;
  z-index: 9999;
}

/* =========================================================
   CONTENT
   ========================================================= */
.content {
  max-width: 950px;
  margin: 0 auto;
  padding-top: 7rem;
}

/* =========================================================
   LINKS
   ========================================================= */
.content a {
  color: var(--accent);
  text-decoration: none;
}

.content a:visited {
  color: var(--accent); /* fixed per your preference */
}

.content a:hover {
  color: #2eea6a;
  text-shadow: 0 0 6px rgba(60, 255, 131, 0.4);
}

.content a:active {
  color: #1fa94d;
}

/* =========================================================
   GALLERY GRID
   ========================================================= */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.highlight-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;

  border-radius: 6px;
  border: 1px solid rgba(36, 255, 100, 0.2);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(46, 234, 106, 0.3);
}
/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem 1.25rem;

    background: rgba(3, 7, 4, 0.85);
    border-bottom: 1px solid rgba(46, 234, 106, 0.15);
  }

  .brand {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }

  .navlinks {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .overlay {
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92vw;
    max-width: 600px;
    padding: 1.5rem 2rem;
  }

  .corner-logo {
    width: 70px;
    height: 70px;
    bottom: 10px;
    right: 10px;
    opacity: 0.8;
  }
}
/* === Base cosmic background and shared layout === */
:root {
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow-x: hidden; }

/* Star background animation */
.stars, .stars::before, .stars::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  display: block;
  pointer-events: none;
  background-repeat: repeat;
  background-position: 0 0;
  image-rendering: pixelated;
}
.stars {
  background-image:
    radial-gradient(2px 2px at 20px 30px,#fff8,#0000),
    radial-gradient(1px 1px at 60px 80px,#fff5,#0000),
    radial-gradient(1px 1px at 120px 50px,#fff6,#0000),
    radial-gradient(2px 2px at 200px 90px,#fff7,#0000);
  background-size: 250px 250px;
  animation: drift1 120s linear infinite;
}
.stars::before {
  background-image:
    radial-gradient(2px 2px at 40px 120px,#fff6,#0000),
    radial-gradient(1px 1px at 180px 30px,#fff5,#0000),
    radial-gradient(2px 2px at 300px 200px,#fff9,#0000);
  background-size: 350px 350px;
  opacity: .8;
  animation: drift2 180s linear infinite;
}
.stars::after {
  background-image:
    radial-gradient(2px 2px at 90px 40px,#fff7,#0000),
    radial-gradient(1px 1px at 210px 160px,#fff8,#0000),
    radial-gradient(2px 2px at 320px 80px,#fff4,#0000);
  background-size: 500px 500px;
  opacity: .6;
  animation: drift3 260s linear infinite;
}
@keyframes drift1 { from { background-position:0 0 } to { background-position:-2500px -2500px } }
@keyframes drift2 { from { background-position:0 0 } to { background-position:2500px -1500px } }
@keyframes drift3 { from { background-position:0 0 } to { background-position:-2000px 2000px } }

/* Core structure helpers */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
section { padding: 4rem 0; }
footer { padding: 2.5rem 0; text-align: center; }

/* Styling tables to match the theme */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  color: var(--fg);
}

th {
  color: var(--accent);
  text-transform: uppercase;
  font-family: var(--font-head);
  font-size: 0.85rem;
  padding: 12px;
  border-bottom: 2px solid var(--accent);
}

td {
  padding: 12px;
  border-bottom: 1px solid rgba(58, 255, 131, 0.1);
}

tr:hover {
  background: rgba(60, 255, 131, 0.05);
}
/* Make the table scrollable instead of growing infinitely */
.table-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #333;
}

/* Status colors */
.status-approved { color: #4CAF50; font-weight: bold; }
.status-rejected { color: #ff6b6b; font-weight: bold; }
.status-pending { color: #f1c40f; }

/* Add hover effects for better usability */
tr[onclick]:hover, li[onclick]:hover {
    background: #1a1a1a;
}

/* Style the loading text */
.detail-bin li {
    font-family: 'Courier New', monospace;
}
/* Style for all inputs and dropdowns */
input, select {
    background-color: #1a1a1a; /* Matches your blocks */
    color: #e0e0e0;            /* Light grey text */
    border: 1px solid #444;    /* Subtle border */
    padding: 8px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    outline: none;             /* Removes the ugly blue browser focus ring */
}

/* Hover effect */
input:hover, select:hover {
    border-color: #666;
}

/* Focus effect */
input:focus, select:focus {
    border-color: #4CAF50;     /* Matches your green theme */
}

/* Ensure the select dropdown arrow also looks decent */
select {
    cursor: pointer;
}
.btn {
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

/* The loading bar effect */
.btn.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: rgba(255, 255, 255, 0.2);
    animation: fill-up 0.1s linear forwards;
}

@keyframes fill-up {
    from { width: 0%; }
    to { width: 100%; }
}
/* Highlight rows on hover */
tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Make list items stand out when expanded */
li:hover {
    color: #fff !important;
}
.btn-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  /* Scaled down for table rows */
  padding: 0.4rem 0.8rem; 
  font-size: 0.7rem;
  
  border: 1px solid #1fa94d;
  background: linear-gradient(135deg, #12401e, #1d6934);
  color: #e8ffe9;

  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;

  box-shadow: 0 0 10px rgba(36, 255, 100, 0.15);

  /* Faceted corners to match your UI */
  clip-path: polygon(0% 0%, 92% 0%, 100% 20%, 100% 100%, 8% 100%, 0% 80%);
  transition: all 0.25s ease;
}

.btn-edit:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #1a3f23, #2eea6a);
  border-color: #2eea6a;
  box-shadow: 0 0 15px rgba(46, 234, 106, 0.35);
  color: #fff;
}

.btn-edit:active {
  transform: translateY(0);
  background: linear-gradient(135deg, #082511, #114a2a);
}
/* =========================================================
   COMPONENTS - TACTICAL FORM & SELECTS
   ========================================================= */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex; 
    flex-direction: column; 
    gap: 0.4rem;
}

.input-group label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    padding-left: 5px;
}

/* --- The Tactical Select/Input --- */
select, input[type="text"], input[type="number"], .selected-display {
    width: 100%;
    background: rgba(14, 27, 18, 0.8) !important;
    color: var(--fg) !important;
    border: 1px solid rgba(60, 255, 131, 0.2) !important;
    padding: 10px 15px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 0;
    border-left: 3px solid var(--accent) !important;
    transition: all 0.3s ease;
    appearance: none;
    min-height: 42px;
    outline: none;
}

/* --- Focus & Hover Glow --- */
select:hover, input:hover, .selected-display:hover {
    border-color: var(--accent) !important;
    background: rgba(20, 40, 25, 0.9) !important;
    box-shadow: inset 0 0 10px rgba(60, 255, 131, 0.1);
}

select:focus, input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(60, 255, 131, 0.2);
}

/* --- Custom Dropdown Arrow --- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233cff83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    cursor: pointer;
}

option {
    background-color: #0e1b12;
    color: var(--fg);
}

/* Remove up/down arrows from number inputs */
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { 
    -webkit-appearance: none; margin: 0; 
}

.selected-display {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-display::after {
    content: ""; width: 0; height: 0;
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 6px solid var(--accent); transition: transform 0.3s ease;
}

.tactical-select.open .selected-display::after { 
    transform: rotate(180deg); 
}

.tactical-options {
    display: none; 
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #0e1b12;
    border: 1px solid var(--accent);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    max-height: 250px;
    overflow-y: auto;
    clip-path: polygon(0% 0%, 100% 0%, 100% 92%, 94% 100%, 0% 100%);
}

.tactical-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--muted);
    transition: all 0.2s;
    border-bottom: 1px solid rgba(60, 255, 131, 0.05);
}

.tactical-option:hover {
    background: var(--accent);
    color: #000;
}

.tactical-select.open .tactical-options {
    display: block;
}

/* =========================================================
   COMPONENTS - MASTER CONTROL TABS (The 3 Boxes)
   ========================================================= */
.category-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

/* --- The Unselected "Dark" State --- */
.master-tab {
    padding: 15px 30px;
    font-family: var(--font-head);
    font-weight: bold;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    min-width: 240px;
    background: #020403;
    color: #2a4031; 
    border: 1px solid #0f1c13;
    opacity: 0.6;
    transition: all 0.2s ease;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

/* --- The "Filled In" Active State --- */
.active-tab {
    background-color: var(--accent) !important; /* This "fills" the box */
    color: #000 !important;                      /* Makes text black for contrast */
    border: 1px solid var(--accent) !important;
    opacity: 1 !important;
    box-shadow: 0 0 20px rgba(60, 255, 131, 0.3) !important;
    transform: translateY(-2px);
}

.master-tab:hover {
    opacity: 0.9;
    background: #050a07;
    color: #5a8a6b;
    border-color: #1a3322;
}

/* --- The "Powered On" Active Highlight --- */
.active-tab {
    background: linear-gradient(145deg, #070d09 0%, #0e1b12 100%) !important;
    
    /* Dynamically uses Green on Dashboard and Yellow on Contracts */
    color: var(--accent) !important; 
    border: 1px solid var(--accent) !important; 
    opacity: 1 !important; 
    
    /* Glowing internal/external effect */
    box-shadow: inset 0 0 10px rgba(60, 255, 131, 0.1), 0 0 15px rgba(60, 255, 131, 0.2) !important; 
    transform: translateY(-2px); 
}
 /* === Base cosmic background and shared layout === */

:root {

--shadow: 0 10px 30px rgba(0,0,0,.45);

}


* { box-sizing: border-box; }

html, body { height: 100%; }

body { margin: 0; overflow-x: hidden; }


/* Star background animation */

.stars, .stars::before, .stars::after {

position: fixed;

inset: 0;

z-index: -1;

content: "";

display: block;

pointer-events: none;

background-repeat: repeat;

background-position: 0 0;

image-rendering: pixelated;

}

.stars {

background-image:

radial-gradient(2px 2px at 20px 30px,#fff8,#0000),

radial-gradient(1px 1px at 60px 80px,#fff5,#0000),

radial-gradient(1px 1px at 120px 50px,#fff6,#0000),

radial-gradient(2px 2px at 200px 90px,#fff7,#0000);

background-size: 250px 250px;

animation: drift1 120s linear infinite;

}

.stars::before {

background-image:

radial-gradient(2px 2px at 40px 120px,#fff6,#0000),

radial-gradient(1px 1px at 180px 30px,#fff5,#0000),

radial-gradient(2px 2px at 300px 200px,#fff9,#0000);

background-size: 350px 350px;

opacity: .8;

animation: drift2 180s linear infinite;

}

.stars::after {

background-image:

radial-gradient(2px 2px at 90px 40px,#fff7,#0000),

radial-gradient(1px 1px at 210px 160px,#fff8,#0000),

radial-gradient(2px 2px at 320px 80px,#fff4,#0000);

background-size: 500px 500px;

opacity: .6;

animation: drift3 260s linear infinite;

}

@keyframes drift1 { from { background-position:0 0 } to { background-position:-2500px -2500px } }

@keyframes drift2 { from { background-position:0 0 } to { background-position:2500px -1500px } }

@keyframes drift3 { from { background-position:0 0 } to { background-position:-2000px 2000px } }


/* Core structure helpers */

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

section { padding: 4rem 0; }

footer { padding: 2.5rem 0; text-align: center; } 