:root {
  --base: #1F2429;
  --base2: #2C333A;
  --accent: #F25C45;
  --accentsoft: #FBE3DE;
  --steel: #5B7196;
  --soft: #F4F6FA;
  --line: #D8DDE6;
  --ink: #1C2433;
  --muted: #5A6473;
  --green: #1E7A4B;
  
  --font-family: "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --content-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:focus {
  outline: none;
}

body {
  font-family: var(--font-family);
  color: var(--ink);
  background-color: #ffffff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--base);
}

a:hover {
  color: var(--base2);
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--base);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-bg-soft {
  background-color: var(--soft);
}

.section-bg-base {
  background-color: var(--base);
  color: #ffffff;
}

.section-bg-base h1,
.section-bg-base h2,
.section-bg-base h3 {
  color: #ffffff;
}

/* Header */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--base);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo strong {
  font-weight: 700;
}

.logo-sep {
  color: var(--steel);
}

.logo-fsc {
  color: var(--accent);
  font-weight: 700;
}

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

nav a {
  color: var(--base);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--font-family);
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(242, 92, 69, 0.3);
}

.btn-primary:hover {
  background-color: #d64a33;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(242, 92, 69, 0.4);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: #D94530;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

.bento-grid .card {
  padding: 15px 20px;
}

.bento-grid .full-width {
  grid-column: 1 / -1;
}

.card {
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-icon {
  background-color: var(--base);
  color: var(--accent);
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Hero Section */
.hero {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}



.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(244, 246, 250, 0) 0%, rgba(244, 246, 250, 0.9) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero h1 .hero-title-top {
  display: inline-block;
}

.hero h1 .hero-title-bottom {
  display: inline-block;
  font-size: 0.5em;
}

.hero h1 u {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.hero h1 sup {
  font-size: 0.45em;
  top: -1.5em;
}

.hero p {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Callout Box */
.callout {
  background-color: var(--accentsoft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 20px;
  color: var(--ink);
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background-color: var(--base);
  color: #fff;
  font-weight: 700;
}

tr:nth-child(even) {
  background-color: var(--soft);
}



/* Footer */
footer {
  background-color: var(--base);
  color: #fff;
  padding: 60px 0 30px 0;
}

footer a {
  color: #fff;
  opacity: 0.8;
}

footer a:hover {
  opacity: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bottom {
  border-top: none;
  padding-top: 0;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0;
}

/* Auth Portal */
.auth-container {
  max-width: 420px;
  margin: 80px auto;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--base);
}

.form-control {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-family);
}

.form-control:focus {
  outline: none;
  border-color: var(--base);
  box-shadow: 0 0 0 2px rgba(31, 56, 100, 0.1);
}

/* SPA Logic */
.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

.sidebar {
  width: 280px;
  background-color: var(--soft);
  border-right: 1px solid var(--line);
  padding: 30px 20px;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0px;
}

.sidebar-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 15px;
  margin-bottom: 0px;
  border-radius: var(--radius);
  color: var(--base);
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1.2;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background-color: var(--base);
  color: #fff;
}

.nav-counter {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius);
  min-width: 24px;
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 400;
}
.sidebar-nav a.active .nav-counter {
  background: rgba(214, 48, 49, 0.15);
  color: var(--accent);
}
.sidebar-nav a:hover .nav-counter {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.dashboard-content {
  flex: 1;
  padding: 40px;
}

/* Mobile Responsive Adjustments */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--base);
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .admin-form-grid { grid-template-columns: 1fr !important; }
  header .container {
    flex-wrap: wrap;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  header nav {
    display: none;
    width: 100%;
    margin-top: 20px;
    padding-bottom: 10px;
  }

  header nav.active {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  header nav ul {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .grid, .bento-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Responsive Table */
  .pricing-table, .pricing-table tbody, .pricing-table tr, .pricing-table td {
    display: block;
    width: 100%;
  }
  
  .pricing-table td {
    padding: 15px !important;
  }
  
  .pricing-table td:last-child {
    text-align: right !important;
    padding-top: 0 !important;
    padding-bottom: 25px !important;
  }
}

/* Footer Marquee */
.footer-marquee-container {
  margin-top: 80px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  margin-bottom: 30px;
  position: relative;
}

.footer-marquee-title {
  position: absolute;
  top: -35px;
  left: 0;
  right: 0;
  font-size: 0.65rem;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
  text-align: center;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 20px 0;
}

.marquee-fade-left, .marquee-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}
.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, #1F2429 0%, rgba(18, 23, 27, 0) 100%);
}
.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, #1F2429 0%, rgba(18, 23, 27, 0) 100%);
}

.marquee-floating-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 10px;
}
.marquee-floating-nav:hover {
  color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}
.marquee-floating-nav.left {
  left: 10px;
}
.marquee-floating-nav.right {
  right: 10px;
}

.footer-marquee {
  display: flex;
  width: max-content;
  animation: scrollMarquee 40s linear infinite;
  cursor: pointer;
}

@media (hover: hover) {
  .footer-marquee:hover {
    animation-play-state: paused;
  }
}
.footer-marquee.paused {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
}

.footer-marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 50px;
  text-decoration: none;
  color: var(--soft);
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-marquee-item:hover {
  color: var(--accent);
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Calculator Modal */
.calc-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(31, 36, 41, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(5px);
}

.calc-modal {
  background: #fff;
  width: 320px;
  border-radius: var(--radius);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  padding: 25px;
  position: relative;
  border: 1px solid var(--line);
}

.calc-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.calc-close:hover { color: var(--accent); }

.calc-display {
  width: 100%;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  font-size: 2rem;
  text-align: right;
  color: var(--base);
  margin-bottom: 20px;
  font-weight: 700;
  outline: none;
}

.calc-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.calc-keys button {
  background: #fff;
  border: 1px solid var(--line);
  padding: 15px 0;
  font-size: 1.25rem;
  border-radius: var(--radius);
  color: var(--base);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s ease;
}

.calc-keys button:hover {
  background: var(--soft);
  border-color: var(--muted);
}

.calc-keys button.operator {
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
}
.calc-keys button.operator:hover { background: #e8ebf0; }

.calc-keys button.calc-equal {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.calc-keys button.calc-equal:hover {
  background: #d94d38;
}
.calc-keys button.calc-clear {
  grid-column: span 2;
  background: var(--base);
  color: #fff;
  border-color: var(--base);
}
.calc-keys button.calc-clear:hover { background: var(--base2); }

/* Calculator Button Top of Table */

.btn-calculator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(242, 92, 69, 0.3);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-calculator:hover {
  background: #d94d38;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(242, 92, 69, 0.4);
  color: #fff;
}


/* Executive Dark Mode Dashboard - Ultra Premium */
.dashboard-dark {
  background-color: #050505;
  color: #e0e0e0;
  min-height: 100vh;
  font-weight: 300;
  font-family: var(--font-family);
}

.dashboard-dark h1, .dashboard-dark h2, .dashboard-dark h3 {
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.dashboard-dark .sidebar {
  background-color: #050505;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.dashboard-dark .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-dark .sidebar-nav a {
  color: #8b929a;
  font-weight: 300;
  font-size: 0.95rem;
  padding: 8px 15px;
  border-left: 2px solid transparent;
  transition: all 0.3s ease;
}

.dashboard-dark .sidebar-nav a:hover,
.dashboard-dark .sidebar-nav a.active {
  background-color: transparent;
  color: #ffffff;
  border-left: 2px solid var(--accent);
}

.dashboard-dark .card:hover { transform: none; box-shadow: none; }
.dashboard-dark .card {
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.05);
  color: #e0e0e0;
  box-shadow: none;
}

.dashboard-dark .text-muted {
  color: #6c757d !important;
  font-weight: 300;
}

/* Document Grid */
.doc-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 20px;
margin-top: 10px;
}

@media (max-width: 1600px) { .doc-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1300px) { .doc-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1000px) { .doc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .doc-grid { grid-template-columns: 1fr; } }

.doc-card {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  border-color: rgba(255,255,255,0.3);
}

.doc-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.doc-card:hover .doc-icon {
  opacity: 1;
}

.doc-icon.pdf { color: #d63031; }
.doc-icon.excel { color: #00b894; }
.doc-icon.word { color: #0984e3; }
.doc-icon.media { color: #fdcb6e; }

.doc-title {
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 8px;
  word-break: break-word;
  line-height: 1.4;
  font-size: 0.95rem;
}

.doc-meta {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.doc-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  color: #a0a0a0;
  border: 1px solid rgba(255,255,255,0.1);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.doc-badge.global { border-color: rgba(9, 132, 227, 0.3); color: #0984e3; }
.doc-badge.group { border-color: rgba(253, 203, 110, 0.3); color: #fdcb6e; }
.doc-badge.private { border-color: rgba(214, 48, 49, 0.3); color: #d63031; }

/* Media Player Modal */
.media-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(5, 5, 5, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(5px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}
.media-modal-overlay.active {
  display: flex;
}
.media-content-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.media-content-wrapper img,
.media-content-wrapper video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 0 50px rgba(0,0,0,1);
}
.media-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: #8b929a;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
}
.media-close:hover {
  color: #fff;
}

/* Form overwrites for Admin in Dark Mode */
.dashboard-dark input, .dashboard-dark select, .dashboard-dark textarea {
  background: rgba(255,255,255,0.02) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  font-weight: 300;
  border-radius: var(--radius);
}
.dashboard-dark input:focus, .dashboard-dark select:focus, .dashboard-dark textarea:focus {
  border-color: var(--accent) !important;
  outline: none;
}

/* Admin Sub-Navigation removed to match upper items */

/* Admin UI Enhancements */
.admin-container {
  max-width: 680px;
  margin: 0;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-form-grid.single-col {
  grid-template-columns: 1fr;
}

.admin-panel-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 25px;
  margin-bottom: 30px;
}

.blink-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  animation: blinker 1.5s linear infinite;
}
@keyframes blinker {
  50% { opacity: 0; }
}

/* Fix for dropdown options visibility */
select option {
  background-color: var(--base);
  color: #fff;
}

/* Upload Tab Toggle */
.upload-tab {
  display: inline-flex; align-items: center; cursor: pointer;
  padding: 5px 14px; border-radius: 5px; font-size: 0.8rem;
  color: rgba(255,255,255,0.5); font-weight: 400;
  transition: all 0.2s ease;
}
.upload-tab:hover { color: rgba(255,255,255,0.8); }
.upload-tab.active {
  background: var(--accent); color: #fff; font-weight: 500;
  box-shadow: 0 2px 8px rgba(217,68,82,0.25);
}

/* Compact Admin Inputs */
.admin-input {
  background: rgba(255,255,255,0.03) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 6px !important;
  padding: 9px 12px !important;
  font-size: 0.85rem !important;
  transition: border-color 0.2s ease;
}
.admin-input:focus {
  border-color: var(--accent) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(217,68,82,0.1);
}

/* Mini label above fields */
.admin-mini-label {
  display: block; font-size: 0.72rem; font-weight: 500;
  color: rgba(255,255,255,0.4); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 5px;
}

/* Chip button inside textarea */
.admin-chip-btn {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7); padding: 4px 10px; border-radius: var(--radius);
  font-size: 0.72rem; cursor: pointer; transition: all 0.15s ease;
  display: inline-flex; align-items: center;
}
.admin-chip-btn:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* Inline checkbox */
.admin-inline-check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  cursor: pointer; font-weight: 400;
}
.admin-inline-check input[type="checkbox"] {
  accent-color: var(--accent);
}

/* Mandanten Table Wrap */
.admin-client-table-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px; overflow: hidden;
}
.admin-client-table-wrap table th {
  font-weight: 500; color: rgba(255,255,255,0.35);
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-client-table-wrap table td {
  padding: 10px 16px; font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.admin-client-table-wrap table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* Fix: Dark dashboard table contrast */
.dashboard-dark table tr:nth-child(even) {
  background-color: rgba(255,255,255,0.02);
}
.dashboard-dark table td {
  color: #e0e0e0;
  border-bottom-color: rgba(255,255,255,0.05);
}
.dashboard-dark table th {
  background-color: rgba(255,255,255,0.05);
  border-bottom-color: rgba(255,255,255,0.08);
}

/* ============================================
   EXECUTIVE DOCUMENT DISPLAY
   Intelligence Cards + Mini File Tiles
   ============================================ */

/* -- Layout Sections -- */
.doc-section-html {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.doc-section-files {
display: grid;
/* Kompakte Kacheln, aber maximal 6 pro Reihe (optischer Wunsch) */
grid-template-columns: repeat(6, minmax(0, 160px));
gap: 12px;
justify-content: start;
}

@media (max-width: 1100px) { .doc-section-files { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .doc-section-files { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .doc-section-files { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 460px)  { .doc-section-files { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Admin: Kacheln per Drag & Drop anordnen */
.doc-section-files.files-sortable .file-tile { cursor: grab; }
.doc-section-files.files-sortable .file-tile:active { cursor: grabbing; }
.file-tile.sortable-ghost { opacity: 0.35; }
.file-tile.sortable-chosen { box-shadow: 0 0 0 2px var(--accent); border-color: var(--accent); }
.admin-sort-hint {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.3px;
  margin: 0 0 12px 2px;
}

.doc-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 24px 0;
  color: rgba(255,255,255,0.2);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.doc-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.08), transparent);
}

/* -- Intelligence Cards (HTML docs) -- */
.intel-card {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.intel-card:hover {
  border-color: rgba(242,92,69,0.25);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 20px rgba(242,92,69,0.06);
}

.intel-preview {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #fff;
  border-radius: 8px 8px 0 0;
}
.intel-preview iframe {
  width: 100%;
  height: 600px;
  border: none;
  transform: scale(0.5);
  transform-origin: top left;
  width: 200%;
  pointer-events: none;
}
.intel-preview-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(5,5,5,1) 100%);
  pointer-events: none;
}

.intel-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 3;
}
.intel-expand:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.intel-meta {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.intel-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.intel-date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.intel-badge {
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.intel-badge.private { border-color: rgba(214,48,49,0.3); color: #d63031; }
.intel-badge.group   { border-color: rgba(253,203,110,0.3); color: #fdcb6e; }
.intel-badge.global  { border-color: rgba(9,132,227,0.3); color: #0984e3; }

/* -- Mini File Tiles -- */
.file-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px 10px 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  min-height: 80px;
}
.file-tile:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.file-tile-icon {
  margin-bottom: 12px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-tile-icon svg {
  width: 2.0rem;
  height: 2.0rem;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.file-tile:hover .file-tile-icon {
  filter: drop-shadow(0 6px 12px rgba(255, 255, 255, 0.15));
}
.file-tile:hover .file-tile-icon svg {
  transform: scale(1.12);
}

.file-tile-name {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1.3;
  font-weight: 400;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}
.file-tile:hover .file-tile-name {
  color: rgba(255,255,255,0.9);
}

.file-tile-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.file-tile-badge.private { background: #d63031; box-shadow: 0 0 5px #d63031; }
.file-tile-badge.group   { background: #2ecc71; box-shadow: 0 0 5px #2ecc71; }
.file-tile-badge.global  { background: #0984e3; box-shadow: 0 0 5px #0984e3; }
.file-tile-badge.intern  { background: #ffffff; box-shadow: 0 0 5px #ffffff; }
.file-tile-badge.backfiles { background: #f1c40f; box-shadow: 0 0 5px #f1c40f; }

/* -- Responsive adjustments -- */
@media (max-width: 768px) {
  .admin-form-grid { grid-template-columns: 1fr !important; }
  .intel-preview {
    height: 200px;
  }
  .intel-preview iframe {
    height: 400px;
  }
  .doc-section-files {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 8px;
  }
  .file-tile {
    min-height: 75px;
    padding: 10px 4px 8px 4px;
  }
  .file-tile-icon {
    font-size: 1.4rem;
  }
}



@media (max-width: 768px) {
  .admin-form-grid { grid-template-columns: 1fr !important; }
  .dashboard-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 20px;
  }
  .dashboard-dark .sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
}

.admin-th-style {
  background-color: rgba(255,255,255,0.05) !important;
  color: #fff !important;
  font-weight: 500;
  text-align: left;
  padding: 15px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}

/* Tighter menu spacing */
.sidebar-nav li { margin-bottom: 0px !important; }
.sidebar-nav a { padding: 4px 15px !important; font-size: 0.95rem !important; }
