:root {
    --bg-color: #E7ECEF;
    --text-color: #274C77;
    --primary-color: #274C77;
    --accent-color: #6096BA;
    --card-bg: #ffffff;
    --border-radius: 12px;
    --success: #6096BA;
    --alert: #D64933;
    --light-border: #A3CEF1;
}

body.dark-mode {
    --bg-color: #0b1219;
    --text-color: #E7ECEF;
    --primary-color: #A3CEF1;
    --accent-color: #6096BA;
    --card-bg: #1a2a3a;
    --light-border: rgba(163, 206, 241, 0.15);
}

body.dark-mode header {
    background-color: #0d1b2a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .report-container {
    background: var(--card-bg);
    color: var(--text-color);
}

body.dark-mode .markdown-body h1,
body.dark-mode .markdown-body h2,
body.dark-mode .markdown-body h3 {
    color: var(--primary-color);
}

body.dark-mode .info-pill {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.8rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(39, 76, 119, 0.2);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 800;
}

header p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.info-pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

section {
    margin-bottom: 1rem;
}

h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.8rem;
    box-shadow: 0 4px 12px rgba(39, 76, 119, 0.5);
    border: 1px solid var(--light-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(39, 76, 119, 0.12);
}

.latest-activity-badge {
    background: rgba(39, 76, 119, 0.05);
    border: 1px solid var(--accent-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

body.dark-mode .latest-activity-badge {
    background: rgba(163, 206, 241, 0.1);
    color: var(--primary-color);
    border-color: rgba(163, 206, 241, 0.3);
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card li {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.card li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nickname {
    font-weight: 700;
    flex-grow: 1;
    font-size: 1.1rem;
}

.commit-hash {
    font-size: 0.85em;
    color: var(--accent-color);
    width: 100%;
    opacity: 0.8;
}

/* Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-badge.success {
    background-color: var(--success);
}

.status-badge.alert {
    background-color: var(--alert);
}

.status-icon.success {
    color: var(--success);
    font-size: 1.6em;
    font-weight: bold;
    display: flex;
    align-items: center;
}


/* Reports UI */
.week-block {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(39, 76, 119, 0.05);
    border: 1px solid var(--light-border);
}

.report-card {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: #0b1a2c;
    /* Tady je hlavní tmavá barva pro celou kartu */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.report-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(39, 76, 119, 0.15);
    border-color: var(--accent-color);
    background-color: #f8fbff;
}

.report-icon {
    font-size: 1.8rem;
    margin-right: 15px;
}

.report-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    color: darkcyan;
}

body.dark-mode .report-card {
    color: #e6f0fa;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(96, 150, 186, 0.3);
}

.btn-primary:hover {
    background-color: #4a7a9a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(96, 150, 186, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-home:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Markdown styling for the report view */
.report-container {
    background: white;
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 4rem;
}

.markdown-body {
    font-size: 16px;
}

.markdown-body h1 {
    border-bottom: 1px solid var(--light-border);
    padding-bottom: 0.3em;
    margin-top: 0;
}

.markdown-body h2 {
    margin-top: 2em;
}

.markdown-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5em 0;
}

.markdown-body table th,
.markdown-body table td {
    border: 1px solid var(--light-border);
    padding: 8px 12px;
    text-align: left;
}

.markdown-body table th {
    background: #f8fbff;
}

.markdown-body pre {
    background: #282c34;
    color: #abb2bf;
    padding: 16px;
    border-radius: var(--border-radius);
    overflow-x: auto;
}

body.dark-mode .markdown-body pre {
    background: #0d1117;
    border: 1px solid var(--light-border);
}

body.dark-mode .markdown-body table th {
    background: #203a5a;
    color: var(--primary-color);
}

.markdown-body code {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.markdown-body pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

.markdown-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 0 1em;
    color: #555;
    margin: 0;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Expandable Philosophy Section */
.philosophy {
    margin-bottom: 1rem;
}

.philosophy details {
    background: var(--card-bg);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.philosophy summary {
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none;
    /* schová výchozí šipku v některých prohlížečích */
    position: relative;
    padding-left: 1.5rem;
}

.philosophy summary::-webkit-details-marker {
    display: none;
}

.philosophy summary::before {
    content: "►";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--accent-color);
    transition: transform 0.2s;
}

.philosophy details[open] summary::before {
    transform: translateY(-50%) rotate(90deg);
}

.philosophy-content {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--light-border);
    color: #444;
}

body.dark-mode .philosophy-content {
    color: var(--text-color);
}

.philosophy-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.philosophy-content li {
    margin-bottom: 0.5rem;
}

/* Pulsing Experiment Box */
@keyframes gentle-pulse-bg {
    0% {
        background-color: var(--card-bg);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    50% {
        background-color: rgba(96, 150, 186, 0.15);
        box-shadow: 0 4px 15px rgba(96, 150, 186, 0.3);
    }

    100% {
        background-color: var(--card-bg);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

@keyframes gentle-pulse-bg-dark {
    0% {
        background-color: var(--card-bg);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    50% {
        background-color: rgba(96, 150, 186, 0.45);
        box-shadow: 0 4px 20px rgba(163, 206, 241, 0.25);
    }

    100% {
        background-color: var(--card-bg);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}

.experiment-box {
    animation: gentle-pulse-bg 2.5s infinite ease-in-out;
    transition: background-color 1s ease, box-shadow 1s ease;
}

body.dark-mode .experiment-box {
    animation: gentle-pulse-bg-dark 2.5s infinite ease-in-out;
}

.experiment-box:hover {
    animation: none;
    background-color: rgba(96, 150, 186, 0.25);
    box-shadow: 0 4px 12px rgba(96, 150, 186, 0.4);
}

body.dark-mode .experiment-box:hover {
    animation: none;
    background-color: rgba(96, 150, 186, 0.6);
    box-shadow: 0 4px 15px rgba(163, 206, 241, 0.3);
}