html {
  font-size: 14px;
}

@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;
}

.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;
}

/* =====================================
   Page Headers
===================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
}

/* =====================================
   Buttons
===================================== */

.btn-add {
    background-color: #198754;
    color: white;
    border: none;
}

    .btn-add:hover {
        background-color: #157347;
        color: white;
    }

.btn-edit {
    background-color: #ffc107;
    color: black;
}

    .btn-edit:hover {
        background-color: #ffca2c;
    }

.btn-delete {
    background-color: #dc3545;
    color: white;
}

    .btn-delete:hover {
        background-color: #bb2d3b;
        color: white;
    }

.btn-details {
    background-color: #0dcaf0;
    color: white;
}

    .btn-details:hover {
        background-color: #31d2f2;
        color: white;
    }

/* =====================================
   Tables
===================================== */

.table-header {
    background-color: #1f2937;
    color: white;
}

.table-container {
    margin-top: 15px;
}

/* =====================================
   Dashboard Cards
===================================== */

.dashboard-card {
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

    .dashboard-card .card-body {
        text-align: center;
    }


/* ======================================
   Report cards
====================================== */

.report-card {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .report-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
    }

    .report-card .card-title {
        color: #1f2937;
        font-weight: 600;
    }

    .report-card .card-text {
        color: #4b5563;
        min-height: 48px;
    }

/* =========================================================
   FOOTBALL TEAM MANAGER
   GLOBAL REPORT TABLE STANDARD
   ========================================================= */

.report-card {
    border: 1px solid #d9e3f0;
    border-radius: 0.75rem;
    background-color: #ffffff;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 52, 96, 0.08);
    overflow: hidden;
}

.report-card-header {
    padding: 1rem 1.25rem;
    color: #ffffff;
    background-color: #0f3460;
    border-bottom: 3px solid #198754;
}

    .report-card-header h2,
    .report-card-header h3 {
        margin-bottom: 0;
        color: #ffffff;
    }

.report-table {
    width: 100%;
    margin-bottom: 0;
    vertical-align: middle;
    border-collapse: separate;
    border-spacing: 0;
}

    .report-table thead th {
        padding: 0.85rem 0.75rem;
        color: #ffffff;
        background-color: #0f3460;
        border-color: #284f78;
        font-weight: 600;
        white-space: nowrap;
    }

    .report-table tbody td {
        padding: 0.75rem;
        color: #212529;
        background-color: #ffffff;
        border-color: #dce5ef;
    }

    .report-table tbody tr:nth-child(even) td {
        background-color: #f3f8fc;
    }

    .report-table tbody tr:hover td {
        background-color: #e4f1fb;
    }

    .report-table .report-player-name {
        color: #0f3460;
        font-weight: 600;
    }

    .report-table .report-number {
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    .report-table .report-highlight {
        color: #0f5132;
        background-color: #d1e7dd;
        font-weight: 700;
    }

    .report-table .report-empty-row td {
        padding: 2rem;
        color: #6c757d;
        background-color: #ffffff;
        text-align: center;
    }

.report-filter-panel {
    padding: 1rem;
    margin-bottom: 1.25rem;
    background-color: #f3f8fc;
    border: 1px solid #d9e3f0;
    border-radius: 0.75rem;
}

.report-summary {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #0f3460;
    background-color: #e4f1fb;
    border-left: 4px solid #0f3460;
    border-radius: 0.375rem;
}

.report-status-active {
    color: #ffffff;
    background-color: #198754;
}

.report-status-inactive {
    color: #ffffff;
    background-color: #6c757d;
}

@media (max-width: 767.98px) {
    .report-table {
        font-size: 0.9rem;
    }

        .report-table thead th,
        .report-table tbody td {
            padding: 0.6rem;
        }
}

/* ======================================
   Match result badges
====================================== */

.result-badge {
    display: inline-block;
    min-width: 64px;
    padding: 5px 10px;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
}

.result-win {
    background-color: #198754;
}

.result-draw {
    background-color: #6c757d;
}

.result-loss {
    background-color: #dc3545;
}

/*=============================
   Chart Class
 ============================*/
.report-chart-container {
    height: 300px;
    position: relative;
}


/* ======================================
   Detail Page Collapsible Sections
====================================== */

.details-section {
    margin-bottom: 1rem;
}

.details-section-header:hover {
    background-color: #12406f;
}

.menu-chevron {
    transition: transform 0.2s ease-in-out;
}

button[aria-expanded="true"] .menu-chevron {
    transform: rotate(0deg);
}

button[aria-expanded="false"] .menu-chevron {
    transform: rotate(-90deg);
}


/* =====================================================
   MATCH CENTRE PITCH
   ===================================================== */

.football-pitch {
    position: relative;
    width: 100%;
    min-height: 550px;
    background: #2e7d32;
    border: 3px solid #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

/* Halfway Line */

.pitch-halfway-line {
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    border-left: 2px solid white;
}

/* Centre Circle */

.pitch-centre-circle {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid white;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.pitch-centre-spot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
/* Penalty Areas */

.pitch-penalty-area-left {
    position: absolute;
    left: 0;
    top: 25%;
    width: 120px;
    height: 50%;
    border: 2px solid white;
}

.pitch-penalty-area-right {
    position: absolute;
    right: 0;
    top: 25%;
    width: 120px;
    height: 50%;
    border: 2px solid white;
}

.pitch-penalty-spot-left,
.pitch-penalty-spot-right {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.pitch-penalty-spot-left {
    left: 90px;
}

.pitch-penalty-spot-right {
    right: 90px;
}

.pitch-penalty-arc-left,
.pitch-penalty-arc-right {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid white;
    border-radius: 50%;
    z-index: 1;
}

.pitch-penalty-arc-left {
    left: 84px;
    clip-path: inset(0 0 0 50%);
}

.pitch-penalty-arc-right {
    right: 84px;
    clip-path: inset(0 50% 0 0);
}

.pitch-goal-left,
.pitch-goal-right {
    position: absolute;
    width: 20px;
    height: 90px;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid white;
    z-index: 1;
}

.pitch-goal-left {
    left: 0;
    border-left: none;
}

.pitch-goal-right {
    right: 0;
    border-right: none;
}


/* Player Tiles */
.player-starter {
    border-color: #0d6efd;
    background: #ffffff;
}

.player-yellow-card {
    border-color: #ffc107;
    border-width: 4px;
    background: #fff8db;
    box-shadow: 0 0 10px rgba(220,53,69,.6);
}

.player-red-card {
    border-color: #dc3545;
    border-width: 4px;
    background: #ffe5e5;
    box-shadow: 0 0 10px rgba(220,53,69,.6);
}

.player-substitute {
    border-color: #6c757d;
    background: #f8f9fa;
}

.player-goalscorer {
    box-shadow: 0 0 15px rgba(25,135,84,.8);
}

button.player-tile:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.player-wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
}
.player-tile {
    position:relative;
    width: 90px;
    height: 80px;
    clip-path: polygon( 20% 0%, 35% 12%, 65% 12%, 80% 0%, 100% 25%, 85% 45%, 85% 100%, 15% 100%, 15% 45%, 0% 25% );
    border: 3px solid #0d6efd;
    background: #ffffff;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6px;
}

.player-name {
    font-size: 0.80rem;
    font-weight: bold;
    line-height: 1.1;
}

.player-position {
    font-size: 0.70rem;
    color: #666;
}

.player-stats {
    margin-top: 4px;
    font-size: 0.70rem;
}

.player-stats span {
    margin-right: 2px;
}

/* =====================================================
   POSITION MAPPING
   ===================================================== */

/* Goalkeeper */

.player-gk {
    left: 10%;
    top: 50%;
}

/* Defence */

.player-lb {
    left: 25%;
    top: 25%;
}

.player-lwb {
    left: 30%;
    top: 15%;
}

.player-cb {
    left: 25%;
    top: 50%;
}

.player-rb {
    left: 25%;
    top: 75%;
}

.player-rwb {
    left: 30%;
    top: 85%;
}

/* Defensive Midfield */

.player-cdm {
    left: 40%;
    top: 50%;
}

/* Midfield */

.player-lm {
    left: 50%;
    top: 25%;
}

.player-cm {
    left: 50%;
    top: 50%;
}

.player-rm {
    left: 50%;
    top: 75%;
}

/* Attacking Midfield */

.player-cam {
    left: 65%;
    top: 50%;
}

/* Wingers */

.player-lw {
    left: 75%;
    top: 25%;
}

.player-rw {
    left: 75%;
    top: 75%;
}

/* Forwards */

.player-cf {
    left: 90%;
    top: 50%;
}

.player-st {
    left: 90%;
    top: 50%;
}

.player-number {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
}

.substitutes-bench {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sub-shirt {
    width: 90px;
    height: 80px;
    border: 3px solid #6c757d;
    background: #f8f9fa;
    color: #212529;
    clip-path: polygon( 20% 0%, 35% 12%, 65% 12%, 80% 0%, 100% 25%, 85% 45%, 85% 100%, 15% 100%, 15% 45%, 0% 25% );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6px;
}

.sub-name {
    font-size: 0.80rem;
    font-weight: bold;
    line-height: 1.1;
}

.sub-position {
    font-size: 0.70rem;
    color: #666;
}

.match-score {
    font-size: 1.25rem;
}

.match-clock {
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
}

.player-selected {
    box-shadow: 0 0 12px #0d6efd;
    border-width: 4px;
}

.player-inline-actions {
    display: none;
    position: absolute;
    left: 15%;
    top: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px;
    gap: 2px;
    width: 72px;
    grid-template-columns: repeat(3, 1fr);
    z-index: 5000;
}

    .player-inline-actions button {
        width: 22px;
        height: 22px;
        border: none;
        background: white;
        cursor: pointer;
        padding: 0;
    }

.player-wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
}

.assist-success {
    color: #198754;
    font-weight: bold;
    margin-bottom: 4px;
}

.assist-title {
    font-size: 0.7rem;
    margin-bottom: 4px;
}

.assist-panel {
    display: none;
    width: 70px;
}

.assist-panel button {
        width: 20px;
        height: 20px;
        margin: 1px;
    }

.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

