@font-face {
    font-family: 'BubbleBobble';
    src: url('/css/BubbleBobble.otf') format('opentype');
}

/* === Layout z lewym sidebarem === */

body {
    min-height: 100vh;
    background: #f5f7f9;
}

/* Sidebar */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: linear-gradient(170deg, #1e8c24 0%, #0f4f0c 100%);
    border-right: none;
    box-shadow: 2px 0 16px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sidebar content (Vue-rendered) */
.sidebar-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    flex: 1;
}

/* Brand */
.sidebar-brand {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-name {
    font-family: 'BubbleBobble';
    font-size: 26px;
    font-weight: 200;
    line-height: 1;
}

.brand-link:hover {
    color: rgba(255,255,255,0.85);
}

.brand-icon {
    color: rgba(255,255,255,0.85);
    font-size: 1.3rem;
}

.brand-logo-svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.9);
}

.brand-link .brand-logo-svg {
    color: rgba(255,255,255,0.9);
}

.mobile-brand .brand-logo-svg {
    width: 30px;
    height: 30px;
    color: #5ca565;
}

.mobile-brand:hover .brand-logo-svg {
    color: #5ca565;
}

/* Nav items */
.sidebar-nav {
    padding: 8px 0;
    flex-shrink: 0;
}

.sn-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    user-select: none;
}

.sn-item:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
}

.sn-item:hover .sn-icon {
    color: #fff;
}

.sn-icon {
    width: 18px;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.sn-label {
    flex: 1;
}

.sn-chevron {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    transition: color 0.15s;
}

.sn-expandable.open .sn-chevron {
    color: rgba(255,255,255,0.85);
}

/* Submenu */
.sn-submenu {
    background: rgba(0,0,0,0.15);
    border-left: 2px solid rgba(255,255,255,0.2);
    margin: 0 12px 4px 20px;
    border-radius: 0 4px 4px 0;
}

.sn-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s, background 0.15s;
    border-radius: 4px;
}

.sn-subitem:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.sn-subitem .sn-icon {
    width: 14px;
    font-size: 0.8rem;
}

.sn-group-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.sn-group-item {
    min-width: 0;
}

.sn-submenu-sep {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 4px 8px;
}

/* Spacer */
.sidebar-spacer {
    flex: 1;
}

/* Dolna sekcja */
.sidebar-bottom {
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.lang-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 20px 10px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px;
    border-radius: 3px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.lang-btn:hover {
    opacity: 1;
}

/* Główna zawartość */
.app-main {
    margin-left: 220px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.body-content {
    flex: 1;
    padding: 20px 24px;
}

/* Regulamin, polityka prywatności, RODO – pełna szerokość obszaru (bez zwężania do karty) */
.page-legal-page {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}
.page-legal-page .page-terms-card {
    width: 100%;
    max-width: none;
    margin: 0;
    /* bez „pudełka” – tylko treść na całą szerokość */
    box-shadow: none;
    border: none;
    background: transparent;
}

/* Footer — pierwszy rząd: poprzednie kolory (białe na tle wg layoutu) */
.app-footer {
    padding: 10px 24px;
    background: rgba(var(--bs-light-rgb), 1);
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
    z-index: 1;
}

.app-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding-left: 20px;
}

.app-footer a:hover {
    color: #fff;
}

/* Blok NIP/adres/tel. — ten sam styl co reszta stopki (biały tekst) */
.app-footer .app-footer-contact {
    width: 100%;
    flex-basis: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-style: normal;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* Mobile topbar */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #fff;
    border-bottom: 1px solid #e8ecef;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    z-index: 999;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #5a5a6a;
    padding: 6px;
}

.mobile-brand {
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 1rem;
}

.mobile-brand i {
    color: #5ca565;
}

.mobile-brand:hover {
    color: #5ca565;
    text-decoration: none;
}

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* Responsive – mobile */
@media (max-width: 991px) {
    .app-sidebar {
        transform: translateX(-220px);
        transition: transform 0.25s ease;
    }

    .app-sidebar.mobile-open {
        transform: translateX(0);
        z-index: 1001;
    }

    .app-main {
        margin-left: 0;
        padding-top: 52px;
    }

    .mobile-topbar {
        display: flex;
    }
}

/* Zachowane style navbara (Bootstrap tabs itp.) */
.navbar {
    font-weight: 700;
    color: white;
}

.navbar-light .navbar-brand {
    color: white;
}

.navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .show > .nav-link {
    color: rgb(255,255,255);
}

.btn-navigate {
    margin-left: 3px;
    margin-right: 3px;
}

.nav-tabs {
    font-family: 'BubbleBobble';
    font-size: 25px;
    color: green;
    margin-bottom: 10px;
}

    .nav-tabs .nav-link.active {
        color: #5ca565;
    }

.nav-link {
    color: #8d8a8a;
}

.background-image-parent {
    height: 100vh;
    width: 100%;
    left: 0;
    overflow: hidden;
    position: absolute;
}

.background-image {
    max-width: 100%;
    bottom: 0px;
    position: absolute;
}

.owngoal {
    background-color: #ffcece;
}

.match-quick-show {
    margin-top: 4px;
    margin-bottom: 7px;
    font-size: 20px;
    color: white;
    transition: 1s;
    text-decoration:none;
}

.match-quick-show:hover {
    color: gold;
}

.match-div{
    margin-top:4px;
    margin-bottom:7px;
    font-size:25px;
}
.a-match-div {
    color: darkslategray;
    text-decoration: darkslategray underline dotted;
    transition: 1s;
}

.a-match-div:hover {
    color: gold;
}

.score-font {
    font-size: 35px;
    font-family: 'BubbleBobble';
}

.top-distance{
    margin-top:10px;
}

.group-player {
    font-size: 38px;
    float: left;
    color: green;
    margin-bottom: 8px;
    margin-top: -5px;
    margin-right: 4px;
}

.a-group-name {
    text-decoration: underline dotted;
    transition: 1s;
}

.a-group-name:hover {
    color: gold;
}

.section-title-h {
    font-family: 'BubbleBobble';
    font-size: 45px;
    color: green;
}

.sub-h {
    font-family: 'BubbleBobble';
    font-size: 24px;
    color: green;
}

.margin-badge {
    margin-top: 3px;
}

.badge {
    padding: 10px;
}

.bg-success {
    padding: 10px;
    background-image: linear-gradient(to right,#146011, #4d9f1a);
}

.bg-warning {
    padding: 10px;
    background-image: linear-gradient(to right,#e3cd48, #4d9f1a);
}

#loading-header {
    background-color: rgba(var(--bs-light-rgb),1);
    left: 220px;
    right: 0;
    height: 4px;
    z-index: 5;
    position: fixed;
    animation-name: loading-header-animation;
    animation-duration: 1.5s;
}

#loading-body {
    background-color: rgba(255,255,255,1);
    left: 220px;
    right: 0;
    height: 100vh;
    z-index: 5;
    position: fixed;
    animation-name: loading-body-animation;
    animation-duration: 1.5s;
}

@media (max-width: 991px) {
    #loading-header {
        left: 0;
    }
    #loading-body {
        left: 0;
    }
}


@keyframes loading-body-animation {
    from {
        background-color: rgba(255,255,255,1);
    }

    to {
        background-color: rgba(255,255,255,0);
    }
}

@keyframes loading-header-animation {
    from {
        background-color: rgba(var(--bs-light-rgb),1);
    }

    to {
        background-color: rgba(var(--bs-light-rgb),0);
    }
}

.visible {
    animation-name: div-show;
    animation-duration: 1s;
}

.my-hidden {
    animation-name: div-hide;
    animation-duration: 0.5s;
}

.hidden{
    display:none;
}

@keyframes div-show {
    0% {
        opacity:0;
    }

    100% {
        opacity: 1;
    }
}


@keyframes div-hide {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}


.navbar-brand {
    font-family: 'BubbleBobble';
    font-size: 47px;
    font-weight: 200;
    max-height: 40px;
    margin-top: -42px;
}

.btn-success {
    background-color: #146011;
    border-color: #146011;
}

/* === Przyciski główne (wspólna baza) === */
.btn-round-success,
.btn-round-danger,
.btn-round-cancel,
.btn-round-primary,
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    border-width: 1px;
    border-style: solid;
    transition: filter 0.15s ease;
    margin-bottom: 5px;
    cursor: pointer;
    text-decoration: none;
}

.btn-round-success:not(:disabled):hover,
.btn-round-danger:not(:disabled):hover,
.btn-round-cancel:not(:disabled):hover,
.btn-submit:not(:disabled):hover {
    filter: brightness(0.88);
    color: white;
}

.btn-round-success,
.btn-submit {
    background: linear-gradient(135deg, #146011, #1e8a18);
    border-color: #146011;
    color: white;
}

.btn-round-danger {
    background: linear-gradient(135deg, #b02030, #dc3545);
    border-color: #b02030;
    color: white;
}

.btn-round-cancel {
    background: linear-gradient(135deg, #545b62, #6c757d);
    border-color: #545b62;
    color: white;
}

.btn-round-primary {
    background: linear-gradient(135deg, #f0faf0, #ffffff);
    border-color: rgb(var(--bs-success-rgb));
    color: rgb(var(--bs-success-rgb));
}

.btn-round-primary:not(:disabled):hover {
    background: linear-gradient(135deg, #146011, #1e8a18);
    border-color: #146011;
    color: white;
    filter: none;
}

/* === Przyciski akcji (większe, gradientowe) === */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    color: #fff;
    transition: filter 0.15s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-action:disabled {
    opacity: 0.55;
    color: #fff;
    cursor: not-allowed;
}

.btn-action-purple {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
}

.btn-action-purple:hover:not(:disabled) {
    filter: brightness(0.9);
    color: #fff;
}

.btn-action-teal {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.btn-action-teal:hover:not(:disabled) {
    filter: brightness(0.9);
    color: #fff;
}

.btn-action-green {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.btn-action-green:hover:not(:disabled) {
    filter: brightness(0.9);
    color: #fff;
}

.btn-action-orange {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.btn-action-orange:hover:not(:disabled) {
    filter: brightness(0.9);
    color: #fff;
}



.btn-link {
    padding-left: 3px;
    padding-right: 3px;
}

:root {
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #146011;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #146011;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #146011;
    --bs-dark: #212529;
    --bs-primary-rgb: 33,135,114;
    --bs-secondary-rgb: 108,117,125;
    --bs-success-rgb: 20, 96, 17;
    --bs-info-rgb: 13,202,240;
    --bs-warning-rgb: 255,193,7;
    --bs-danger-rgb: 220,53,69;
    --bs-light-rgb: 20, 96, 17;
    --bs-dark-rgb: 33,37,41;
    --bs-white-rgb: 255,255,255;
    --bs-black-rgb: 0,0,0;
    --bs-body-color-rgb: 33,37,41;
    --bs-body-bg-rgb: 255,255,255;
    --bs-font-sans-serif: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #212529;
    --bs-body-bg: #fff;
}

@media (min-width: 2000px) {
    .background-image {
       width:100%;
    }
}


@media (max-width: 900px) {
    .background-image {
         max-width: none;
        margin-left: -800px;
        bottom: -20%;
        position: absolute;
    }
}

@media (max-width: 500px){
    .match-quick-show {
        font-size: 15px;
    }
}