/* ==========================================================================
   Elephpant 🐘 - Ubuntu Linux Desktop (LAMP Stack: Apache2 + PHP 8.2 + MySQL)
   Stylistyka: Ubuntu GNOME ("Yaru Aubergine" #2c001e, "Canonical Orange" #E95420,
   "PHP Indigo" #4F5B93 / #8892BF) + evince, gedit, phpMyAdmin 5.2 i Firefox.
   ========================================================================== */

:root {
    /* Paleta kolorów Ubuntu Yaru Dark & PHP Elephpant Indigo */
    --ubu-aubergine-deep: #180414;
    --ubu-aubergine: #2c001e;
    --ubu-aubergine-mid: #3d0f2f;
    --ubu-surface: #1e1b24;
    --ubu-surface-alt: #26222e;
    --ubu-headerbar: linear-gradient(180deg, #322c3b 0%, #241f2b 100%);
    --ubu-topbar: linear-gradient(90deg, #140410 0%, #2c001e 50%, #1a162b 100%);

    /* Akcenty Canonical Orange & PHP Indigo */
    --ubu-orange: #E95420;
    --ubu-orange-light: #ff7744;
    --ubu-orange-glow: rgba(233, 84, 32, 0.38);
    --php-indigo: #4F5B93;
    --php-indigo-light: #8892BF;
    --php-indigo-glow: rgba(136, 146, 191, 0.35);

    /* Statusy CKE i Złoty Orzeszek */
    --ubu-gold: #f59e0b;
    --ubu-gold-light: #fde047;
    --ubu-green: #16a34a;
    --ubu-green-light: #4ade80;
    --ubu-danger: #dc2626;
    --ubu-border: #3d354b;

    --ubu-text: #f8fafc;
    --ubu-text-muted: #cbd5e1;
    --ubu-text-dim: #94a3b8;

    --ubu-font: "Ubuntu", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    --ubu-font-mono: "Ubuntu Mono", "JetBrains Mono", "Fira Code", Consolas, monospace;
    --ubu-radius-win: 8px 8px 4px 4px;
    --ubu-transition: all 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==========================================================================
   Reset i Tapeta Pulpitu Ubuntu Linux 24.04 LTS (Yaru Aubergine + PHP Indigo)
   ========================================================================== */
body.theme-elephpant {
    background:
        radial-gradient(circle at 18% 20%, rgba(233, 84, 32, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 82% 18%, rgba(79, 91, 147, 0.28) 0%, transparent 50%),
        linear-gradient(135deg, #2c001e 0%, #1a091e 48%, #131829 100%);
    color: var(--ubu-text);
    font-family: var(--ubu-font);
    margin: 0;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.scroller::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.scroller::-webkit-scrollbar-track {
    background: #14111a;
}
.scroller::-webkit-scrollbar-thumb {
    background: #433954;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.scroller::-webkit-scrollbar-thumb:hover {
    background: var(--ubu-orange);
}

/* ==========================================================================
   Górny Pasek Systemowy Ubuntu GNOME (Top Bar)
   ========================================================================== */
.top-navbar,
.top-navbar.ubuntu-topbar {
    height: 46px !important;
    padding: 0 10px !important;
    background: var(--ubu-topbar) !important;
    border-bottom: 2px solid var(--ubu-orange) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.navbar-brand-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Przycisk Activities + Logo Elephpant LAMP */
.ubuntu-activities-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    text-decoration: none;
    transition: var(--ubu-transition);
}

.ubuntu-activities-btn:hover {
    background: rgba(233, 84, 32, 0.25);
    border-color: var(--ubu-orange);
    color: #ffffff;
}

.ubuntu-circle-dot,
.ubuntu-activities-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ubu-orange);
    box-shadow: 0 0 8px var(--ubu-orange);
    display: inline-block;
}

.brand.ubuntu-brand-pill,
.brand.ubuntu-activities-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px;
    background: linear-gradient(135deg, rgba(233, 84, 32, 0.22) 0%, rgba(79, 91, 147, 0.35) 100%);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid rgba(233, 84, 32, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    user-select: none;
}

.brand-icon {
    font-size: 1.15rem;
}

.brand-text {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-accent {
    color: #ff9e75;
    font-weight: 800;
}

.brand-badge {
    background: var(--php-indigo);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Wskaźnik usług serwerowych LAMP (Apache2 + MySQL 3306) */
.lamp-daemons-pill,
.ubuntu-daemon-tray {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(136, 146, 191, 0.3);
    border-radius: 4px;
    font-family: var(--ubu-font-mono);
    font-size: 0.65rem;
    color: #cbd5e1;
}

.daemon-item,
.daemon-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.daemon-sep {
    color: #64748b;
    font-size: 0.65rem;
}

.daemon-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64748b;
    display: inline-block;
}

.daemon-dot.online {
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

/* Licznik punktów CKE oraz Złotych Orzeszków 🥜 */
.ubuntu-led-panel {
    background: #120e17;
    border: 1px solid #4a3e5d;
    border-radius: 4px;
    padding: 3px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.led-divider {
    color: #64748b;
    font-size: 0.7rem;
}

.brand-progress-badge {
    font-family: var(--ubu-font-mono);
    font-size: 0.71rem;
    font-weight: 700;
    color: #fde047;
    letter-spacing: 0.03em;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.brand-peanuts-badge,
.peanut-counter-text {
    font-family: var(--ubu-font-mono);
    font-size: 0.71rem;
    font-weight: 800;
    color: #fde047;
    cursor: help;
}

/* Pasek 30 pigułek poziomów (bez zbędnego paska przewijania) */
.levels-bar-container {
    background: transparent !important;
    border: none !important;
    padding: 0 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.levels-bar-container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.level-pills {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 !important;
    margin: 0 !important;
}

.level-pill {
    width: 24px !important;
    height: 26px !important;
    font-family: var(--ubu-font) !important;
    font-size: 0.69rem !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2b2538 !important;
    color: #e2e8f0 !important;
    border: 1px solid #4a3f5e !important;
    cursor: pointer;
    transition: var(--ubu-transition);
    position: relative;
    flex-shrink: 0;
    transform: none !important;
}

.level-pill.completed::after {
    display: none !important;
    content: none !important;
}

.level-pill:hover {
    background: #3d3450 !important;
    border-color: var(--ubu-orange) !important;
    color: #ffffff !important;
    transform: none !important;
}

.level-pill.active {
    background: linear-gradient(180deg, #ff7744 0%, #E95420 100%) !important;
    color: #ffffff !important;
    border-color: #fed7aa !important;
    box-shadow: 0 0 8px var(--ubu-orange-glow) !important;
    font-weight: 900 !important;
    transform: none !important;
}

.level-pill.completed {
    background: linear-gradient(180deg, #22c55e 0%, #15803d 100%) !important;
    color: #ffffff !important;
    border-color: #86efac !important;
}

.level-pill.completed.has-peanut {
    box-shadow: inset 0 -3px 0 #fde047 !important;
}

.level-pill.locked {
    background: #17131f !important;
    color: #475569 !important;
    font-size: 0.56rem !important;
    border-color: #262033 !important;
    cursor: not-allowed;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.btn-icon,
.btn-icon.ubuntu-tray-btn {
    width: 30px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px !important;
    background: #2b2436;
    border: 1px solid #483c59;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--ubu-transition);
}

.btn-icon:hover,
.btn-icon.ubuntu-tray-btn:hover {
    background: #3b314a;
    border-color: var(--ubu-orange);
}

.btn-icon-danger:hover {
    background: var(--ubu-orange) !important;
    border-color: #fed7aa !important;
}

/* ==========================================================================
   Układ 4 Kwadrantów Pulpitu Ubuntu Linux (2x2)
   ========================================================================== */
.game-container {
    height: calc(100vh - 46px);
    width: 100vw;
    overflow: hidden;
}

.game-workspace {
    display: grid !important;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr) !important;
    gap: 9px !important;
    height: 100% !important;
    width: 100% !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.workspace-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Okno GTK / Ubuntu Yaru Dark */
.quadrant-card,
.quadrant-card.ubuntu-window {
    background: var(--ubu-surface);
    border: 1px solid #453a54;
    border-radius: var(--ubu-radius-win) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 0;
    overflow: hidden;
}

/* Belka tytułowa GTK HeaderBar */
.ubuntu-titlebar {
    background: var(--ubu-headerbar);
    border-bottom: 1px solid #14101a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    padding: 5px 9px 5px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    user-select: none;
    flex-shrink: 0;
}

.ubuntu-titlebar-left {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
}

.ubuntu-app-icon {
    font-size: 0.95rem;
    flex-shrink: 0;
}

.ubuntu-app-title {
    font-size: 0.79rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ubuntu-window-controls,
.ubuntu-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.ubuntu-ctrl-btn {
    width: 19px;
    height: 19px;
    background: #3d3647;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    font-size: 0.62rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.ubuntu-ctrl-close {
    background: var(--ubu-orange);
    color: #ffffff;
    border-color: #ff8c61;
    cursor: pointer;
}

.ubuntu-ctrl-close:hover {
    filter: brightness(1.15);
}

/* ==========================================================================
   KWADRANT 1: evince — Arkusz_CKE_INF03.pdf + Słonik Elephpant 🐘
   ========================================================================== */
.quadrant-task {
    flex: 0 0 auto;
    max-height: 49%;
}

.task-window-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 0;
    background: #191620;
}

.task-window-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.task-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.level-header-tags,
.level-right-badges {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin: 0 !important;
}

.tag-pill {
    font-size: 0.67rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tag-level {
    background: var(--ubu-orange);
    color: #ffffff;
    font-weight: 800;
}

.tag-phase {
    background: rgba(79, 91, 147, 0.35);
    color: #c7d2fe;
    border: 1px solid rgba(136, 146, 191, 0.4);
}

.tag-exam {
    background: #272233;
    color: #e2e8f0;
    font-family: var(--ubu-font-mono);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tag-points {
    background: var(--ubu-green);
    color: #ffffff;
    font-family: var(--ubu-font-mono);
    font-weight: 800;
}

.tag-peanut {
    background: rgba(245, 158, 11, 0.14);
    color: #cbd5e1;
    border: 1px dashed rgba(245, 158, 11, 0.45);
    text-transform: none;
}

.tag-peanut.earned {
    background: rgba(245, 158, 11, 0.28);
    color: #fde047;
    border: 1px solid #fde047;
    font-weight: 800;
}

/* Dokument polecenia CKE */
.ubuntu-doc-well {
    background: #131019;
    border: 1px solid #352d44;
    border-left: 3px solid var(--ubu-orange);
    border-radius: 4px;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #e5e7eb;
    min-width: 0;
    overflow: hidden;
}

.quadrant-task .level-title {
    font-size: 0.9rem !important;
    font-weight: 700;
    color: #ffffff;
    margin: 0 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.quadrant-task .level-instruction {
    font-size: 0.8rem !important;
    line-height: 1.46;
    color: #cbd5e1;
    margin: 0 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Zwijana lista wymagań CKE (Domyślnie zamknięta - Zasada Anty-Spoilera) */
details.cke-checklist-box {
    background: #100d16;
    border: 1px solid #352d44;
    border-radius: 4px;
    padding: 0;
    transition: var(--ubu-transition);
}

details.cke-checklist-box[open] {
    border-color: var(--ubu-orange);
    background: #15111d;
}

summary.cke-checklist-header {
    font-size: 0.71rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #cbd5e1;
    letter-spacing: 0.03em;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

summary.cke-checklist-header::-webkit-details-marker {
    display: none;
}

summary.cke-checklist-header:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.cke-checklist-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cke-checklist-title::before {
    content: "▶";
    font-size: 0.6rem;
    color: var(--ubu-orange);
    transition: transform 0.2s ease;
    display: inline-block;
}

details[open] .cke-checklist-title::before {
    transform: rotate(90deg);
}

.cke-checklist-badge {
    background: #272134;
    color: #fde047;
    font-family: var(--ubu-font-mono);
    font-size: 0.66rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 3px;
    margin-left: auto;
    border: 1px solid rgba(253, 224, 71, 0.25);
}

.cke-checklist-badge.all-passed {
    background: var(--ubu-green);
    color: #ffffff;
    border-color: #86efac;
}

.cke-checklist-toggle-hint {
    font-size: 0.63rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: lowercase;
}

details[open] .cke-checklist-toggle-hint {
    display: none;
}

.cke-checklist {
    list-style: none;
    padding: 4px 10px 8px 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cke-checklist-item {
    font-size: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid #475569;
    color: #94a3b8;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cke-checklist-item.completed {
    background: rgba(22, 163, 74, 0.16);
    border-left-color: #22c55e;
    color: #dcfce7;
}

.cke-check-icon {
    font-weight: 900;
    font-size: 0.78rem;
    color: #64748b;
    flex-shrink: 0;
}

.cke-checklist-item.completed .cke-check-icon {
    color: #4ade80;
}

/* Interaktywny Pasek Maskotki Elephpant 🐘 */
.elephpant-mascot-bar {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 6px 10px;
    border-radius: 5px;
    background: rgba(79, 91, 147, 0.18);
    border: 1px solid rgba(136, 146, 191, 0.35);
    transition: var(--ubu-transition);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.elephpant-mascot-bar.mood-error {
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(248, 113, 113, 0.55);
}

.elephpant-mascot-bar.mood-warning {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.5);
}

.elephpant-mascot-bar.mood-thinking {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(96, 165, 250, 0.45);
}

.elephpant-mascot-bar.mood-celebrate {
    background: rgba(22, 163, 74, 0.22);
    border-color: rgba(74, 222, 128, 0.6);
}

.elephpant-avatar {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.elephpant-mascot-info,
.elephpant-speech {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.elephpant-mascot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.elephpant-mood-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: #ffffff;
    min-width: 0;
    word-break: break-word;
}

.elephpant-mood-desc {
    font-size: 0.72rem;
    color: #cbd5e1;
    line-height: 1.4;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    min-width: 0;
    max-width: 100%;
}

.mysqli-conn-pill {
    font-family: var(--ubu-font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mysqli-conn-pill.idle {
    background: #231e2e;
    color: #94a3b8;
}

.mysqli-conn-pill.closed-ok {
    background: rgba(22, 163, 74, 0.25);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.5);
}

.mysqli-conn-pill.leak-warn {
    background: rgba(233, 84, 32, 0.25);
    color: #fdba74;
    border-color: var(--ubu-orange);
}

/* Dymek Podpowiedzi Elephpanta (Ctrl+H) — z niewidocznym scrollem przy dużej ilości treści */
.cke-trap-box {
    background: linear-gradient(135deg, rgba(79, 91, 147, 0.25) 0%, rgba(233, 84, 32, 0.14) 100%);
    border: 1px solid rgba(136, 146, 191, 0.45);
    border-left: 3px solid var(--ubu-orange);
    border-radius: 4px;
    padding: 7px 10px;
    margin: 4px 0 0 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.77rem;
    color: #f1f5f9;
    line-height: 1.44;
    max-height: 165px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    min-width: 0;
}

.cke-trap-box::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.cke-trap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cke-trap-badge {
    color: #fdba74;
    font-weight: 800;
    font-size: 0.75rem;
}

.cke-trap-close-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 1px 5px;
    border-radius: 3px;
}

.cke-trap-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.cke-trap-desc {
    color: #e2e8f0;
    font-size: 0.76rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cke-hints-extra {
    border-top: 1px dashed rgba(136, 146, 191, 0.35);
    padding-top: 6px;
    min-width: 0;
}

.merlin-hints-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.merlin-hints-title {
    color: #fdba74;
    font-weight: 700;
    font-size: 0.73rem;
}

.merlin-hint-step {
    font-size: 0.74rem;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.45);
    padding: 4px 7px;
    border-radius: 3px;
    border-left: 2px solid var(--php-indigo-light);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.hint-bullet {
    color: #fdba74;
    font-weight: 700;
}

.btn-hint-active {
    background: var(--php-indigo) !important;
    border-color: #c7d2fe !important;
    color: #ffffff !important;
}

/* Dolny pasek przycisków akcji Kwadrantu 1 */
.task-bottom-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.workspace-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 !important;
}

.btn-primary {
    background: linear-gradient(180deg, #ff703b 0%, #E95420 100%);
    color: #ffffff;
    border: 1px solid #ff9e75;
    padding: 5px 14px;
    border-radius: 5px !important;
    font-family: var(--ubu-font);
    font-size: 0.79rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: var(--ubu-transition);
}

.btn-primary:hover {
    filter: brightness(1.08);
    transform: none;
}

.btn-secondary {
    background: #2b2436;
    color: #f8fafc;
    border: 1px solid #4c4060;
    padding: 5px 12px;
    border-radius: 5px !important;
    font-family: var(--ubu-font);
    font-size: 0.79rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ubu-transition);
}

.btn-secondary:hover {
    background: #3a3048;
    border-color: var(--php-indigo-light);
}

.btn-next-level {
    background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
    color: #ffffff;
    border: 1px solid #86efac;
    border-radius: 5px;
    padding: 5px 14px;
    font-family: var(--ubu-font);
    font-size: 0.79rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feedback-box {
    display: none;
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 4px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.42;
}

.feedback-box.visible {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.feedback-box > span:last-child {
    flex: 1 1 0%;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.feedback-box.success {
    background: rgba(22, 163, 74, 0.22);
    border: 1px solid rgba(74, 222, 128, 0.45);
    border-left: 3px solid #22c55e;
    color: #bbf7d0;
}

.feedback-box.error {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-left: 3px solid #ef4444;
    color: #fecaca;
}

/* ==========================================================================
   KWADRANT 3 (Góra-Prawo): gedit — /var/www/html/strona.php (Szablon HTML + Edytor PHP)
   ========================================================================== */
.quadrant-code {
    flex: 0 0 53%;
    max-height: 53%;
    min-height: 0;
}

.code-window-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #120f17;
}

.code-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.code-panel.html-panel {
    flex: 0 0 38%;
    border-bottom: 2px solid #352c44;
}

.code-panel.php-panel,
.code-panel.js-panel {
    flex: 1 1 auto;
}

.code-window-body.hardcore-active .code-panel.html-panel {
    flex: 1 1 50%;
}

.code-window-body.hardcore-active .code-panel.php-panel,
.code-window-body.hardcore-active .code-panel.js-panel {
    flex: 1 1 50%;
}

.code-panel-header {
    background: #211c2b;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #332b42;
    flex-shrink: 0;
}

.code-header-left,
.code-header-right {
    display: flex;
    align-items: center;
    gap: 7px;
}

.code-lang-tag {
    font-size: 0.63rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.04em;
}

.html-lang-badge {
    background: var(--ubu-orange);
    color: #ffffff;
}

.php-lang-badge {
    background: var(--php-indigo);
    color: #ffffff;
    border: 1px solid var(--php-indigo-light);
}

.code-panel-title {
    font-family: var(--ubu-font-mono);
    font-size: 0.74rem;
    color: #ffffff;
    font-weight: 700;
}

.code-scope-pill {
    font-size: 0.65rem;
    color: #c7d2fe;
    background: #2b253b;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid rgba(136, 146, 191, 0.3);
}

.code-scope-pill.hardcore-badge {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #fca5a5 !important;
    font-weight: 800;
}

.freeform-pill {
    background: var(--ubu-orange) !important;
    color: #ffffff !important;
    font-weight: 800;
}

.code-hover-tip {
    font-size: 0.65rem;
    color: #94a3b8;
    font-style: italic;
}

.code-target-badge {
    background: rgba(233, 84, 32, 0.16);
    border: 1px solid var(--ubu-orange);
    color: #fdba74;
    font-family: var(--ubu-font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 3px;
}

.php-line-error-badge {
    background: rgba(220, 38, 38, 0.25);
    border: 1px solid #f87171;
    color: #fecaca;
    font-family: var(--ubu-font-mono);
    font-size: 0.66rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 3px;
}

/* Switch Trybu Hardcore w stylu Ubuntu GTK */
.ubuntu-hardcore-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    background: #15111c;
    padding: 2px 6px 2px 8px;
    border: 1px solid #453a58;
    border-radius: 4px;
}

.ubuntu-hardcore-toggle:hover {
    border-color: var(--ubu-orange);
}

.hardcore-label-title {
    font-size: 0.6rem;
    font-weight: 800;
    color: #cbd5e1;
}

.ubuntu-hardcore-toggle input[type="checkbox"] {
    display: none;
}

.ubuntu-switch-track {
    width: 38px;
    height: 17px;
    background: #272133;
    border: 1px solid #524569;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ubuntu-switch-status {
    font-size: 0.57rem;
    font-weight: 900;
    color: #94a3b8;
}

.ubuntu-hardcore-toggle input[type="checkbox"]:checked + .ubuntu-switch-track {
    background: var(--ubu-orange);
    border-color: #fdba74;
}

.ubuntu-hardcore-toggle input[type="checkbox"]:checked + .ubuntu-switch-track .ubuntu-switch-status {
    color: #ffffff;
}

/* Edytor HTML w Trybie Hardcore */
.html-editor-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #110e17;
}

.html-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 8px;
    background: #1b1624;
    border-bottom: 1px solid #2f273d;
}

.html-editor-body-tag {
    font-family: var(--ubu-font-mono);
    font-size: 0.69rem;
    font-weight: 700;
    color: #ff9e75;
}

.html-editor-hint {
    font-size: 0.62rem;
    color: #94a3b8;
    font-style: italic;
}

.html-editor-actions {
    display: flex;
    gap: 5px;
}

.ubuntu-mini-btn {
    background: #2c2538;
    color: #e2e8f0;
    border: 1px solid #4c4061;
    border-radius: 4px;
    font-size: 0.63rem;
    font-weight: 700;
    padding: 2px 7px;
    cursor: pointer;
    transition: var(--ubu-transition);
}

.ubuntu-mini-btn:hover {
    background: #3c324d;
    border-color: var(--ubu-orange);
    color: #ffffff;
}

.html-editor-surface {
    flex: 1;
    min-height: 0;
    display: flex;
    background: #0f0c14;
    overflow-y: auto;
}

.html-input-row {
    flex: 1;
    display: flex;
    min-height: 100%;
}

.html-editor-textarea {
    width: 100%;
    height: 100%;
    min-height: 80px;
    background: transparent;
    color: #f1f5f9;
    font-family: var(--ubu-font-mono);
    font-size: 0.78rem;
    line-height: 1.5;
    border: none;
    outline: none;
    resize: none;
    padding: 4px 8px;
    box-sizing: border-box;
}

.html-editor-footer {
    padding: 2px 8px;
    background: #1b1624;
    border-top: 1px solid #2f273d;
}

/* Wnętrze podglądu HTML i edytora PHP w gedit */
.html-code-wrapper,
.editor-body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 10px;
    font-family: var(--ubu-font-mono);
    font-size: 0.77rem;
    line-height: 1.5;
    background: #0f0c14;
    min-height: 0;
}

.html-line {
    display: flex;
    align-items: flex-start;
    padding: 1px 4px;
    border-radius: 3px;
}

.html-line.html-body-line {
    opacity: 0.5;
}

.html-line:hover,
.html-line.dock-hover-highlight {
    background: rgba(233, 84, 32, 0.25) !important;
}

.html-line-target {
    background: rgba(136, 146, 191, 0.08);
}

.html-line-php-anchor {
    background: rgba(79, 91, 147, 0.22);
    border-left: 2px solid var(--ubu-orange);
}

.code-line-num {
    display: inline-block;
    width: 30px;
    color: #64748b;
    user-select: none;
    flex-shrink: 0;
    text-align: right;
    margin-right: 10px;
}

/* Podświetlenie linii z błędem składni / brakującym średnikiem ';' */
.code-line-num.line-num-error {
    background: #dc2626;
    color: #ffffff !important;
    font-weight: 900;
    border-radius: 3px;
    padding: 0 3px;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.7);
}

.textarea-has-error {
    background: rgba(220, 38, 38, 0.06) !important;
}

.html-line-code {
    flex: 1;
    word-break: break-all;
}

.html-bracket { color: #94a3b8; }
.html-tag { color: #ff9e75; font-weight: 700; }
.html-attr { color: #c7d2fe; }
.html-val { color: #fde047; }
.html-text { color: #f1f5f9; }
.html-php-anchor {
    color: #fde047;
    font-weight: 800;
    background: rgba(233, 84, 32, 0.2);
    padding: 0 4px;
    border-radius: 3px;
}

.html-target-pill {
    background: rgba(79, 91, 147, 0.3);
    border: 1px solid rgba(136, 146, 191, 0.5);
    color: #e0e7ff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0 6px;
    border-radius: 3px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Bloki skryptów PHP w gedit */
.css-editor-surface {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.css-rule-group {
    border-left: 2px solid var(--php-indigo);
    padding-left: 6px;
    margin-bottom: 4px;
}

.css-rule-group:focus-within {
    border-left-color: var(--ubu-orange);
}

.css-editor-line.locked {
    color: #cbd5e1;
    display: flex;
    align-items: center;
}

.php-tag-locked {
    color: #f87171;
    font-weight: 800;
    margin-right: 6px;
}

.php-block-title-locked,
.php-comment-locked {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.72rem;
}

.css-locked-indent {
    color: #a5b4fc;
}

.css-editor-input-row {
    display: flex;
    align-items: flex-start;
}

.css-line-number-col {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.css-editor-input-col {
    flex: 1;
}

.css-editor-textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    font-family: var(--ubu-font-mono);
    font-size: 0.78rem;
    line-height: 22px;
    resize: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    white-space: pre;
    overflow-x: auto;
}

.freeform-textarea {
    min-height: 165px;
}

/* ==========================================================================
   KWADRANT 2 (Dół-Lewo): phpMyAdmin 5.2 & Wzorzec CKE / Tabela Testów
   ========================================================================== */
.quadrant-target {
    flex: 1 1 auto;
    min-height: 0;
}

.q3-mode-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
}

.q3-tab-btn {
    background: #1b1722;
    color: #cbd5e1;
    border: 1px solid #453a54;
    border-radius: 4px;
    padding: 2px 8px;
    font-family: var(--ubu-font);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--ubu-transition);
}

.q3-tab-btn:hover {
    background: #2b2438;
    color: #ffffff;
}

.q3-tab-btn.active {
    background: var(--php-indigo);
    color: #ffffff;
    border-color: #c7d2fe;
}

.target-badge {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fde047;
    font-family: var(--ubu-font-mono);
    font-size: 0.63rem;
    font-weight: 800;
    padding: 0 5px;
    border-radius: 3px;
}

.target-badge.all-passed {
    background: var(--ubu-green);
    color: #ffffff;
    border-color: #86efac;
}

/* Widok 1: phpMyAdmin 5.2 */
.pma-panel-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #15121d;
    padding: 6px 8px;
    gap: 6px;
    overflow-y: auto;
}

.pma-topbar,
.pma-NavigationBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    background: #1f1a2b;
    border: 1px solid #38304c;
    border-radius: 4px;
    padding: 4px 8px;
}

.pma-tables-nav,
.pma-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.71rem;
    color: #cbd5e1;
}

.pma-server-crumb,
.pma-server-tag {
    color: #94a3b8;
    font-family: var(--ubu-font-mono);
}

.pma-server-crumb strong,
.pma-db-tag strong {
    color: #fde047;
    font-family: var(--ubu-font-mono);
}

.pma-tables-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pma-table-pill {
    background: #2a2338;
    color: #e2e8f0;
    border: 1px solid #483d5e;
    border-radius: 4px;
    padding: 2px 8px;
    font-family: var(--ubu-font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pma-table-pill.active {
    background: var(--ubu-orange);
    color: #ffffff;
    border-color: #fed7aa;
}

.pma-table-pill.has-diff {
    border-color: #4ade80;
}

.pma-row-count {
    opacity: 0.8;
    font-size: 0.62rem;
}

.pma-diff-dot {
    color: #4ade80;
    font-size: 0.65rem;
}

.pma-subtabs-nav,
.pma-subtabs-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pma-subtab-btn {
    background: #251f33;
    color: #cbd5e1;
    border: 1px solid #3f3554;
    border-radius: 3px;
    padding: 2px 7px;
    font-size: 0.66rem;
    font-weight: 700;
    cursor: pointer;
}

.pma-subtab-btn.active {
    background: #3b3252;
    color: #fde047;
    border-color: #fde047;
}

.pma-reset-btn {
    background: rgba(233, 84, 32, 0.18);
    color: #fdba74;
    border: 1px solid rgba(233, 84, 32, 0.45);
    border-radius: 3px;
    padding: 2px 7px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
}

.pma-reset-btn:hover {
    background: var(--ubu-orange);
    color: #ffffff;
}

.pma-last-query-bar {
    background: #0f0c14;
    border: 1px solid #2d263d;
    border-left: 3px solid var(--php-indigo-light);
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pma-last-query-bar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.pma-query-label {
    color: #94a3b8;
    font-weight: 700;
    flex-shrink: 0;
}

.pma-query-code {
    font-family: var(--ubu-font-mono);
    color: #cbd5e1;
}

.pma-query-code.query-ok {
    color: #4ade80;
}

.pma-query-code.query-err {
    color: #f87171;
}

.pma-query-status-box {
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 0.69rem;
    color: #dcfce7;
    margin-bottom: 5px;
}

.pma-diff-banner {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 0.7rem;
    color: #fef08a;
    margin-bottom: 5px;
}

.diff-badge-ins {
    background: rgba(22, 163, 74, 0.3);
    color: #4ade80;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 800;
    margin-left: 6px;
}

.diff-badge-upd {
    background: rgba(245, 158, 11, 0.3);
    color: #fde047;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 800;
    margin-left: 6px;
}

/* Kontener tabeli zgodny z wytycznymi responsive-table (sticky thead + border-collapse: separate) */
.pma-table-scroll,
.testcases-table-wrap {
    overflow: auto;
    max-inline-size: 100%;
    container-type: inline-size;
}

.pma-data-table,
.cke-testcases-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.71rem;
}

.pma-data-table thead,
.cke-testcases-table thead {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
}

.pma-data-table th,
.cke-testcases-table th {
    background: #251f33;
    color: #e2e8f0;
    font-weight: 700;
    text-align: left;
    padding: 4px 7px;
    border-bottom: 1px solid #453a5c;
    border-right: 1px solid #352c47;
}

.pma-data-table td,
.cke-testcases-table td {
    padding: 4px 7px;
    border-bottom: 1px solid #292238;
    border-right: 1px solid #241e30;
    color: #e2e8f0;
    font-family: var(--ubu-font-mono);
    vertical-align: middle;
}

.pma-data-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.pma-data-table tr.pma-row-inserted td {
    background: rgba(22, 163, 74, 0.22) !important;
    color: #dcfce7;
    font-weight: 700;
}

.pma-data-table tr.pma-row-updated td {
    background: rgba(245, 158, 11, 0.22) !important;
    color: #fef08a;
    font-weight: 700;
}

.pma-row-badge {
    font-size: 0.61rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
}

.pma-row-badge.orig {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.12);
}

.pma-row-badge.ins {
    color: #4ade80;
    background: rgba(22, 163, 74, 0.28);
    border: 1px solid rgba(74, 222, 128, 0.5);
}

.pma-row-badge.upd {
    color: #fde047;
    background: rgba(245, 158, 11, 0.28);
    border: 1px solid rgba(253, 224, 71, 0.5);
}

.pma-pk-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fde047;
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 3px;
}

.pma-sql-console {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pma-sql-label {
    font-size: 0.71rem;
    color: #cbd5e1;
}

.pma-sql-textarea {
    width: 100%;
    background: #0d0a12;
    color: #fde047;
    border: 1px solid #483d5e;
    border-radius: 4px;
    padding: 6px 8px;
    font-family: var(--ubu-font-mono);
    font-size: 0.76rem;
    resize: vertical;
}

.pma-sql-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pma-sql-error {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid #f87171;
    color: #fecaca;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
}

.pma-sql-success {
    background: rgba(22, 163, 74, 0.2);
    border: 1px solid #4ade80;
    color: #bbf7d0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
}

/* Widok 2: Wzorzec CKE i Tabela Przypadków Testowych */
.target-split-viewport {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background: #15121d;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.target-blueprint-section {
    background: #ffffff;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    padding: 7px 10px;
    color: #0f172a;
}

.blueprint-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.blueprint-caption-title {
    font-size: 0.71rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
}

.blueprint-sample-pill {
    background: var(--ubu-aubergine);
    color: #ffffff;
    font-family: var(--ubu-font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
}

.target-testcases-section {
    background: #100d17;
    border: 1px solid #352d46;
    border-radius: 4px;
    padding: 6px 8px;
}

.testcases-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.testcases-title {
    font-size: 0.71rem;
    font-weight: 800;
    color: #fdba74;
    text-transform: uppercase;
}

.testcases-hint {
    font-size: 0.63rem;
    color: #94a3b8;
    font-style: italic;
}

.tc-method-tag {
    display: inline-block;
    font-family: var(--ubu-font-mono);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 4px;
}

.tc-method-tag.get {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.tc-method-tag.post {
    background: rgba(233, 84, 32, 0.28);
    color: #fdba74;
    border: 1px solid var(--ubu-orange);
}

.cke-testcases-table tr.tc-row-passed td {
    background: rgba(22, 163, 74, 0.14);
}

.cke-testcases-table tr.tc-row-failed td {
    background: rgba(220, 38, 38, 0.12);
}

.tc-expected-code {
    font-family: var(--ubu-font-mono);
    color: #fde047;
    font-weight: 600;
    font-size: 0.69rem;
}

.tc-actual-code {
    font-family: var(--ubu-font-mono);
    font-size: 0.69rem;
    color: #94a3b8;
}

.tc-row-passed .tc-actual-code {
    color: #4ade80;
    font-weight: 700;
}

.tc-row-failed .tc-actual-code {
    color: #f87171;
}

.tc-actions-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    white-space: nowrap;
}

.tc-load-btn {
    background: #2b243b;
    color: #c7d2fe;
    border: 1px solid #4f4369;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 7px;
    cursor: pointer;
}

.tc-load-btn:hover {
    background: var(--ubu-orange);
    color: #ffffff;
    border-color: #fed7aa;
}

.tc-status-pill {
    font-family: var(--ubu-font-mono);
    font-size: 0.63rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
}

.tc-status-pill.pass {
    background: rgba(22, 163, 74, 0.25);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.tc-status-pill.fail {
    background: rgba(220, 38, 38, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.tc-status-pill.pending {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

/* ==========================================================================
   KWADRANT 4: Mozilla Firefox — Ubuntu Canonical Edition
   ========================================================================== */
.quadrant-live {
    flex: 1 1 auto;
    min-height: 0;
}

.live-pulse-badge {
    background: var(--php-indigo);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid var(--php-indigo-light);
}

.browser-topbar,
.browser-topbar.ubuntu-browser-bar {
    background: #231e2e;
    color: #f1f5f9;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #38304a;
    flex-shrink: 0;
}

.http-method-badge {
    font-family: var(--ubu-font-mono);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 3px;
}

.http-method-badge.method-get {
    background: #1d4ed8;
    color: #ffffff;
}

.http-method-badge.method-post {
    background: var(--ubu-orange);
    color: #ffffff;
}

.browser-address-bar {
    flex: 1;
    min-width: 0;
    background: #120f18;
    border: 1px solid #463c5c;
    border-radius: 4px;
    padding: 2px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ubu-font-mono);
    font-size: 0.72rem;
}

.address-lock {
    background: var(--php-indigo);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.58rem;
    padding: 1px 5px;
    border-radius: 3px;
    flex-shrink: 0;
}

.address-url {
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ubuntu-get-btn,
.ubuntu-reset-get-btn {
    background: #2e273d;
    color: #cbd5e1;
    border: 1px solid #52456b;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.67rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.ubuntu-get-btn:hover,
.ubuntu-reset-get-btn:hover {
    border-color: #93c5fd;
    color: #ffffff;
}

.ubuntu-go-btn {
    background: linear-gradient(180deg, #ff703b 0%, #E95420 100%);
    color: #ffffff;
    border: 1px solid #ff9e75;
    border-radius: 4px;
    padding: 2px 9px;
    font-size: 0.69rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

/* Pasek zakładek widoku w Firefoxie */
.firefox-view-tabs,
.ff-view-tabs {
    background: #1a1623;
    border-bottom: 1px solid #322a42;
    padding: 3px 8px 0 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.ff-view-tab {
    background: #241f30;
    color: #94a3b8;
    border: 1px solid #38304a;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    padding: 3px 10px;
    font-size: 0.69rem;
    font-weight: 700;
    cursor: pointer;
}

.ff-view-tab.active {
    background: #f8fafc;
    color: #0f172a;
    border-color: var(--ubu-orange);
    border-top: 2px solid var(--ubu-orange);
}

.ff-tab-count {
    background: var(--ubu-orange);
    color: #ffffff;
    font-family: var(--ubu-font-mono);
    font-size: 0.6rem;
    padding: 0 5px;
    border-radius: 999px;
    margin-left: 3px;
}

.browser-viewport {
    background: #f8fafc;
    padding: 10px 12px;
    overflow: auto;
    flex: 1;
    min-height: 0;
    position: relative;
    color: #0f172a;
}

/* Zakładka 2 Firefoxa: Źródło HTML (View Source) */
.ff-source-view {
    background: #0f0c14;
    color: #e2e8f0;
    padding: 8px;
    border-radius: 4px;
    min-height: 100%;
}

.source-section-hdr {
    font-size: 0.71rem;
    font-weight: 700;
    color: #fdba74;
    margin-bottom: 4px;
}

.source-code-pre {
    background: #171320;
    border: 1px solid #352c47;
    border-radius: 4px;
    padding: 8px;
    font-family: var(--ubu-font-mono);
    font-size: 0.73rem;
    color: #dcfce7;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

/* Zakładka 3 Firefoxa: Inspektor tablic superglobalnych */
.ff-request-view {
    background: #14111c;
    color: #e2e8f0;
    padding: 8px;
    border-radius: 4px;
    min-height: 100%;
}

.superglobals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.superglobal-card {
    background: #1d1829;
    border: 1px solid #3a314f;
    border-radius: 4px;
    padding: 6px 8px;
}

.superglobal-hdr {
    font-size: 0.71rem;
    font-weight: 700;
    color: #fde047;
    margin-bottom: 5px;
}

.superglobal-empty {
    font-size: 0.69rem;
    color: #94a3b8;
    font-style: italic;
}

/* Pieczątka Zaliczenia CKE */
.dock-stamp-approved {
    display: none;
    position: absolute;
    top: 12px;
    right: 14px;
    transform: rotate(-3deg);
    background: rgba(22, 163, 74, 0.95);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 5px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 900;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    z-index: 90;
    pointer-events: none;
}

.dock-stamp-approved.visible {
    display: block;
}

/* Szuflada logów /var/log/apache2/error.log */
.ie6-console-drawer,
.apache-log-drawer {
    background: #0e0b14;
    border-top: 2px solid var(--ubu-orange);
    max-height: 115px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.ie6-console-header,
.apache-log-header {
    background: #1c1626;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fdba74;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #322944;
}

.ie6-console-logs,
.apache-log-entries {
    padding: 4px 8px;
    font-family: var(--ubu-font-mono);
    font-size: 0.7rem;
    color: #e2e8f0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.console-log-entry {
    padding: 2px 5px;
    border-left: 2px solid var(--php-indigo-light);
    word-break: break-word;
}
.console-log-entry.warn {
    border-left-color: #f59e0b;
    color: #fde047;
}
.console-log-entry.error {
    border-left-color: #ef4444;
    color: #fca5a5;
}

/* Dolny pasek stanu Firefoxa / Serwera Apache */
.ie6-statusbar,
.ubuntu-statusbar {
    background: #211c2b;
    border-top: 1px solid #38304a;
    color: #e2e8f0;
    padding: 3px 8px;
    font-size: 0.69rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}

.ie6-status-left,
.ubuntu-status-left {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.ie6-status-text,
.ubuntu-status-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: #cbd5e1;
}

.ie6-status-text.is-error,
.ubuntu-status-text.is-error {
    color: #fca5a5;
    font-weight: 700;
}

.ie6-status-right,
.ubuntu-status-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ff-status-pill {
    font-family: var(--ubu-font-mono);
    font-size: 0.63rem;
    padding: 1px 6px;
    border-radius: 3px;
    background: #15111c;
    color: #94a3b8;
    border: 1px solid #352d47;
}

.ff-status-pill.pill-ok {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.45);
}

.ff-status-pill.pill-warn {
    color: #fdba74;
    border-color: var(--ubu-orange);
}

.ie6-console-btn,
.ubuntu-log-btn {
    background: #2d263d;
    border: 1px solid #4c4063;
    border-radius: 3px;
    padding: 1px 7px;
    font-family: var(--ubu-font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    color: #e2e8f0;
    cursor: pointer;
}

.ie6-console-btn:hover,
.ubuntu-log-btn:hover {
    border-color: var(--ubu-orange);
}

.console-count-badge {
    background: #14101c;
    color: #94a3b8;
    padding: 0 4px;
    border-radius: 2px;
    font-size: 0.6rem;
}

.console-count-badge.has-errors {
    background: #dc2626;
    color: #ffffff;
}

/* ==========================================================================
   Stylizacja Witryn i Formularzy CKE wewnątrz Kwadrantów 3 i 4
   ========================================================================== */
.cke-page-canvas {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--ubu-font);
    font-size: 0.8rem;
    color: #0f172a;
}

.cke-page-canvas header,
.cke-page-canvas #baner {
    background: #3b1d54;
    color: #ffffff;
    padding: 6px 10px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 6px;
}

.wireframe-mode header,
.wireframe-mode #baner {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px dashed #475569;
}

.cke-page-canvas main,
.cke-page-canvas section,
.cke-page-canvas .panel-aplikacji {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cke-page-canvas form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 8px;
    border-radius: 4px;
}

.cke-page-canvas label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cke-page-canvas input[type="text"],
.cke-page-canvas input[type="number"],
.cke-page-canvas input[type="password"],
.cke-page-canvas input[type="date"],
.cke-page-canvas select {
    padding: 4px 7px;
    border: 1px solid #64748b;
    border-radius: 3px;
    font-size: 0.77rem;
    background: #ffffff;
    color: #0f172a;
}

.cke-page-canvas button,
.cke-page-canvas input[type="submit"],
.cke-page-canvas input[type="button"] {
    padding: 4px 12px;
    background: linear-gradient(180deg, #4F5B93 0%, #3a4473 100%);
    border: 1px solid #2e365c;
    border-radius: 3px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
}

.cke-page-canvas button:hover,
.cke-page-canvas input[type="submit"]:hover {
    background: var(--ubu-orange);
    border-color: #c2410c;
}

.cke-page-canvas #wynik,
.cke-page-canvas .wynik-box {
    margin-top: 4px;
    padding: 6px 10px;
    background: #f5f3ff;
    border: 1px dashed #6366f1;
    border-radius: 4px;
    color: #1e1b4b;
    min-height: 26px;
}

.cke-page-canvas table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    margin-top: 4px;
}

.cke-page-canvas th,
.cke-page-canvas td {
    border: 1px solid #94a3b8;
    padding: 3px 6px;
    text-align: left;
}

.cke-page-canvas th {
    background: #e2e8f0;
    font-weight: 700;
}

.cke-page-canvas .karta,
.cke-page-canvas .blok {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    padding: 6px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.dock-hover-highlight {
    outline: 3px solid var(--ubu-orange) !important;
    outline-offset: 1px;
    box-shadow: 0 0 12px var(--ubu-orange-glow) !important;
    z-index: 20;
}

/* ==========================================================================
   Okna Modalne (Styl Dialogu Systemowego Ubuntu GTK)
   ========================================================================== */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 5, 18, 0.78);
    backdrop-filter: blur(3px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.visible {
    display: flex;
}

.modal-content.ubuntu-dialog {
    background: var(--ubu-surface);
    border: 1px solid var(--ubu-orange);
    border-radius: var(--ubu-radius-win);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ubuntu-dialog-body {
    padding: 14px 16px;
    overflow-y: auto;
    color: #e2e8f0;
    font-size: 0.84rem;
    line-height: 1.55;
}

.btn-danger {
    background: var(--ubu-orange);
    color: #ffffff;
    border: 1px solid #fdba74;
    border-radius: 4px;
    padding: 5px 14px;
    font-weight: 700;
    cursor: pointer;
}

.inline-code-pill {
    background: #272136;
    color: #fde047;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--ubu-font-mono);
    font-size: 0.84em;
    border: 1px solid rgba(253, 224, 71, 0.25);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: inline;
}
