html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.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;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ==========================================================
   GENERAL TABLES
   ========================================================== */

.table {
    font-size: 0.85rem;
}

    .table th,
    .table td {
        padding: 0.4rem 0.5rem;
    }

.table-compact {
    font-size: 0.85rem;
}

    .table-compact th,
    .table-compact td {
        padding: 0.4rem 0.5rem;
        vertical-align: middle;
    }

/* ==========================================================
   BUTTONS
   ========================================================== */

.btn {
    font-size: 0.85rem;
}

.btn-compact {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.compact-btn {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}

/* ==========================================================
   COMPACT LAYOUTS
   ========================================================== */

.page-title-compact {
    font-size: 2rem;
}

.compact-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.match-report-container {
    width: 80%;
    margin: 0 auto;
}

.card-compact .card-header {
    padding: 0.5rem 0.75rem;
}

.card-compact .card-body {
    padding: 0.75rem;
}

.form-control-compact,
.form-select-compact {
    font-size: 0.85rem;
    min-height: 36px;
}

/* ==========================================================
   DETAILS VIEW
   ========================================================== */

.details-card .card-header {
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
}

.details-card .card-body {
    padding: 0.75rem;
    font-size: 0.85rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.details-item {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 8px;
    background: #f8f9fa;
}

.details-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.details-value {
    font-weight: 600;
    font-size: 0.85rem;
}

/* ==========================================================
   RULE PAGES
   ========================================================== */

.rule-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

    .rule-content p {
        margin-bottom: 12px;
    }

    .rule-content h3,
    .rule-content h4 {
        color: #c82333;
        border-bottom: 2px solid #dee2e6;
        padding-bottom: 5px;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .rule-content ul {
        padding-left: 25px;
    }

    .rule-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
    }

    .rule-content th,
    .rule-content td {
        border: 1px solid #ddd;
        padding: 8px;
    }

    .rule-content th {
        background: #f5f5f5;
    }

    .rule-content strong {
        color: #212529;
    }

.list-group {
    border-radius: 6px;
    overflow: hidden;
}

.list-group-item {
    padding: 12px 16px;
    font-size: 0.95rem;
}

    .list-group-item strong {
        color: #000;
    }

    .list-group-item:hover {
        background-color: #f8f9fa;
    }

/* ==========================================================
   RESPECT CARDS
   ========================================================== */

.respect-card {
    text-align: center;
}

.respect-card-title {
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.respect-card-value {
    font-size: 1rem;
    line-height: 1.1;
}

/* ==========================================================
   CHECKBOXES
   ========================================================== */

.form-check-input {
    transform: scale(1.2);
    border: 2px solid #000;
}

.form-check {
    margin-bottom: 0;
}

/* ==========================================================
   MATCH REPORT FORM
   ========================================================== */

.match-report-form .card {
    margin-bottom: 0.35rem !important;
    border-radius: 4px;
}

.match-report-form .card-body {
    padding: 0.3rem;
}

.match-report-form .form-label {
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.05rem;
}

.match-report-form .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.1rem;
}

.match-report-form hr {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/* ==========================================================
   SECTION HEADERS
   ========================================================== */

.section-header {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 3px 8px;
    line-height: 1.2;
}

.section-primary {
    background: #0d6efd !important;
    color: white !important;
}

.section-success {
    background: #198754 !important;
    color: white !important;
}

.section-warning {
    background: #ffc107 !important;
    color: #212529 !important;
}

.section-info {
    background: #0dcaf0 !important;
    color: #212529 !important;
}

.section-secondary {
    background: #6c757d !important;
    color: white !important;
}

/* ==========================================================
   MATCH REPORT VISUALS
   ========================================================== */

.home-section {
    border-left: 4px solid #198754;
}
.match-details-section {
    border-left: 5px solid #0d6efd;
}

.away-section {
    border-left: 4px solid #0dcaf0;
}

.score-box {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.15rem;
}

.btn-save-report {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 16px;
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .match-report-container {
        width: 100%;
    }

    .score-box {
        font-size: 1rem;
    }

    .section-header {
        font-size: 0.8rem;
    }

    .btn-save-report {
        width: 100%;
        margin-bottom: 10px;
    }

    .match-report-form .card-body {
        padding: 0.25rem;
    }
}
