:root {
    --brand-yellow: #f8ce28;

    --brand-primary: #3b82f6;
    --brand-primary-hover: #2563eb;

    --brand-bg: #f1f5f9;
    --brand-card: #ffffff;

    --radius-lg: 20px;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.14);
    --transition-fast: 160ms ease;
}

html, body {
    min-height: 100%;
    overflow-x: hidden;
    height: 100%;
}

body {
    min-height: 100vh;
    background-color: #e6edf5; /* fallback = poslední barva gradientu */
    margin: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background:
            linear-gradient(180deg, #f0f4f8 0%, #e6edf5 100%),
            url("data:image/svg+xml,%3Csvg ... subtle dots ...%3C/svg%3E");
    opacity: 0.95;
}

#main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 12px;
    padding-right: 12px;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--brand-yellow);
    transition: width .2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.card {
    background: #fff;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,.65);
}

.card.hoverable:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card.hoverable::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-yellow), #444);
    margin-bottom: 5px;
}

.card-title {
    font-weight: 600;
    letter-spacing: -0.2px;
}

h3 {
    font-weight: 700;
    letter-spacing: -0.3px;
}

.fa {
    transition: transform 0.2s ease, color 0.2s ease;
}

button:hover .fa {
    transform: scale(1.2) rotate(-5deg);
}

/* speciální pro success */
.fa-circle-check {
    animation: pulse-green .7s ease-out 1;
}

@keyframes pulse-green {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.navbar {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: #1e293b;
    position: relative;
}

.navbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,rgb(255 233 26) 0%, rgb(58 58 58) 50%, rgb(255 233 26) 100%);
    opacity: 0.6;
}

.btn {
    border-radius: 18px;
    transition:
            transform var(--transition-fast),
            box-shadow var(--transition-fast),
            background-color var(--transition-fast),
            border-color var(--transition-fast),
            color var(--transition-fast);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .35);
    outline-offset: 3px;
}

.btn-outline-primary,
.btn-outline-danger {
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 8px 8px rgba(13,110,253,0.12);
    font-size: 14px;
}

@media (max-width: 767.98px) {
    h3 {
        font-size: 1.35rem;
    }

    .card-body {
        padding: 1.25rem !important;
    }
}

.card .d-flex.gap-1 .btn {
    font-weight: 650;
}

.card .d-flex.gap-1 .btn:hover {
    box-shadow: 0 8px 18px rgba(15,23,42,.10);
}

.card-attendance-yes {
    background-color: rgba(25, 135, 84, 0.12);
}

.card-attendance-no {
    background-color: rgba(220, 53, 69, 0.12);
}

.card-attendance-maybe {
    background-color: rgba(108, 117, 125, 0.12);
}

/* Větší payment switch na mobilech */
@media (max-width: 576px) {
    .payment-switch-input {
        transform: scale(1.4);
        transform-origin: left center;
        margin-left: 0.4rem;
    }

    .payment-switch {
        padding-right: 0.5rem;
    }
}

/* hlavní tlačítko sekce */
.attendance-toggle {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
    text-align: left;
    padding: .4rem 1rem;
}

/* zvýraznění podle stavu */
.attendance-toggle-success {
    border-color: rgba(25,135,84,.4);
    background-color: #e8f5eb;
}

.attendance-toggle-warning {
    border-color: rgba(255,193,7,.5);
    background-color: #fff8e5;
}

.attendance-toggle-danger {
    border-color: rgba(220,53,69,.4);
    background-color: #fde8ea;
}

.badge {
    letter-spacing: .1px;
    font-weight: 700;
}

/* badge s počtem */
.badge-count {
    font-size: .8rem;
    padding: .15rem .5rem;
    line-height: 1;
    min-width: 1.5rem;
    text-align: center;
    border-radius: 999px;
}

.badge.bg-warning,
.highlight {
    background: var(--brand-yellow);
    color: #000;
}

/* šipka */
.attendance-toggle-icon {
    transition: transform .15s ease-in-out;
}

.attendance-toggle[aria-expanded="true"] .attendance-toggle-icon {
    transform: rotate(180deg);
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35),
    0 4px 12px rgba(0,0,0,.18);
}

.bg-warning-light {
    background-color: #fff3cd !important;
    border: 1px solid #ffecb5;
}

.alert-custom {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.alert-custom .alert-icon {
    font-size: 1.4rem;
    line-height: 1;
    margin-top: 2px;
}

.alert-custom .alert-content strong {
    display: block;
    margin-bottom: 6px;
}

.alert-custom ul {
    margin: 0;
    padding-left: 18px;
}

/* === VARIANTY === */

.alert-danger {
    background-color: #fdecea;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-danger .alert-icon {
    color: #dc3545;
}

.alert-success {
    background-color: #eafaf1;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-success .alert-icon {
    color: #198754;
}

.alert-warning {
    background-color: #fff4e5;
    border-color: #ffda9e;
    color: #664d03;
}

.alert-warning .alert-icon {
    color: #ffc107;
}

.alert-info {
    background-color: #e7f5ff;
    border-color: #b6effb;
    color: #055160;
}

.alert-info .alert-icon {
    color: #0dcaf0;
}

footer.sticky-footer {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);

    border-top: 1px solid rgba(0,0,0,0.05);

    padding-top: 1rem;
    padding-bottom: 1rem;

    margin-top: 4rem;
}

footer.sticky-footer .copyright {
    font-size: 0.85rem;
    color: #6c757d;
}

.custom-breadcrumb {
    --bs-breadcrumb-divider: "›";

    background: transparent;
    border: 0;
    padding: 0.25rem 0;

    font-size: 0.9rem;
}

.custom-breadcrumb .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all .15s ease;
}

.custom-breadcrumb .breadcrumb-item a:hover {
    color: var(--brand-primary-hover);
    border-bottom: 1px solid var(--brand-primary-hover);
}

.custom-breadcrumb .breadcrumb-item.active {
    color: #212529;
    font-weight: 600;
}

.login-body {
    background: radial-gradient(circle at 20% 20%, #fff7cc, transparent 40%),
    radial-gradient(circle at 80% 80%, #e6edf5, transparent 40%),
    linear-gradient(180deg, #f0f4f8, #e6edf5);
}

.login-page {
    min-height: 100vh;
    display: flex;
    width: 100%;
    overflow-x: hidden;
}

/* HERO */
.login-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
}

.login-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(248,206,40,0.15), transparent 60%);
    pointer-events: none;
}

.login-hero,
.login-panel {
    min-height: 100vh;
    flex: 1;
}

.login-hero a {
    text-decoration: none;
    color: white;
}

.login-panel {
    padding: 0;
}

@media (max-width: 991.98px) {
    .login-panel {
        padding: .5rem !important;
    }
}

.hero-content {
    position: relative;
    max-width: 360px;
    padding: 3rem;
}

.hero-content h1 {
    font-weight: 900;
    letter-spacing: -1px;
    font-size: 2.2rem;
}

/* RIGHT */
.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(180deg, #f0f4f8 0%, #e6edf5 100%);
}

.login-card {
    width: 100%;
    max-width: 460px;
    padding: 2.5rem;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

/* INPUT modern */
.form-floating > .form-control {
    border-radius: 12px;
}

.hero-main {
    padding: 80px 16px;
    border-radius: var(--radius-lg);

    background:
            radial-gradient(circle at 20% 30%, rgba(248,206,40,.25), transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(255,255,255,.08), transparent 40%),
            linear-gradient(135deg, #0f172a, #1e293b);

    box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

@media (min-width: 768px) {
    .hero-main {
        padding: 120px 20px;
        border-radius: 28px;
    }
}

.hero-logo {
    width: 80px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}

.hero-subtitle {
    opacity: 0.85;
}

.hero-cta {
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(248,206,40,0.4);
    transition: all .2s ease;
}

.hero-cta:hover {
    transform: translateY(-2px) scale(1.03);
}

.form-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.form-wrapper {
    width: 100%;
    max-width: 720px;
}

.form-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,.7);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, var(--brand-yellow), var(--brand-primary));
}

.form-title {
    font-weight: 800;
    margin-bottom: .25rem;
}

.form-subtitle {
    color: #6c757d;
    font-size: .95rem;
    margin-bottom: 1.5rem;
}

input[type="password"] {
    letter-spacing: 0.15em;
}

.form-section {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.form-section-title {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6c757d;
    margin-bottom: 1rem;
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: .65rem .9rem;
    border: 1px solid #e5e7eb;
    transition: all .15s ease;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 4px rgba(59,130,246,.15);
    border-color: var(--brand-primary);
}

.btn-google {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;

    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #d0d5dd;
    transform: translateY(-1px);
}

.btn-google svg {
    display: block;
}

.past-events {
    margin-bottom: 2rem;
}

.past-events .card {
    opacity: .75;
}

.past-events .card::before {
    background: linear-gradient(
            90deg,
            #adb5bd,
            #6c757d
    );
}

.past-events .badge {
    opacity: .8;
}

.event-mobile-tabs .nav-pills .nav-link {
    color: #adb5bd;
    background: transparent;
}

.event-mobile-tabs .nav-pills .nav-link.active {
    color: #495057;
    background: transparent;
}

.filter-buttons-inner .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    height: 48px;
}

@media (min-width: 768px) {
    .filter-buttons-inner {
        display: flex !important;
        gap: .5rem;
    }
}

.btn-google {
    padding: 0.65rem 1rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

/* desktop větší */
@media (min-width: 768px) {
    .btn-google {
        padding: 0.9rem 1.2rem;
        font-size: 1.05rem;
    }
}

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

.bulk-mobile-row {
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15,23,42,.10);
    transition: all .18s ease;
}

.bulk-mobile-row:hover,
.bulk-mobile-row:active {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15,23,42,.15);
}

.bulk-mobile-row.is-selected {
    border: 2px solid var(--brand-primary);
    background: #eef5ff;
    box-shadow:
            0 0 0 4px rgba(59,130,246,.12),
            0 16px 34px rgba(59,130,246,.18);
}

.bulk-mobile-row {
    position: relative;
    overflow: hidden;
}

.bulk-mobile-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #dc3545;
}

.bulk-mobile-row.is-selected::before {
    background: var(--brand-primary);
}

.bulk-mobile-row .card-body {
    padding: 1rem 1rem;
}

.card-cancelled {
    opacity: 0.6;
    border: 2px solid #dc3545;
    background-color: #f8d7da;
}

.text-truncate-250{
    max-width:250px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}