/* -------------------- Links -------------------- */
a {
  color: black;
  text-decoration: underline !important;
}

a:focus,
a:hover,
a:active {
  color: black;
  text-decoration: underline !important;
}

/* -------------------- Body -------------------- */
body {
  font-family: 'Poppins', 'Inter', sans-serif; /* keep your body font */
  margin: 0;
  overflow-x: auto; /* allow horizontal scroll for wide tables */
}

/* -------------------- Headings (Preserve Fonts & Colors) -------------------- */
h1, h2, h3 {
  text-align: center;
  font-family: 'Poppins', 'Inter', sans-serif; /* your heading fonts */
  margin-top: 15px;
}

h1 {
  color: #eb0000; /* red H1 */
}

h2, h3 {
  color: #000000; /* black H2/H3 */
}

/* -------------------- Filters & Forms -------------------- */
/* .filter-container { */
  /* margin-bottom: 15px; */
  /* text-align: center; */
/* } */

/* .filter-container label { */
  /* margin-right: 10px; */
/* } */

/* .filter-container select, */
/* .filter-container input, */
/* .filter-container button, */
/* .filter-container form { */
  /* padding: 5px; */
  /* margin-right: 10px; */
/* } */

/* -------------------- Tables -------------------- */
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

th {
  background-color: #f2f2f2;
  cursor: pointer;
  user-select: none;
}

tr:hover {
  background-color: #f9f9f9;
}

td.name {
  text-align: left;
}

.history-table {
  width: 100%;
}

.history-table th,
.history-table td {
  border: 1px solid #ddd;
  padding: 4px;
}

.table-sm th, .table-sm td {
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
}

/* -------------------- Row Colors -------------------- */
.top { background-color: #d4edda; }
.mid { background-color: #fff3cd; }
.low { background-color: #f8d7da; }

tr.win { background-color: #d4edda; }
tr.loss { background-color: #f8d7da; }

.summary {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
}

/* -------------------- Progress Bars -------------------- */
.progress-bar-container {
  width: 100%;
  background-color: #dee2e6;
  border-radius: 4px;
  overflow: hidden;
  height: 20px;
}

.progress-bar {
  height: 100%;
  color: #fff;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
  transition: width 0.4s ease;
}

.pct-widget-container {
  width: 100%;
  margin: 20px 0;
  position: relative;
  font-weight: bold;
}

.pct-bar-bg {
  width: 100%;
  height: 25px;
  background-color: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}

.pct-bar-fill {
  height: 100%;
  background-color: #4CAF50;
  transition: width 0.6s ease;
}

.pct-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 25px;
  line-height: 25px;
  pointer-events: none;
  color: #fff;
}

/* -------------------- Navbar -------------------- */
.navbar {
  width: 100%;
  max-width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eb0000;
  padding: 10px 16px;
  color: white;
  position: relative;
  box-sizing: border-box;
  z-index: 1000;
}

.navbar h1 {
  margin: 0;
  font-size: 20px;
  color: #fff;
  white-space: nowrap;
  font-family: 'Poppins', 'Inter', sans-serif; /* keep heading font */
}

.menu-btn {
  font-size: 24px;
  cursor: pointer;
  display: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

/* Allow horizontal scroll when table is wider than viewport */
@media (max-width: 768px) {
  table {
    display: block;         /* enables horizontal scrolling */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;    /* prevent wrapping */
  }
}


.match-container {
    max-width: 500px;
    margin: 0 auto;
}

.match-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: #fff;
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
}

.team-name a {
    text-decoration: none;
    color: #007bff;
}

.team-score {
    font-size: 1.2rem;
    font-weight: bold;
}

.winner-row {
    background-color: #d4edda; /* light green */
    border-left: 4px solid #28a745; /* darker green accent */
}

.loser-row {
    background-color: #f8d7da; /* light red */
    border-left: 4px solid #dc3545; /* darker red accent */
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px;
    margin: 0px 0;
    border-radius: 0px;
}


/* Form wrapper */
.form-wrapper {
    max-width: 480px;
    width: 100%;
    margin: 40px auto;
    padding: 16px;
	font-family: 'Poppins', 'Inter', sans-serif; 
}


form {
  text-align: center;
  /* margin-top: 20px; */
}

/* select { */
  /* padding: 5px 10px; */
  /* margin: 0 10px; */
  /* font-size: 16px; */
/* } */

/* button { */
  /* padding: 5px 10px; */
/* } */

/* Site-wide forms */
form {
    width: 100%;               /* nearly full width on small screens */
    /* max-width: 480px;         /* same as match cards on desktop */ */
    margin: 20px auto;        /* centers form horizontally */
    /* padding: 16px; */
    background-color: #ffffff;
    /* border: 1px solid #ddd; */
    /* border-radius: 16px; */
	font-family: 'Poppins', 'Inter', sans-serif; 
    box-sizing: border-box;
}

/* Labels */
form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

/* Inputs, selects, textareas */
form input,
form select,
form textarea {
    max-width: 220px;
    padding: 12px 14px;
    font-size: 1rem;
    /* border: 1px solid #ccc; */
    /* border-radius: 14px; */
    /* background-color: #fff; */
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus effect */
form input:focus,
form select:focus,
form textarea:focus {
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    outline: none;
}

/* Buttons */
form button,
form input[type="submit"] {
    width: 100%;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 14px;
    padding: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    margin-top: 10px;
}

form button:hover,
form input[type="submit"]:hover {
    background-color: #e4e4e4;
    border-color: #bbb;
}

form button:active,
form input[type="submit"]:active {
    background-color: #dcdcdc;
    border-color: #aaa;
}

/* Textarea height */
form textarea {
    resize: vertical;
    min-height: 60px;
}

/* Responsive adjustments for small screens */
@media (max-width: 360px) {
    form {
        width: 90%;           /* slightly narrower on tiny screens */
        padding: 12px;
        margin: 12px auto;
    }
    form input,
    form select,
    form textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    form button {
        padding: 10px;
        font-size: 1rem;
    }
}



/* =========================================
   Filter selects / responsive horizontal layout
   ========================================= */
/* =========================================
   Filter selects - full-width container, neat consistent component widths
   ========================================= */

.filter-container {
    width: 100%;                  /* full browser width */
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 16px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;              /* wrap horizontally if not enough space */
    gap: 16px;                    /* spacing between components */
    justify-content: center;      /* center components horizontally */
    align-items: flex-start;
}

/* Each label+select pair container */
.filter-container > label,
.filter-container > select {
    flex: 0 0 200px;              /* fixed width for neat alignment */
}

/* Optional: wrap label+select into a block */
.filter-container > label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Select styling */
.filter-container select {
    width: 100%;                  /* fill its fixed flex width */
    padding: 12px 14px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 14px;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus effect */
.filter-container select:focus {
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    outline: none;
}

/* Mobile stacking */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        align-items: stretch;
    }
    .filter-container > label,
    .filter-container > select {
        flex: 1 1 100%;
    }
}



/* Responsive adjustments for very small screens */
/* @media (max-width: 360px) { */
    /* .filter-container { */
        /* width: 90%; */
        /* padding: 12px; */
    /* } */
    /* .filter-container select { */
        /* padding: 10px 12px; */
        /* font-size: 0.95rem; */
    /* } */
/* } */




/* Mobile Menu */
@media (max-width: 768px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background: #aaa;
    flex-direction: column;
    display: none;
    box-sizing: border-box;
  }
  .nav-links.show { display: flex; }
  .nav-links a {
    padding: 15px;
    border-bottom: 1px solid #555;
  }
}

@media (max-width: 576px) {
  label {
    display: block;       /* stack labels vertically */
    margin-right: 0;
    margin-bottom: 10px;
  }
}

/* Team row links: always black and underlined */
.team-row a {
    color: #000000;        /* black text */
    text-decoration: underline; /* always underlined */
}

/* Optional: prevent hover or visited from changing it */
.team-row a:visited,
.team-row a:hover,
.team-row a:active,
.team-row a:focus {
    color: #000000;
    text-decoration: underline;
}



/* Card container */
.match-card {
    width: 95%;
    max-width: 250px;      /* match your forms/match-card width */
    margin: 16px auto;     /* center horizontally */
    padding: 16px;
    background-color: #fff;
    border: 0px solid #ddd;
    border-radius: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0px;
    font-family: 'Poppins', 'Inter', sans-serif; 
}

/* Header: date + final score */
.match-header {
    display: flex;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

/* Teams stacked */
.match-teams {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.team-name a {
    color: #000;              /* always black */
    text-decoration: underline;
}

/* Actions */
.match-actions {
    margin-top: 8px;
}

.match-actions .btn {
    display: inline-block;
    width: auto;
    padding: 6px 12px;
    font-size: 0.95rem;
}

/* Full card highlight for winner/loser */
.match-card.winner {
    background-color: #d4edda;  /* light green background */
    border-color: #c3e6cb;      /* optional: darker green border */
}

.match-card.loser {
    background-color: #f8d7da;  /* light red background */
    border-color: #f5c6cb;      /* optional: darker red border */
}

/* Keep score box readable */
.match-card.winner .match-result,
.match-card.loser .match-result {
    background-color: transparent;  /* remove previous highlight */
    padding: 2px 6px;
    border-radius: 8px;
}

/* Mobile adjustments */
@media (max-width: 360px) {
    .match-card {
        width: 90%;
        padding: 12px;
    }

    .match-header {
        font-size: 0.95rem;
    }

    .match-actions .btn {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
}


.performance-card {
    width: 95%;
    max-width: 480px;      /* match your match cards/forms */
    margin: 16px auto;     /* center horizontally */
    padding: 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    box-sizing: border-box;
font-family: 'Poppins', 'Inter', sans-serif; 
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Mobile adjustments */
@media (max-width: 360px) {
    .performance-card {
        width: 90%;
        padding: 12px;
    }
}


/* Always center form on all screen sizes */
form {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}

/* Container that holds all match cards */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 1600px;  
    margin: 0 auto; /* center the whole grid */
    padding: 0px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.stat-block {
    text-align: center;
    flex: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-number.wins {
    color: #28a745; /* green */
}

.stat-number.losses {
    color: #dc3545; /* red */
}

.stat-number.total {
    color: #333;
}

p {
	text-align: center;
}


.mainhome, .mainhome:visited,.mainhome:focus,.mainhome:active, .mainhome:hover {
    color: #fff !important;          /* ensure white text, override parents */
    text-decoration: none !important; /* remove underline */
    cursor: pointer;
}

.btn-red {
    display: inline-block;
    background-color: #eb0000;
    color: #fff !important;          /* ensure white text, override parents */
    padding: 3px 5px;
    border-radius: 8px;
    text-decoration: none !important; /* remove underline */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-red:hover,
.btn-red:focus,
.btn-red:active,
.btn-red:visited {
    color: #fff !important;            /* keep white text even on visited */
    text-decoration: none !important;  /* block all underline attempts */
    background-color: #eb0000;         /* hover effect */
}
.navbar {
    position: sticky;
    top: 0;
}

/* Footer (similar style but not sticky) */
.footer {
    background: #eb0000;  /* same as navbar */
    padding: 12px 16px;
    color: white;
    text-align: center;
    font-family: 'Poppins', 'Inter', sans-serif;
    margin-top: 40px;
    border-top: 1px solid #b80000;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

.greenback
{
	background-color:#d4edda;
}
/* PERFECT COLUMN ALIGNMENT FOR ALL DIVISION TABLES */
.standings-table {
    width: 100%;
    table-layout: fixed; /* consistent column widths */
    border-collapse: collapse;
}

/* Fix row/column text behavior */
.standings-table th,
.standings-table td {
    padding: 8px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; /* allow wrapping on mobile! */
}

/* Keep team name left-aligned */
.standings-table td:nth-child(2) {
    text-align: left;
}

/* MOBILE FIX — allow table to scroll horizontally without breaking layout */
@media (max-width: 768px) {
    .standings-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .standings-table {
        min-width: 650px;  /* prevents columns from collapsing */
    }
}

.greenback {
    background-color: #f5fff7; /* light green */
}

.redback {
    background-color: #fff6f7; /* light red */
}

.yellowback {
    background-color: #fffff3; /* light red */
}

ul.team-players {
    list-style-type: none;   /* remove bullets */
    padding: 0;              /* remove default padding */
    margin: 10px 0;          /* optional margin */
    text-align: center;      /* center all items */
}

ul.team-players li {
    margin-bottom: 5px;      /* spacing between players */
    line-height: 1.5;        /* comfortable line spacing */
    font-size: 16px;         /* adjust font size */
    color: #333;             /* text color */
}