/* ===== SYSTEM MOTYWÓW ===== */ :root, [data-theme="dark"] { --primary: #4da3ff; --primary-dark: #2b7fd4; --success: #28a745; --success-bg: #1a472a; --warning: #ffc107; --warning-bg: #4a401c; --danger: #dc3545; --danger-bg: #4a1c23; --bg: #0d1117; --surface: #161b22; --surface-alt: #21262d; --border: #30363d; --text: #e6edf3; --text-muted: #8b949e; --text-on-primary: #fff; --svg-bg: #21262d; --svg-text: #c9d1d9; --svg-line: #484f58; --link: #58a6ff; } [data-theme="light"] { --primary: #0969da; --primary-dark: #0550ae; --success: #1a7f37; --success-bg: #dafbe1; --warning: #9a6700; --warning-bg: #fff8c5; --danger: #cf222e; --danger-bg: #ffebe9; --bg: #f6f8fa; --surface: #ffffff; --surface-alt: #f0f3f6; --border: #d0d7de; --text: #1f2328; --text-muted: #656d76; --text-on-primary: #fff; --svg-bg: #f0f3f6; --svg-text: #1f2328; --svg-line: #656d76; --link: #0969da; } /* ===== RESET I BAZOWY UKŁAD ===== */ * { box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.7; color: var(--text); background: var(--bg); max-width: 1020px; margin: 0 auto; padding: 20px; transition: background 0.3s, color 0.3s; } a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; } h1, h2, h3, h4 { color: var(--primary); margin-top: 1.2em; } h1 { font-size: 1.6em; } h2 { font-size: 1.35em; } h3 { font-size: 1.15em; } code { background: var(--surface-alt); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; color: var(--danger); } /* ===== NAGŁÓWEK STRONY ===== */ .page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; } .theme-toggle { background: var(--surface-alt); border: 1px solid var(--border); color: var(--text); padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 14px; transition: 0.2s; white-space: nowrap; } .theme-toggle:hover { border-color: var(--primary); } /* ===== NAWIGACJA (Główne zakładki) ===== */ .nav-tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 0; flex-wrap: wrap; } .nav-tabs button { padding: 10px 18px; cursor: pointer; border: 1px solid transparent; border-bottom: none; background: transparent; color: var(--text-muted); border-radius: 6px 6px 0 0; font-weight: 600; font-size: 14px; transition: 0.2s; position: relative; bottom: -2px; } .nav-tabs button.active { background: var(--surface); color: var(--primary); border-color: var(--border); border-bottom: 2px solid var(--surface); } .nav-tabs button:hover:not(.active) { color: var(--text); background: var(--surface-alt); } /* ===== KONTENERY KART ===== */ .tab-content { display: none; background: var(--surface); padding: 28px; border: 1px solid var(--border); border-top: none; border-radius: 0 0 8px 8px; } .tab-content.active { display: block; animation: fadeIn 0.35s; } @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } /* ===== SUB-TABS ===== */ .sub-tabs { display: flex; gap: 8px; margin: 15px 0 20px; border-bottom: 1px solid var(--border); padding-bottom: 0; flex-wrap: wrap; } .sub-tabs button { padding: 7px 14px; cursor: pointer; border: none; background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 600; transition: 0.2s; border-bottom: 2px solid transparent; position: relative; bottom: -1px; } .sub-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); } .sub-tabs button:hover:not(.active) { color: var(--text); } .sub-tab-content { display: none; } .sub-tab-content.active { display: block; animation: fadeIn 0.25s; } /* ===== DETAILS / ZADANIA ===== */ details { background: var(--surface-alt); padding: 16px 18px; border: 1px solid var(--border); margin-bottom: 12px; border-radius: 6px; border-left: 3px solid var(--primary); } summary { font-weight: 600; cursor: pointer; color: var(--text); font-size: 1em; outline: none; list-style: none; } summary::-webkit-details-marker { display: none; } summary::before { content: '▸ '; color: var(--primary); font-weight: bold; } details[open] summary::before { content: '▾ '; } .answer-content { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); color: var(--text-muted); line-height: 1.8; } .answer-content strong { color: var(--text); } /* ===== PRZYCISK POKAŻ ROZWIĄZANIE ===== */ .solution-hidden { display: none; } .btn-reveal { display: inline-block; margin-top: 10px; padding: 6px 14px; background: var(--primary); color: var(--text-on-primary); border: none; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 600; transition: 0.2s; } .btn-reveal:hover { background: var(--primary-dark); } /* ===== QUIZ ===== */ .quiz-question { margin-bottom: 20px; padding: 18px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-alt); } .quiz-question h3 { margin-top: 0; font-size: 1em; color: var(--text); } .quiz-option { display: block; margin: 8px 0; padding: 10px 14px; border-radius: 5px; cursor: pointer; background: var(--surface); border: 1px solid var(--border); transition: 0.15s; color: var(--text); font-size: 0.95em; } .quiz-option:hover { border-color: var(--primary); } .quiz-option input { margin-right: 12px; transform: scale(1.15); vertical-align: middle; } .correct-answer { background-color: var(--success-bg) !important; border-color: var(--success) !important; } .wrong-answer { background-color: var(--danger-bg) !important; border-color: var(--danger) !important; } .explanation { display: none; margin-top: 12px; font-size: 0.9em; color: var(--text-muted); background: var(--surface); padding: 12px; border-radius: 5px; border-left: 3px solid var(--primary); line-height: 1.7; } /* ===== PRZYCISKI ===== */ .btn { display: inline-block; padding: 10px 20px; background: var(--success); color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; font-weight: 600; margin-top: 15px; margin-right: 8px; transition: 0.2s; } .btn:hover { filter: brightness(1.15); } .btn-secondary { background: var(--primary); } #quiz-result { margin-top: 18px; font-size: 1.1em; font-weight: 600; padding: 14px; border-radius: 6px; display: none; } #quiz-error { color: var(--danger); font-weight: 600; margin-bottom: 12px; } /* ===== INTERAKTYWNY KALKULATOR ===== */ .interactive-box { background: var(--surface-alt); border: 1px solid var(--border); padding: 18px; border-radius: 6px; margin: 16px 0; } .interactive-box label { font-weight: 600; font-size: 0.9em; } .interactive-box input[type="text"], .interactive-box input[type="number"] { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 7px 10px; border-radius: 4px; margin: 4px 6px 4px 4px; font-size: 0.95em; } /* ===== SVG DIAGRAMY ===== */ .svg-container { background: var(--svg-bg); border-radius: 6px; padding: 16px; text-align: center; margin: 14px 0; border: 1px solid var(--border); } .svg-container svg { max-width: 100%; height: auto; } /* ===== CKE BADGE ===== */ .cke-badge { display: inline-block; background: var(--danger); color: white; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.02em; } /* ===== LISTA TESTÓW ===== */ .test-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; } .test-card { padding: 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-alt); cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: space-between; } .test-card:hover { border-color: var(--primary); background: var(--surface); } .test-card .test-name { font-weight: 600; font-size: 0.95em; } .test-card .test-score { font-size: 0.85em; color: var(--text-muted); } .test-card.completed { border-color: var(--success); } .test-card.completed .test-name { color: var(--success); } .test-card.completed .test-score { color: var(--success); } /* ===== TOPOLOGIE (flexbox) ===== */ .topo-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; } .topo-col { flex: 1; min-width: 280px; } /* ===== RESPONSYWNOŚĆ ===== */ @media (max-width: 600px) { body { padding: 10px; } .tab-content { padding: 16px; } .test-grid { grid-template-columns: 1fr; } .nav-tabs button { padding: 8px 12px; font-size: 13px; } }