
/* =========================================
   Tema Dark Mode (tema2.css) - Cyberpunk HUD
   ========================================= */
:root.dark-theme {
    --bg-color: #050505;
    --surface: #0f0f13;
    --text-main: #e0e0e0;
    --text-muted: #6c757d;
    --border: #2a0a0a;
    --primary: #ff003c; /* Neon Red */
    --primary-hover: #ff3366;
    --shadow: none;
    --danger: #ff0000;
}

/* Fără margini rotunjite */
:root.dark-theme * {
    border-radius: 0 !important;
}

/* Fundal grid tactic */
:root.dark-theme body {
    font-family: "Consolas", "Courier New", Courier, monospace;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(255, 0, 60, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 60, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    letter-spacing: 0.5px;
}

/* Header decupat asimetric */
:root.dark-theme .header-bar {
    background: rgba(10, 10, 12, 0.95);
    border: none;
    border-bottom: 2px solid var(--primary);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 30px) 100%, 30px 100%, 0 calc(100% - 15px));
    padding-bottom: 25px;
    box-shadow: 0 10px 30px rgba(255, 0, 60, 0.1);
    backdrop-filter: blur(5px);
}

/* Logo glitch */
@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 1px) }
    40% { transform: translate(-1px, -1px) }
    60% { transform: translate(2px, 1px) }
    80% { transform: translate(1px, -1px) }
    100% { transform: translate(0) }
}
:root.dark-theme .header-bar .logo {
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
}
:root.dark-theme .header-bar .logo:hover {
    animation: glitch 0.2s linear infinite;
    color: #fff;
}
:root.dark-theme .header-bar .logo span {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* Carduri și Modaluri cu muchii tăiate */
:root.dark-theme .card,
:root.dark-theme .login-card,
:root.dark-theme .modal-content,
:root.dark-theme .task-details {
    background: rgba(15, 15, 19, 0.9);
    border: none;
    border-left: 3px solid var(--primary);
    border-right: 1px solid var(--border);
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    box-shadow: none;
    padding: 25px;
}

/* Butoane tăiate asimetric */
:root.dark-theme button, 
:root.dark-theme .btn-theme,
:root.dark-theme .btn-logout {
    background: rgba(255, 0, 60, 0.1);
    border: none;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    text-transform: uppercase;
    font-weight: bold;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: all 0.2s ease-out;
    letter-spacing: 1px;
}
:root.dark-theme button:hover, 
:root.dark-theme .btn-theme:hover,
:root.dark-theme .btn-logout:hover {
    background: var(--primary);
    color: #000;
    padding-left: 25px;
    border-bottom-color: #fff;
}

/* Input-uri tăiate */
:root.dark-theme input, 
:root.dark-theme select, 
:root.dark-theme textarea {
    background: rgba(5, 5, 5, 0.8);
    border: none;
    border-left: 2px solid var(--border);
    color: var(--primary);
    font-family: inherit;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: all 0.3s;
}
:root.dark-theme input:focus, 
:root.dark-theme select:focus, 
:root.dark-theme textarea:focus {
    border-left-color: var(--primary);
    background: rgba(255, 0, 60, 0.1);
    outline: none;
    box-shadow: none;
}

/* Task Items & Liste - Efect Slide Hover */
:root.dark-theme .task-item,
:root.dark-theme .kanban-card,
:root.dark-theme .eisenhower-card,
:root.dark-theme .tree-card {
    background: rgba(20, 20, 25, 0.9);
    border: none;
    border-left: 2px solid var(--border);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: transform 0.2s ease-out, background 0.2s, border-color 0.2s;
    margin-bottom: 12px;
}
:root.dark-theme .task-item:hover,
:root.dark-theme .kanban-card:hover,
:root.dark-theme .eisenhower-card:hover,
:root.dark-theme .tree-card:hover {
    background: rgba(255, 0, 60, 0.15);
    border-left-color: var(--primary);
    transform: translateX(8px) scale(1.01);
    box-shadow: none;
}

/* Kanban & Eisenhower Headers */
:root.dark-theme .kanban-column,
:root.dark-theme .eisenhower-quadrant {
    background: rgba(10, 10, 12, 0.6);
    border: none;
    border-top: 2px solid var(--border);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
:root.dark-theme .e-hdr {
    background: rgba(255, 0, 60, 0.05);
    border: none;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
:root.dark-theme .eisenhower-matrix {
    border: none;
    background: transparent;
}

/* Checkbox brutal cu X aprins */
:root.dark-theme input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 18px; height: 18px;
    border: 2px solid var(--primary) !important;
    background: rgba(255, 0, 60, 0.1);
    cursor: pointer; position: relative;
    clip-path: none;
}
:root.dark-theme input[type="checkbox"]:checked::after {
    content: 'X'; color: var(--primary);
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 16px; font-weight: bold; text-shadow: 0 0 5px var(--primary);
}

/* Calendar icon neon red */
:root.dark-theme input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5) sepia(1) saturate(10) hue-rotate(320deg);
    cursor: pointer;
    background: rgba(255, 0, 60, 0.15);
    padding: 4px;
    transition: all 0.2s ease-out;
}
:root.dark-theme input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background: rgba(255, 0, 60, 0.4);
    filter: invert(0.5) sepia(1) saturate(15) hue-rotate(320deg) brightness(1.2);
}

/* Link-uri Cyber */
:root.dark-theme a {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
    transition: all 0.2s;
}
:root.dark-theme a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
    border-bottom-style: solid;
}

/* Scrollbar HUD */
:root.dark-theme ::-webkit-scrollbar { width: 8px; height: 8px; }
:root.dark-theme ::-webkit-scrollbar-track { background: #050505; border-left: 1px solid var(--border); }
:root.dark-theme ::-webkit-scrollbar-thumb { background: var(--border); }
:root.dark-theme ::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Suprascriere badge-uri de etichete colorate - le facem brutale */
:root.dark-theme span[style*="background: linear-gradient"] {
    background: rgba(0,0,0,0.8) !important;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    text-shadow: 0 0 5px rgba(255,0,60,0.5) !important;
    box-shadow: none !important;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

/* Eliminare completă Emoji pentru imersiune Cyberpunk */
:root.dark-theme .emoji {
    display: none !important;
}