/* =====================================================
   KOLYORA SYSTEM UI
   PART 1 — CORE / RESET / VARIABLES
===================================================== */

/* =========================
   CSS VARIABLES (THEME CORE)
========================= */
:root {
    /* Colors */
    --bg-main: #050505;
    --bg-soft: #0a0a0a;
    --bg-panel: #0b0b0b;
    --bg-panel-soft: #080808;

    --green-main: #00ff88;
    --green-soft: rgba(0, 255, 136, 0.25);
    --green-faint: rgba(0, 255, 136, 0.08);

    --border-main: #1a1a1a;
    --border-soft: #333;

    --text-main: #cfcfcf;
    --text-muted: #666;

    /* Effects */
    --glow-soft: 0 0 8px rgba(0,255,136,0.25);
    --glow-strong: 0 0 18px rgba(0,255,136,0.45);

    /* Timing */
    --fast: 0.15s;
    --medium: 0.25s;
    --slow: 0.4s;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
}

/* =========================
   RESET
========================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

/* =========================
   BODY BASE
========================= */
body {
    background:
        radial-gradient(circle at top, #0a0a0a, #050505 65%);
    color: var(--text-main);
    font-family: "Courier New", monospace;
    overflow: hidden;
    user-select: none;
}

/* =========================
   ROOT SYSTEM WRAPPER
========================= */
.system {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

/* =========================
   GLOBAL TYPOGRAPHY
========================= */
h1, h2, h3, h4 {
    font-weight: normal;
    color: var(--green-main);
    letter-spacing: 2px;
}

p, span, div {
    font-size: 12px;
    line-height: 1.6;
}

/* =========================
   SELECTION STYLE
========================= */
::selection {
    background: var(--green-soft);
    color: #000;
}

/* =========================
   SCROLLBAR (GLOBAL)
========================= */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        var(--green-main),
        #009f55
    );
    border-radius: 3px;
}

/* =========================
   UTILITIES
========================= */
.hidden {
    display: none !important;
}

.muted {
    color: var(--text-muted);
}

.glow {
    box-shadow: var(--glow-soft);
}

/* =========================
   MICRO NOISE OVERLAY
========================= */
.system::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-radial-gradient(
            circle,
            rgba(255,255,255,0.015) 0,
            transparent 1px
        );
    pointer-events: none;
    z-index: 1;
}

/* =========================
   ANIMATIONS CORE
========================= */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes subtlePulse {
    0% { box-shadow: var(--glow-soft); }
    50% { box-shadow: var(--glow-strong); }
    100% { box-shadow: var(--glow-soft); }
}
/* =====================================================
   KOLYORA SYSTEM UI
   PART 2 — LAYOUT / TOP BAR / SIDEBAR
===================================================== */

/* =========================
   MAIN CONTAINER
========================= */
.container {
    flex: 1;
    display: flex;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* =========================
   TOP BAR
========================= */
.top-bar {
    height: 48px;
    background:
        linear-gradient(
            90deg,
            var(--bg-main),
            var(--bg-soft),
            var(--bg-main)
        );
    border-bottom: 1px solid var(--border-main);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--green-main);
    font-size: 13px;
    letter-spacing: 2px;
    position: relative;
    z-index: 3;
}

/* subtle animated scanline */
.top-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(0,255,136,0.08),
            transparent
        );
    opacity: 0.4;
    pointer-events: none;
}

/* bottom glow line */
.top-bar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background:
        linear-gradient(
            to right,
            transparent,
            var(--green-main),
            transparent
        );
    opacity: 0.35;
}

/* =========================
   TOP BAR STATUS
========================= */
.status {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    width: 240px;
    background:
        linear-gradient(
            180deg,
            var(--bg-soft),
            var(--bg-main)
        );
    border-right: 1px solid var(--border-main);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* vertical glow line */
.sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    width: 1px;
    height: 100%;
    background:
        linear-gradient(
            to bottom,
            transparent,
            var(--green-main),
            transparent
        );
    opacity: 0.25;
}

/* =========================
   SIDEBAR TITLE
========================= */
.nav-title {
    color: var(--green-main);
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 22px;
    opacity: 0.85;
}

/* =========================
   NAV LIST
========================= */
.sidebar ul {
    list-style: none;
    flex: 1;
}

/* =========================
   NAV ITEM
========================= */
.sidebar li {
    padding: 10px 14px;
    font-size: 12px;
    color: #9a9a9a;
    cursor: pointer;
    transition:
        color var(--fast) ease,
        background var(--fast) ease,
        padding var(--fast) ease;
    border-left: 2px solid transparent;
    position: relative;
    margin-bottom: 4px;
}

/* arrow indicator */
.sidebar li::before {
    content: ">";
    position: absolute;
    left: 8px;
    color: var(--green-main);
    opacity: 0;
    transition: opacity var(--fast) ease;
}

/* hover */
.sidebar li:hover {
    color: var(--green-main);
    background: var(--green-faint);
    padding-left: 18px;
}

.sidebar li:hover::before {
    opacity: 1;
}

/* active */
.sidebar li.active {
    color: var(--green-main);
    border-left: 2px solid var(--green-main);
    background: rgba(0,255,136,0.12);
}

/* active glow */
.sidebar li.active::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--green-main);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: var(--glow-soft);
}

/* =========================
   SIDEBAR FOOTER (OPTIONAL)
========================= */
.sidebar-footer {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-main);
    opacity: 0.6;
}
/* =====================================================
   KOLYORA SYSTEM UI
   PART 3 — DASHBOARD / PANELS / DATA CARDS
===================================================== */

/* =========================
   DASHBOARD CONTAINER
========================= */
.main {
    flex: 1;
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    overflow-y: auto;
    position: relative;
}

/* subtle background grid */
.main::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent 95%, rgba(0,255,136,0.04)),
        linear-gradient(90deg, transparent 95%, rgba(0,255,136,0.04));
    background-size: 42px 42px;
    pointer-events: none;
    opacity: 0.4;
}

/* =========================
   PANEL BASE
========================= */
.panel {
    background:
        linear-gradient(
            145deg,
            var(--bg-panel),
            var(--bg-panel-soft)
        );
    border: 1px solid var(--border-main);
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--medium) ease,
        box-shadow var(--medium) ease;
}

/* =========================
   PANEL GLOW OVERLAY
========================= */
.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(0,255,136,0.08),
            transparent
        );
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--medium) ease;
}

/* =========================
   PANEL HOVER EFFECT
========================= */
.panel:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.5),
        var(--glow-soft);
}

.panel:hover::before {
    opacity: 1;
}

/* =========================
   PANEL SIZE
========================= */
.panel.wide {
    grid-column: span 2;
}

/* =========================
   PANEL HEADER
========================= */
.panel h3 {
    color: var(--green-main);
    font-size: 11px;
    margin-bottom: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* =========================
   DASHBOARD TEXT — FULL GREEN
========================= */
.panel p,
.panel span,
.panel pre,
.panel div {
    color: var(--green-main);
    font-size: 12px;
    line-height: 1.7;
}

/* =========================
   DATA ROW (KEY / VALUE)
========================= */
.data-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0,255,136,0.15);
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    opacity: 0.7;
    letter-spacing: 1px;
}

.data-value {
    font-weight: bold;
}

/* =========================
   SYSTEM STATUS BAR
========================= */
.system-bar {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.system-indicator {
    flex: 1;
    height: 6px;
    background: rgba(0,255,136,0.12);
    position: relative;
    overflow: hidden;
}

.system-indicator::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--green-main),
            transparent
        );
    animation: systemScan 2.5s linear infinite;
}

/* =========================
   TERMINAL PANEL SPECIFIC
========================= */
.panel.terminal {
    font-family: inherit;
    background: #000;
    border-color: rgba(0,255,136,0.35);
}

/* blinking cursor already defined globally */
#terminalOS {
    color: var(--green-main);
    font-size: 12px;
    line-height: 1.6;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes systemScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
/* =====================================================
   KOLYORA SYSTEM UI
   PART 4 — TERMINAL / CONSOLE IMMERSIVE
===================================================== */

/* =========================
   TERMINAL CONTAINER
========================= */
.panel.terminal {
    background: #000;
    border: 1px solid rgba(0,255,136,0.45);
    box-shadow:
        inset 0 0 30px rgba(0,255,136,0.15),
        0 0 25px rgba(0,255,136,0.25);
    position: relative;
    overflow: hidden;
}

/* =========================
   SCANLINE EFFECT
========================= */
.panel.terminal::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(0,255,136,0.03) 0px,
            rgba(0,255,136,0.03) 1px,
            transparent 2px,
            transparent 4px
        );
    pointer-events: none;
    animation: scanlines 6s linear infinite;
}

/* =========================
   TERMINAL CONTENT
========================= */
#terminalOS {
    position: relative;
    z-index: 2;
    padding-right: 6px;
    text-shadow: 0 0 6px rgba(0,255,136,0.35);
}

/* =========================
   PROMPT LINE
========================= */
.terminal-line {
    display: flex;
    gap: 6px;
}

.terminal-prompt {
    color: rgba(0,255,136,0.7);
}

.terminal-command {
    color: var(--green-main);
}

/* =========================
   CURSOR (BLINK)
========================= */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    background: var(--green-main);
    margin-left: 2px;
    animation: blink 1s infinite;
}

/* =========================
   TERMINAL HISTORY FADE
========================= */
.terminal-history {
    opacity: 0.85;
}

/* =========================
   TERMINAL GLOW PULSE
========================= */
.panel.terminal.pulse {
    animation: subtlePulse 3s ease-in-out infinite;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}
/* =====================================================
   KOLYORA SYSTEM UI
   PART 4 — TERMINAL / CONSOLE IMMERSIVE
===================================================== */

/* =========================
   TERMINAL CONTAINER
========================= */
.panel.terminal {
    background: #000;
    border: 1px solid rgba(0,255,136,0.45);
    box-shadow:
        inset 0 0 30px rgba(0,255,136,0.15),
        0 0 25px rgba(0,255,136,0.25);
    position: relative;
    overflow: hidden;
}

/* =========================
   SCANLINE EFFECT
========================= */
.panel.terminal::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(0,255,136,0.03) 0px,
            rgba(0,255,136,0.03) 1px,
            transparent 2px,
            transparent 4px
        );
    pointer-events: none;
    animation: scanlines 6s linear infinite;
}

/* =========================
   TERMINAL CONTENT
========================= */
#terminalOS {
    position: relative;
    z-index: 2;
    padding-right: 6px;
    text-shadow: 0 0 6px rgba(0,255,136,0.35);
}

/* =========================
   PROMPT LINE
========================= */
.terminal-line {
    display: flex;
    gap: 6px;
}

.terminal-prompt {
    color: rgba(0,255,136,0.7);
}

.terminal-command {
    color: var(--green-main);
}

/* =========================
   CURSOR (BLINK)
========================= */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    background: var(--green-main);
    margin-left: 2px;
    animation: blink 1s infinite;
}

/* =========================
   TERMINAL HISTORY FADE
========================= */
.terminal-history {
    opacity: 0.85;
}

/* =========================
   TERMINAL GLOW PULSE
========================= */
.panel.terminal.pulse {
    animation: subtlePulse 3s ease-in-out infinite;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}
/* =====================================================
   KOLYORA SYSTEM UI
   PART 5 — TASK BOARD / KANBAN
===================================================== */

/* =========================
   TASK BOARD CONTAINER
========================= */
.task-board {
    flex: 1;
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

/* background grid subtle */
.task-board::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent 95%, rgba(0,255,136,0.035)),
        linear-gradient(90deg, transparent 95%, rgba(0,255,136,0.035));
    background-size: 48px 48px;
    pointer-events: none;
    opacity: 0.35;
}

/* =========================
   TASK COLUMN
========================= */
.task-column {
    background:
        linear-gradient(
            145deg,
            var(--bg-panel),
            var(--bg-panel-soft)
        );
    border: 1px solid var(--border-main);
    padding: 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* column glow */
.task-column::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(0,255,136,0.06),
            transparent
        );
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--medium) ease;
}

.task-column:hover::after {
    opacity: 1;
}

/* =========================
   COLUMN HEADER
========================= */
.task-column h3 {
    color: var(--green-main);
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* =========================
   TASK LIST
========================= */
.task-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================
   TASK CARD
========================= */
.task {
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(0,255,136,0.2);
    padding: 8px 10px;
    font-size: 12px;
    color: var(--green-main);
    cursor: grab;
    position: relative;
    transition:
        transform var(--fast) ease,
        box-shadow var(--fast) ease,
        background var(--fast) ease;
}

/* left status bar */
.task::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--green-main);
    opacity: 0.6;
}

/* hover */
.task:hover {
    background: rgba(0,255,136,0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* =========================
   TASK META
========================= */
.task-title {
    font-weight: bold;
    letter-spacing: 1px;
}

.task-owner {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
}

/* =========================
   DRAG VISUAL STATES
========================= */
.task.dragging {
    opacity: 0.4;
    transform: scale(0.98);
}

.task-column.drag-over {
    box-shadow: inset 0 0 0 2px rgba(0,255,136,0.35);
}

/* =========================
   EMPTY COLUMN STATE
========================= */
.task-column.empty::after {
    content: "DROP TASK HERE";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(0,255,136,0.25);
    pointer-events: none;
}
/* =====================================================
   KOLYORA SYSTEM UI
   PART 6 — NOTES / EDITOR / FOCUS
===================================================== */

/* =========================
   NOTES VIEW CONTAINER
========================= */
.notes-view {
    flex: 1;
    padding: 28px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    position: relative;
}

/* subtle grid background */
.notes-view::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent 95%, rgba(0,255,136,0.03)),
        linear-gradient(90deg, transparent 95%, rgba(0,255,136,0.03));
    background-size: 52px 52px;
    pointer-events: none;
    opacity: 0.35;
}

/* =========================
   NOTES SIDEBAR
========================= */
.notes-sidebar {
    background:
        linear-gradient(
            145deg,
            var(--bg-panel),
            var(--bg-panel-soft)
        );
    border: 1px solid var(--border-main);
    padding: 12px;
    display: flex;
    flex-direction: column;
}

/* header */
.notes-sidebar h3 {
    color: var(--green-main);
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* =========================
   NOTES LIST
========================= */
#notesList {
    list-style: none;
    flex: 1;
    overflow-y: auto;
}

/* note item */
#notesList li {
    padding: 8px 10px;
    font-size: 12px;
    cursor: pointer;
    color: var(--green-main);
    border-left: 2px solid transparent;
    transition:
        background var(--fast) ease,
        border var(--fast) ease;
}

/* hover */
#notesList li:hover {
    background: rgba(0,255,136,0.08);
}

/* active */
#notesList li.active {
    border-left: 2px solid var(--green-main);
    background: rgba(0,255,136,0.15);
}

/* =========================
   NOTES EDITOR
========================= */
.notes-editor {
    background:
        linear-gradient(
            145deg,
            var(--bg-panel),
            var(--bg-panel-soft)
        );
    border: 1px solid var(--border-main);
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* editor glow */
.notes-editor::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(0,255,136,0.05),
            transparent
        );
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--medium) ease;
}

.notes-editor:hover::after {
    opacity: 1;
}

/* =========================
   NOTE TITLE
========================= */
#noteTitle {
    background: #000;
    border: 1px solid var(--border-soft);
    color: var(--green-main);
    padding: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    outline: none;
}

/* =========================
   NOTE CONTENT
========================= */
#noteContent {
    flex: 1;
    background: #000;
    border: 1px solid var(--border-soft);
    color: var(--green-main);
    padding: 12px;
    resize: none;
    font-size: 13px;
    line-height: 1.7;
    outline: none;
    caret-color: var(--green-main);
}

/* =========================
   FOCUS MODE
========================= */
.notes-editor:focus-within {
    box-shadow:
        inset 0 0 0 1px var(--green-main),
        0 0 20px rgba(0,255,136,0.25);
}

/* =========================
   EMPTY NOTE STATE
========================= */
.notes-editor.empty::before {
    content: "SELECT OR CREATE A NOTE";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(0,255,136,0.3);
    pointer-events: none;
}
/* =====================================================
   KOLYORA SYSTEM UI
   PART 7 — STORAGE / FILE MANAGER
===================================================== */

/* =========================
   STORAGE VIEW CONTAINER
========================= */
.storage {
    flex: 1;
    padding: 28px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 26px;
    position: relative;
}

/* subtle grid */
.storage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent 95%, rgba(0,255,136,0.03)),
        linear-gradient(90deg, transparent 95%, rgba(0,255,136,0.03));
    background-size: 54px 54px;
    pointer-events: none;
    opacity: 0.3;
}

/* =========================
   PREVIEW PANEL
========================= */
.preview {
    background:
        linear-gradient(
            145deg,
            var(--bg-panel),
            var(--bg-panel-soft)
        );
    border: 1px solid var(--border-main);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* preview title */
.preview h3 {
    color: var(--green-main);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* =========================
   PREVIEW BOX (IMAGE / FILE)
========================= */
.preview-box {
    position: relative;
    height: 220px;
    background: #000;
    border: 1px dashed rgba(0,255,136,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* empty state */
.preview-box::before {
    content: "NO PREVIEW";
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(0,255,136,0.35);
}

/* =========================
   IMAGE PREVIEW — PERFECT FIT
========================= */
.preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;      /* 🔥 image toujours entière */
    image-rendering: auto;
    display: block;
    z-index: 2;
}

/* subtle overlay */
.preview-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(0,255,136,0.05),
            transparent
        );
    pointer-events: none;
}

/* =========================
   FILES PANEL
========================= */
.files {
    background:
        linear-gradient(
            145deg,
            var(--bg-panel),
            var(--bg-panel-soft)
        );
    border: 1px solid var(--border-main);
    padding: 14px;
    display: flex;
    flex-direction: column;
}

/* header */
.files h3 {
    color: var(--green-main);
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* =========================
   FILE LIST
========================= */
.file-list {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    border-top: 1px solid rgba(0,255,136,0.1);
}

/* =========================
   FILE ITEM
========================= */
.file-list li {
    padding: 8px 10px;
    font-size: 12px;
    color: var(--green-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0,255,136,0.08);
    transition:
        background var(--fast) ease,
        box-shadow var(--fast) ease;
}

/* icon */
.file-list li::before {
    content: "📄";
    opacity: 0.6;
}

/* hover */
.file-list li:hover {
    background: rgba(0,255,136,0.1);
}

/* active */
.file-list li.active {
    background: rgba(0,255,136,0.18);
    box-shadow: inset 0 0 0 1px rgba(0,255,136,0.35);
}

/* =========================
   FILE META
========================= */
.file-name {
    flex: 1;
}

.file-size {
    font-size: 10px;
    opacity: 0.6;
}

/* =========================
   FILE ACTION BAR
========================= */
.file-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.file-actions button {
    flex: 1;
    text-align: center;
}
/* =====================================================
   KOLYORA SYSTEM UI
   PART 8 — BUTTONS / INPUTS / CONTROLS
===================================================== */

/* =========================
   BASE CONTROLS
========================= */
button,
input,
select,
textarea {
    background:
        linear-gradient(
            145deg,
            #060606,
            #0a0a0a
        );
    border: 1px solid var(--border-soft);
    color: var(--green-main);
    padding: 7px 12px;
    font-size: 11px;
    font-family: inherit;
    outline: none;
    transition:
        background var(--fast) ease,
        border var(--fast) ease,
        box-shadow var(--fast) ease;
}

/* =========================
   BUTTON
========================= */
button {
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* hover */
button:hover {
    background:
        linear-gradient(
            145deg,
            rgba(0,255,136,0.12),
            rgba(0,255,136,0.05)
        );
    border-color: var(--green-main);
    box-shadow: var(--glow-soft);
}

/* active */
button:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* disabled */
button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* =========================
   INPUT / TEXTAREA
========================= */
input,
textarea {
    text-transform: none;
}

/* hover */
input:hover,
textarea:hover {
    border-color: rgba(0,255,136,0.5);
}

/* focus */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--green-main);
    box-shadow:
        0 0 0 1px rgba(0,255,136,0.35),
        0 0 12px rgba(0,255,136,0.25);
}

/* =========================
   PLACEHOLDER
========================= */
::placeholder {
    color: rgba(0,255,136,0.35);
}

/* =========================
   SELECT
========================= */
select {
    appearance: none;
    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            var(--green-main) 50%
        ),
        linear-gradient(
            135deg,
            var(--green-main) 50%,
            transparent 50%
        );
    background-position:
        calc(100% - 14px) 50%,
        calc(100% - 8px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

/* =========================
   CHECKBOX / RADIO (CUSTOM)
========================= */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--border-soft);
    background: #000;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
}

/* checked */
input[type="checkbox"]:checked::after,
input[type="radio"]:checked::after {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--green-main);
}

/* radio round */
input[type="radio"] {
    border-radius: 50%;
}

input[type="radio"]:checked::after {
    border-radius: 50%;
}

/* =========================
   CONTROL GROUP
========================= */
.control-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* =========================
   TOOLBAR
========================= */
.toolbar {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-main);
}

/* =========================
   BADGES / TAGS
========================= */
.badge {
    padding: 3px 8px;
    font-size: 10px;
    letter-spacing: 1px;
    border: 1px solid rgba(0,255,136,0.4);
    color: var(--green-main);
    background: rgba(0,255,136,0.08);
}
/* =====================================================
   KOLYORA SYSTEM UI
   PART 9 — ANIMATIONS / TRANSITIONS / SYSTEM STATES
===================================================== */

/* =========================
   VIEW TRANSITIONS
========================= */
.view {
    animation: viewFadeIn var(--slow) ease;
}

/* smooth appearance */
@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   PANEL LOAD ANIMATION
========================= */
.panel {
    animation: panelIn var(--medium) ease both;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* stagger illusion (pure CSS) */
.panel:nth-child(1) { animation-delay: 0.02s; }
.panel:nth-child(2) { animation-delay: 0.04s; }
.panel:nth-child(3) { animation-delay: 0.06s; }
.panel:nth-child(4) { animation-delay: 0.08s; }

/* =========================
   HOVER MICRO-MOTION
========================= */
.panel:hover h3 {
    letter-spacing: 4px;
    transition: letter-spacing var(--fast) ease;
}

/* =========================
   LOADING STATE
========================= */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "LOADING";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--green-main);
    background: rgba(0,0,0,0.55);
    animation: loadingPulse 1.2s ease-in-out infinite;
}

@keyframes loadingPulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* =========================
   SUCCESS / ERROR STATES
========================= */
.state-success {
    border-color: rgba(0,255,136,0.7) !important;
    box-shadow: 0 0 15px rgba(0,255,136,0.35);
}

.state-error {
    border-color: rgba(255,80,80,0.7) !important;
    box-shadow: 0 0 15px rgba(255,80,80,0.35);
}

/* =========================
   NOTIFICATION TOAST (BASE)
========================= */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000;
    border: 1px solid rgba(0,255,136,0.45);
    padding: 10px 14px;
    font-size: 11px;
    color: var(--green-main);
    box-shadow: var(--glow-soft);
    animation: toastIn var(--medium) ease;
    z-index: 999;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   PULSE INDICATOR
========================= */
.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-main);
    box-shadow: var(--glow-soft);
    animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* =========================
   REDUCED MOTION SUPPORT
========================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
/* =====================================================
   KOLYORA SYSTEM UI
   PART 10 — FINAL POLISH / DETAILS
===================================================== */

/* =========================
   SECTION SEPARATORS
========================= */
.section-separator {
    height: 1px;
    margin: 14px 0;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0,255,136,0.35),
        transparent
    );
    opacity: 0.4;
}

/* =========================
   EMPTY STATES (GLOBAL)
========================= */
.empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(0,255,136,0.35);
    position: relative;
}

.empty-state::before {
    content: "[ NO DATA ]";
}

/* =========================
   CARD SUBTLE BORDER ANIMATION
========================= */
.panel::after {
    animation: borderGlow 6s linear infinite;
}

@keyframes borderGlow {
    0% { opacity: 0.05; }
    50% { opacity: 0.15; }
    100% { opacity: 0.05; }
}

/* =========================
   HEADER MICRO INDICATOR
========================= */
.panel h3::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--green-main);
    box-shadow: var(--glow-soft);
    opacity: 0.7;
}

/* =========================
   TABLE STYLE (IF USED)
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: var(--green-main);
}

th,
td {
    padding: 8px;
    border-bottom: 1px solid rgba(0,255,136,0.15);
}

th {
    letter-spacing: 2px;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* =========================
   LIST DIVIDERS
========================= */
.list-divider {
    height: 1px;
    background: rgba(0,255,136,0.12);
    margin: 6px 0;
}

/* =========================
   FOOTER SYSTEM INFO
========================= */
.system-footer {
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(0,255,136,0.35);
    text-align: center;
    padding: 6px 0;
    border-top: 1px solid var(--border-main);
}

/* =========================
   TOOLTIP (PURE CSS)
========================= */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    border: 1px solid rgba(0,255,136,0.45);
    padding: 4px 8px;
    font-size: 10px;
    letter-spacing: 1px;
    white-space: nowrap;
    color: var(--green-main);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--fast) ease;
    box-shadow: var(--glow-soft);
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* =========================
   ICON TEXT (ASCII STYLE)
========================= */
.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
}

.icon-text::before {
    content: "▸";
    color: var(--green-main);
}

/* =========================
   FINAL MICRO DETAIL
========================= */
.system::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0,255,136,0.05);
    pointer-events: none;
    z-index: 0;
}
/* =====================================================
   MESSAGERIE — VISIBILITÉ & LAYOUT
===================================================== */

.messages-view {
    flex: 1;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 28px;
}

/* USERS LIST */
.messages-users {
    display: flex;
    flex-direction: column;
}

.users-list {
    list-style: none;
    margin-top: 10px;
}

.users-list li {
    padding: 6px 8px;
    font-size: 12px;
    color: var(--green-main);
    border-bottom: 1px solid rgba(0,255,136,0.15);
}

/* CHAT */
.messages-chat {
    display: flex;
    flex-direction: column;
}

/* HEADER */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: var(--green-main);
}

/* MESSAGES */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    font-size: 12px;
    padding-right: 6px;
}

/* MESSAGE */
.chat-message {
    margin-bottom: 6px;
}

.chat-message.system {
    opacity: 0.6;
    font-style: italic;
}

/* MESSAGE PARTS */
.chat-user {
    margin-right: 6px;
}

.chat-time {
    float: right;
    font-size: 10px;
    opacity: 0.5;
}

/* TYPING */
.typing-indicator {
    font-size: 10px;
    opacity: 0.6;
    height: 14px;
}

/* INPUT */
.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.chat-input-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--green-main);
    outline: none;
}
