html {
  font-size: 14px;
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(13, 110, 253, 0.05);
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.card-header.bg-primary {
    background-color: #0d6efd !important;
}

label.fw-semibold {
    font-weight: 600;
}

.match-time {
    display: block;
    font-size: .82rem;
    color: #2f2f2f;
    line-height: 1.1;
    font-weight: 500;
    margin-top: 2px;
}

.admin-matches-table .match-date-col {
    width: 108px;
    min-width: 108px;
    white-space: nowrap;
}

.mecz-turniej {
    display: inline-block;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #5f6368;
    font-size: .72rem;
    line-height: 1.05;
    margin-top: 2px;
}

.compact-matches-table {
    width: 100%;
    font-size: .92rem;
}

.compact-matches-table th,
.compact-matches-table td {
    padding: .38rem .42rem;
}

.compact-matches-table td:nth-child(1) {
    width: 112px;
    min-width: 112px;
}

.admin-matches-table .clock-col {
    width: 48px;
    min-width: 48px;
    white-space: nowrap;
}

.admin-matches-table {
    width: 100%;
    table-layout: fixed;
}

.admin-matches-table td,
.admin-matches-table th {
    font-size: 0.84rem;
    padding: .22rem .22rem;
}

.admin-matches-table .btn {
    padding: .15rem .28rem;
}

.admin-matches-table th:last-child,
.admin-matches-table td:last-child {
    min-width: 88px;
    white-space: nowrap;
}

.matches-wide-admin {
    width: calc(100vw - 8px);
    max-width: 2200px;
}

.admin-matches-table td.team-col {
    max-width: 92px;
}

.admin-matches-table .team-cell-text {
    max-width: 86px;
}

.admin-matches-table th:first-child,
.admin-matches-table td:first-child {
    width: 80px;
    min-width: 80px;
}

.admin-matches-table .mecz-turniej {
    max-width: 74px;
    font-size: .66rem;
}

.admin-matches-table .mecz-number {
    max-width: 72px;
    font-size: .76rem;
}

.table-responsive {
    border-radius: 10px;
}

.matches-wide {
    width: calc(100vw - 28px);
    max-width: 1860px;
    margin-left: 50%;
    transform: translateX(-50%);
}

.matches-wide > .table {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .matches-wide {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        transform: none;
    }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-image: url('/tlo1.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: Arial, sans-serif;
}
.custom-navbar {
    background-color: #e2e2e2;
    backdrop-filter: blur(2px);
    position: relative;
    z-index: 1030;
}

    .custom-navbar .nav-link,
    .custom-navbar .navbar-brand,
    .custom-navbar .navbar-text {
        color: #2f2f2f !important;
        font-weight: 500;
    }

        .custom-navbar .nav-link:hover,
        .custom-navbar .navbar-brand:hover {
            color: #000 !important;
            text-decoration: underline;
        }

    .custom-navbar .navbar-toggler {
        border-color: #888;
    }

    .custom-navbar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(47,47,47, 0.7)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }
.thead-softgray th {
    background-color: #e2e2e2;
    color: #2f2f2f;
    font-weight: 600;
    border-bottom: 2px solid #ccc;
}

table {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    overflow: hidden;
}

h2 {
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card-header {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    font-weight: 600;
}

.form-group,
.mb-3 {
    margin-bottom: .9rem;
}

.table th,
.table td {
    vertical-align: middle;
}

.dropdown-menu {
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.dropdown-item {
    border-radius: 6px;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

.panel-card {
    background-color: rgba(255,255,255,0.96);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    padding: 1rem;
}
.custom-btn {
    width: 80px;
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: 6px;
    text-align: center;
}


.btn-delete {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

    .btn-delete:hover {
        background-color: #f1c4c9;
        color: #721c24;
    }

.btn-outline-danger-soft {
    background-color: transparent;
    color: #c0392b;
    border: 1px solid rgba(192, 57, 43, 0.45);
}

.btn-outline-danger-soft:hover {
    background-color: transparent;
    color: #a93226;
    border-color: rgba(169, 50, 38, 0.7);
}

.mecz-number {
    font-weight: 600;
    font-family: monospace;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 1px 5px;
    border-radius: 4px;
    display: inline-block;
    max-width: 92px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .82rem;
    line-height: 1.1;
}

.date-header td {
    background-color: #f7f7f7;
    font-weight: 700;
    padding: 8px 12px;
    border-top: 2px solid #ddd;
}

.toggle-turniej i {
    font-size: 0.9rem;
    color: #0d6efd;
}

/* when expanded, slightly highlight group and indent children */
.turniej-expanded tr:nth-child(n+2) td {
    background-color: rgba(13,110,253,0.04);
}

.turniej-expanded tr:nth-child(n+2) td:first-child {
    padding-left: 18px;
}

.table-left {
    margin-left: 8px;
}

/* ensure header breaks display compactly */
.table-left th {
    white-space: normal;
    text-align: center !important;
}

/* Team column limiting */
.table-left td.team-col {
    max-width: 220px; /* adjust as needed */
    padding-left: 8px;
    padding-right: 8px;
}

.table-left .team-cell-text {
    display: inline-block;
    max-width: 200px;
    white-space: normal; /* allow wrapping */
    overflow-wrap: anywhere; /* break long words */
    word-break: break-word;
    vertical-align: middle;
}

.ref-header {
    display: inline-block;
    text-align: center;
    line-height: 1.1;
}

.ref-header br { display: block; }
.ref-header { white-space: normal; }

.sedzia-left {
    text-align: left !important;
    padding-left: 8px;
}

.sedzia-left .name-line {
    display: block;
}

.stats-sep-right {
    border-right: 3px solid #b5b5b5 !important;
}

@media (max-width: 768px) {
    .table-left td.team-col,
    .table-left .team-cell-text {
        max-width: 120px;
    }
}

