:root {
    --bg-primary: #F3F4F6;
    --bg-secondary: #FFFFFF;
    --accent: #C53030;
    --text-primary: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > .container {
    flex: 1;
    padding-bottom: 3rem;
}

.container {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
}
/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.navbar-left {
    flex-shrink: 0;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-links a {
    margin-right: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.navbar-links a:visited {
    color: var(--text-primary);
}
.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-links a:hover {
    color: var(--accent);
}

.navbar-logo {
    height: 38px;
    width: auto;
}

.navbar-brand {
    font-weight: bold;
    margin-right: 20px;
}

.user-menu {
    position: relative;
    go
}
.navbar a:hover {
    color: var(--accent);
}
.navbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Anoounment in navbar */
.announcement-bar {
    width: 100%;
}

.announcement {
    text-align: center;
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* typy */

.announcement.info {
    background: #e6f0ff;
    color: #1e3a8a;
}

.announcement.warning {
    background: #fff4e5;
    color: #92400e;
}

.announcement.maintenance {
    background: #fdecea;
    color: #991b1b;
}

/* User dropdown */
.user-dropdown {
    position: absolute;
    right: 0;
    top: 45px;

    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;

    min-width: 180px;
    padding: 8px 0;

    box-shadow: 0 8px 20px rgba(0,0,0,0.08);

    display: none;
    z-index: 1000;
}

.user-dropdown a {
    display: block;
    padding: 8px 14px;
    color: var(--text-primary);
}

.user-dropdown a:visited {
    color: var(--text-primary);
}

.dropdown-user {
    padding: 8px 14px;
    font-weight: bold;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 5px;
}
/* Navbar end */

/* Globální odkazy */
a {
    color: var(--text-primary);
    text-decoration: none;
}

a:visited {
    color: var(--text-primary);
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.hero h1 {
    color: #ffffff;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero p {
    color: rgba(255,255,255,0.72);
    margin-bottom: 0;
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-cta-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 1.75rem 2rem;
    min-width: 260px;
    max-width: 300px;
}

.hero-cta-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.hero-cta-btn {
    text-align: center;
    display: block;
}

.hero-cta-divider {
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(197, 48, 48, 0.22);
    color: #ff9999;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    line-height: 1.7;
}


.screenshot-section {
    padding: 0 0 4rem;
}

.carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    background: #000;
    max-width: 1100px;
    margin: 0 auto;
}

.carousel-track {
    position: relative;
    width: 100%;
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}

.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot.active {
    background: #fff;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 0.5rem;
    transition: 0.2s ease;
}
.btn-primary {
    background-color: #c43d3d;
    border: 1px solid #c43d3d;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:visited {
    color: #fff;
}

.btn-primary:hover {
    background-color: #a83232;
    border-color: #a83232;
    transform: translateY(-1px);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: white;
}

.btn-secondary:visited {
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-danger {
    border: 1px solid #e53e3e;
    color: #e53e3e;
    background: white;
}

.btn-danger:visited {
    color: #e53e3e;
}

.btn-danger:hover {
    background: #e53e3e;
    color: white;
}

.section {
    padding: 4rem 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;

    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);

    transition: 0.2s ease;
}

.card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.card h3 {
    margin-bottom: 0.8rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header h3 {
    margin: 0;
}
.card a {
    text-decoration: none;
    color: inherit;
}

.footer {
    background: #F9FAFB;
    padding: 2rem 0;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 28px;
    width: auto;
    opacity: 0.8;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-links a:visited {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.center-box {
    text-align: center;
    padding: 6rem 1rem;
}

.status-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
/* ── Demo banner ─────────────────────────────────────────────────────────── */
.demo-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}
.demo-banner-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.demo-banner-text {
    flex: 1;
    min-width: 260px;
}
.demo-banner-text h2 {
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
}
.demo-banner-text p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0;
}
.demo-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    min-width: 280px;
}
.demo-cred-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.demo-cred-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 60px;
    flex-shrink: 0;
}
.demo-cred-value {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.9rem;
    font-family: monospace;
    user-select: all;
}
.demo-try-btn {
    margin-top: 0.5rem;
    align-self: flex-start;
}

/* ── Highlight section ───────────────────────────────────────────────────── */
.highlight-section {
    background: #FFFFFF;
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.highlight-section h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.highlight-text {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}


/* ===========================
   Tables
=========================== */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.table thead {
    background-color: #f5f7fa;
    text-align: left;
}

.table th {
    padding: 12px 14px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
}

.table td {
    padding: 12px 14px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
}

.table tbody tr:hover {
    background-color: #f9fbff;
}

/* Date link */
.table td a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.table td a:visited {
    color: var(--text-primary);
}

.table td a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Align numeric columns */
.table td.numeric {
    text-align: right;
}

.table tbody tr:nth-child(even) {
    background-color: #fafafa;
}
tfoot {
    font-weight: bold;
    background: #f8f8f8;
}
.stock-warning {
    background: rgba(249, 168, 37, 0.12);
    border-radius: 6px;
    padding: 4px 8px;
}

/* low: orange — approaching threshold */
.stock-low {
    background-color: #fff6e0;
    color: #b36b00;
}

/* critical: light red — below critical threshold */
.stock-critical {
    background-color: #fff0f0;
    color: #c0392b;
    font-weight: 600;
}

/* negative: bright red — below zero */
.stock-negative {
    background-color: #ffe6e6;
    color: #a30000;
    font-weight: 700;
}

/* ── Statistics ──────────────────────────────────────────────────────────── */
.stats-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.stats-tab {
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.stats-tab:visited {
    color: var(--text-muted);
}

.stats-tab:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.stats-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.stats-summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 0;
}

#weekly-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4b5563;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
#weekly-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4b5563;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.stats-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.stats-card-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.stats-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.caliber-row:hover {
    background: var(--bg-secondary);
}

.caliber-row.stats-row-active {
    background: rgba(196, 61, 61, 0.08);
    outline: 1px solid rgba(196, 61, 61, 0.3);
}

.stats-filter-label {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent);
}

.stats-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .stats-charts-row {
        grid-template-columns: 1fr;
    }
}

/* ── Ammo actions ─────────────────────────────────────────────────────────── */
.ammo-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.ammo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-secondary:visited {
    color: #333;
}

.btn-secondary:hover {
    background: #d5d5d5;
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.ledger-table th {
    text-align: left;
    padding: 10px;
    background: #f5f7fa;
    font-weight: 600;
}

.ledger-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.ledger-table tr:hover {
    background: #f9fafb;
}

.positive {
    color: #15803d;
    font-weight: 600;
}

.negative {
    color: #b91c1c;
    font-weight: 600;
}

.tx-inventory {
    background-color: #fff7ed;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;   /* místo 20px */
    align-items: center;
}

.pagination {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.page-btn {
    padding: 6px 12px;
    border-radius: 6px;
    background: #f3f4f6;
    text-decoration: none;
    color: #111827;
    font-size: 14px;
}

.page-btn:hover {
    background: #e5e7eb;
}

.page-info {
    padding: 6px 10px;
    font-size: 14px;
    color: #6b7280;
}
.inventory-input {
    width: 100px;
    padding: 6px;
}

.form-actions {
    margin-top: 20px;
}

.form-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-small {
    padding: 4px 10px;
    font-size: 0.85rem;
}
.btn-neutral {
    background-color: #6c757d;
    border: 1px solid #6c757d;
    color: white;
}

.btn-neutral:visited {
    color: white;
}

.btn-neutral:hover {
    background-color: #5a6268;
}

.link-danger {
    color: #c43d3d;
    text-decoration: none;
}

.link-danger:visited {
    color: #c43d3d;
}

.link-danger:hover {
    text-decoration: underline;
}
.full-width {
    width: 100%;
}

.fullsize-table {
    width: 100%;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background-color: #f0f4ff;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    background: #f0f0f0;
    color: #444;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
    transition: background 0.15s;
}

.btn-back:hover {
    background: #e0e0e0;
    color: #111;
}

.btn-small {
    padding: 6px 10px;
    font-size: 13px;
}

.table-modern th,
.table-modern td {
    text-align: left;
}

.number-cell {
    text-align: right;
}

.table-modern th {
    font-weight: 600;
}
.table-modern th {
    text-align: left;
    padding: 10px;
    background: #f5f7fa;
    font-weight: 600;
}

.tabs-link {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-link {
    padding: 8px 16px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    border-radius: 6px 6px 0 0;
    transition: 0.2s ease;
}

.tab-link:hover {
    background-color: #f5f5f5;
}

.tab-link.active {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-bottom: 1px solid white;
    color: #c43d3d;
    font-weight: 600;
}

.tab-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.message {
    padding:10px;
    margin-bottom:15px;
    border-radius:4px;
}

.message.success {
    background:#d4edda;
    border:1px solid #c3e6cb;
}
.firearm-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.firearm-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.firearm-table {
    width: 100%;
}

.firearm-table th {
    width: 170px;
    text-align: left;
}

/* tablet */
@media (max-width: 1100px) {
    .firearm-overview-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* mobil */
@media (max-width: 700px) {
    .firearm-overview-grid {
        grid-template-columns: 1fr;
    }
}

/* AUTH LAYOUT */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}
.auth-card {
    width: 440px;
    padding: 35px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header h2 {
    margin: 0;
}

.auth-table td {
    padding: 8px 6px;
}

.auth-table input {
    width: 100%;
    padding: 8px;
}

.auth-actions {
    margin-top: 25px;
    text-align: center;
}

.auth-button {
    width: 100%;
    padding: 10px;
}

.auth-extra {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.auth-extra a {
    color: var(--text-primary);
}

.auth-extra a:visited {
    color: var(--text-primary);
}

.hint-icon {
    margin-left: 6px;
    background: #ddd;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    cursor: help;
}
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.password-rules {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    display: none;
}
.messages {
    margin-bottom: 20px;
}

.alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.alert-error {
    background: #ffe5e5;
    border: 1px solid #ffb3b3;
}

.alert-success {
    background: #e7f7e7;
    border: 1px solid #b5e6b5;
}

.alert-warning {
    background: #fff6e0;
    border: 1px solid #ffe0a3;
}

.auth-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 420px;
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

.profile-grid label {
    display: block;
    font-size: 0.9rem;
    margin-top: 10px;
    color: var(--text-muted);
}

.profile-grid input,
.profile-grid select,
.profile-grid textarea {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: white;
}

.avatar-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
}

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}
.avatar-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.avatar-actions input[type="file"] {
    display: none;
}
.td-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.amount {
    margin-right: 4px;
}

.currency {
    color: var(--text-muted);
    font-size: 0.9em;
}

/* dashboardstats*/
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    text-align: center;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: bold;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.inline-form input {
    width: 200px;
    padding: 6px 10px;
    font-size: 0.9rem;
}

.simple-list {
    list-style: none;
    padding: 0;
}

.simple-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.delete-link {
    color: red;
    text-decoration: none;
}
.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === FORM LAYOUT === */

.form-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

/* field přes celou šířku */
.form-row.full {
    grid-column: span 2;
}

/* každý field */
.form-row {
    display: flex;
    flex-direction: column;
}

/* label */
.form-row label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* input + select */
.form-row input,
.form-row select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    background: #fff;
}

/* focus state */
.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #4f8cff;
    box-shadow: 0 0 0 2px rgba(79,140,255,0.15);
}

/* computed output (live calc) */
#calc-output {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* actions (buttons) */
.form-actions {
    grid-column: span 2;
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* menší secondary button */
.btn-secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:visited {
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #eaeaea;
}

/* === CARD WIDTH TWEAK === */

.card-half {
    max-width: 900px;
}

.card-wide {
    width: 100%;
    max-width: 1100px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    user-select: none;
    max-width: 480px;
}

.checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
}

/* === RESPONSIVE (mobile) === */

@media (max-width: 768px) {
    .form-modern {
        grid-template-columns: 1fr;
    }

    .form-row.full {
        grid-column: span 1;
    }

    .form-actions {
        grid-column: span 1;
    }
}
.sub-card {
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.set-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

input[type="time"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
}

/* textarea přes celou šířku */
.form-row textarea {
    width: 100%;
    min-height: 100px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    resize: vertical;
}
/* session meta grid */
.session-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin-top: 10px;
}

/* notes */
.session-notes {
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* quick set */
.quick-set-form {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.quick-set-form input {
    width: 80px;
    padding: 4px;
}

/* sets */
.sub-card {
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.activity-meta {
    margin: 10px 0;
}

.activity-notes {
    margin-top: 6px;
    padding: 6px;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.activity-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* QUICK SET */
.quick-set-form {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.quick-set-form input {
    width: 70px;
    padding: 4px;
}

.note-input {
    width: 120px;
}

.set-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.set-table th {
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-bottom: 6px;
}

.set-table td {
    padding: 6px 4px;
    border-top: 1px solid var(--border-color);
}

.set-table tr:hover {
    background: var(--bg-secondary);
}

.set-note {
    max-width: 300px;
    word-break: break-word;
}
.quick-set-form {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    align-items: center;
}

.quick-set-form input {
    width: 70px;
}

.note-input-wide {
    flex: 1;
    min-width: 200px;
}
.best-score {
    color: #2e7d32; /* zelená */
    font-weight: bold;
}

.best-time {
    color: #1565c0; /* modrá */
    font-weight: bold;
}
.action-icon {
    text-decoration: none;
    margin-left: 6px;
    opacity: 0.7;
}

.action-icon:hover {
    opacity: 1;
}
.center-container {
    display: flex;
    justify-content: center;
}

.about-card {
    text-align: center;
    max-width: 700px;
}

.about-logo {
    max-width: 220px;
    margin-bottom: 10px;
}

.about-tagline {
    opacity: 0.7;
    margin-bottom: 20px;
}

.about-content {
    text-align: left;
    margin-top: 15px;
}

.about-footer {
    margin-top: 20px;
    opacity: 0.7;
    font-size: 0.9em;
}

.release-notes-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.release-notes-heading {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    font-weight: 600;
}

.release-note {
    border-top: 1px solid #f0f0f0;
    padding: 0.6rem 0;
}

.release-note:first-of-type {
    border-top: none;
}

.release-note-summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    user-select: none;
}

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

.release-version {
    font-weight: 700;
    color: var(--accent);
    min-width: 3.5rem;
}

.release-date {
    font-size: 0.85rem;
    color: #888;
    min-width: 7rem;
}

.release-title {
    font-weight: 500;
}

.release-body {
    margin-top: 0.75rem;
    padding-left: 1rem;
    font-size: 0.95rem;
    color: #444;
    text-align: left;
}

.release-body p {
    margin: 0.4rem 0;
}

.release-body ul {
    margin: 0.25rem 0 0.5rem 1.25rem;
    padding: 0;
}

.release-body li {
    margin-bottom: 0.2rem;
}

.release-body strong {
    color: #222;
}
.center-container {
    display: flex;
    justify-content: center;
}

.form-divider {
    text-align: center;
    margin: 15px 0;
    opacity: 0.6;
}

.card-inner {
    padding: 10px;
    margin-bottom: 10px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
}
