/* =========================
   NEXTDATA OS - DESIGN SYSTEM
   ========================= */
:root {

  /* Colors */
  --primary: #00D4FF;
  --secondary: #6C63FF;
  --success: #00E676;
  --danger: #FF4D6D;

  --bg: #08101D;
  --surface: #111B2E;
  --card: #18253C;

  --text: #EAF2FF;
  --muted: #93A4BD;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Shadows */
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

/* Layout */
.app {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
}

.nav-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s;
}

.nav {
  color: #FFFFFF;
  font-weight: 700;
}

.nav:hover {
  color: #00D4FF;
  font-weight: 700;
}

.nav-item:hover {
  background: var(--card);
  color: var(--text);
}

/* Main */
.main {
  flex: 1;
  padding: 20px;
  overflow: auto;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,212,255,0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow);
}

.cards {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 2px solid #00d4ff
}

/* KPI */
.kpi {
  font-size: 26px;
  font-weight: 700;
}

.kpi-label {
  font-size: 12px;
  color: var(--muted);
}

/* SMART IA */
.smartia {
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

/* Console */
.console {
  background: #0B1220;
  font-family: monospace;
  font-size: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: #7CF7FF;
}

/* =========================
   NEXTDATA OS BUTTON SYSTEM
   ========================= */
.button {
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  background: #00D4FF;
  color: #08101D;
  box-shadow: 0 4px 18px rgba(0, 212, 255, 0.15);
}

/* Hover */
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 212, 255, 0.25);
  filter: brightness(1.05);
}

a {
  text-decoration: none;
}

/* Active */
.button:active {
  transform: translateY(0px);
  box-shadow: 0 3px 10px rgba(0, 212, 255, 0.15);
}

/* Disabled */
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* =========================
   VARIANTES
   ========================= */
/* Secondary */
.btn-secondary {
  background: #6C63FF;
  color: white;
  box-shadow: 0 4px 18px rgba(108, 99, 255, 0.15);
}

.btn-secondary:hover {
  box-shadow: 0 6px 22px rgba(108, 99, 255, 0.25);
}

/* Success */
.btn-success {
  background: #00E676;
  color: #08101D;
  box-shadow: 0 4px 18px rgba(0, 230, 118, 0.15);
}

/* Danger */
.btn-danger {
  background: #FF4D6D;
  color: white;
  box-shadow: 0 4px 18px rgba(255, 77, 109, 0.15);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #E6E9F2;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(0, 212, 255, 0.4);
}

/* Small */
.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}

/* Large */
.btn-lg {
  padding: 14px 18px;
  font-size: 15px;
  border-radius: 12px;
}

.nav-section {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #00D4FF;;
}

.nav-item {
  display: block;
  padding: 6px 12px;
  margin: -7px;
  color: #E6E9F2;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.2s;
  font-size: 15px;
}

.nav-item:hover {
  background: rgba(0, 212, 255, 0.08);
  color: #00D4FF;
  transform: translateX(3px);
  padding: 6px;
}

/* active page (optionnel) */
.nav-item.active {
  background: rgba(0, 212, 255, 0.15);
  color: #00D4FF;
}

.env-switch {
  position: absolute;
  top: 10px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.env-switch .btn.production {
  background: #2ecc71;
  color: black;
}

.env-switch .btn.module {
  background: #00d4ff;
  color: black;
}


/* =========================
   TOPBAR - NEXTDATA OS
   ========================= */
.topbar {
  position: sticky;
  top: 0;
  height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 16, 29, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: #AAB4C5;
  letter-spacing: 0.3px;
}

/* Right section */
.topbar a {
  color: #00D4FF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: 0.2s;
}

.topbar a:hover {
  background: rgba(0, 212, 255, 0.08);
  transform: translateY(-1px);
}


.color-lien a:hover {
  color: #00D4FF;
}

/* =========================
   FOOTER
   ========================= */
.footer {
    margin-top: 40px;
    padding: 20px 0;
    border-radius: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(8,16,29,.85);
    backdrop-filter: blur(10px);
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    text-align: center;
    line-height: 1.4;
}

.footer-title,
.footer-build {
    color: #FFFFFF;
    font-size: 12px;
    letter-spacing: .5px;
}

.footer-powered {
    color: #00D4FF;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .8px;
    text-shadow: 0 0 8px rgba(0,212,255,.35);
}


@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: 6px;
        height: auto;
        padding: 12px 15px;
        text-align: center;
    }
}

/* =========================
   COURSES
   ========================= */
.course{
    padding:12px 16px;
    margin:8px 0;

    background:#18253C;
    border:1px solid transparent;
    border-radius:10px;

    color:#FFFFFF;
    cursor:pointer;

    transition:all .25s ease;
}

.course:hover{
    color:#00D4FF;
    border-color:#00D4FF;
    background:rgba(0,212,255,.08);

    transform:translateX(6px);

    box-shadow:0 0 18px rgba(0,212,255,.18);
}

.course:active{
    transform:translateX(3px) scale(.98);
}