:root {
    /* Tavolozza colori ispirata all'immagine */
    --bg-main: #f3e600; /* Giallo acido tipico */
    --bg-panel: #111111; /* Nero profondo per i contenitori */
    --bg-card: #1a1a1a;
    --bg-input: #222222;
    --text-light: #ffffff;
    --text-muted: #888888;
    
    /* Colori di accento */
    --primary: #ff003c; /* Rosso Cyber */
    --secondary: #00f0ff; /* Ciano Fluo */
    --border-main: #ff003c;
}

/* 1. GEOMETRIA DEI CONTENITORI (Angoli smussati) */
.block,
.portfolio-card,
.stat-card,
.media-card,
.accordion-item,
.blog-summary,
.blog-editor-card,
.blog-drag-item,
.gestione-table-wrapper,
.gestione-form-bar,
.sys-info-table,
.modal-content,
.markdown-container,
.kanban-col,
.kanban-item {
    position: relative;
    border-radius: 0 !important;
    border: none !important; /* Disabilitiamo i bordi quadrati standard */
    background-color: var(--bg-panel);
    color: var(--text-light);
    
    /* Il taglio "Cyber": alto-sinistra e basso-destra */
    clip-path: polygon(
        25px 0, 
        100% 0, 
        100% calc(100% - 25px), 
        calc(100% - 25px) 100%, 
        0 100%, 
        0 25px
    );
    
    /* Ombra interna per creare un falso bordo che non viene tagliato dal clip-path */
    box-shadow: inset 3px 0 0 var(--primary);
    padding: 20px;
    margin-bottom: 25px;
}

/* 2. ACCENTI TECNOLOGICI (I dettagli ciano/rossi sui bordi) */
.block::after,
.markdown-container::after,
.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 4px;
    background-color: var(--secondary);
}

.block::before,
.markdown-container::before,
.portfolio-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

/* 3. TIPOGRAFIA */
h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 900;
}

/* 4. BOTTONI CON TAGLIO CYBER */
.btn, .sidebar-btn {
    border-radius: 0 !important;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    /* Smussatura ridotta per i bottoni */
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary) !important;
    color: #fff !important;
    border: none !important;
}

.btn-primary:hover {
    background-color: var(--secondary) !important;
    color: #000 !important;
}

.btn-secondary {
    background-color: var(--secondary) !important;
    color: #000 !important;
    border: none !important;
}

/* 5. TOPBAR E FOOTER */
#topbar, #footer {
    background: var(--bg-panel);
    border-bottom: 2px solid var(--primary);
}

/* Inversione per la topbar: il bordo ciano in alto */
#topbar {
    border-bottom: none;
    border-top: 3px solid var(--secondary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}