/* General Styles */
:root {
    --primary-blue: #005ce6;
    --black-color: #191919;
    --red-color: #e60000;
}
body.body-override {
    font-family: 'Jost', sans-serif;
    background-color: #f5f5f5; /* Light grey background for contrast */
    color: var(--black-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* line-height: 1.6; */
}

.brand-title {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    color: var(--primary-blue);
}

.sitelogo {
    text-transform: lowercase;
}

.logo-img {
    height: 40px;
    width: 40px;
}

main {
    margin-left: 20px;
    margin-right: 20px;
}

main h1, main h2, main h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    margin-top: 20px;
}

main h1 {
    margin-bottom: 40px;
}

main h2, main h3 {
    margin-bottom: 20px;
}

main a {
    text-decoration: none;
    color: #0041a3; /* Purple for emphasis */
    transition: color 0.2s;
}

main a:hover {
    color: #005ce6; /* Red when hovered */
}

/* Action Links (e.g., buttons, important actions) */
main a.action-link {
    color: #dc3545; /* Red for emphasis */
    font-weight: bold;
}

main a.action-link:hover {
    color: #ee3636; 
}

/* Button-like Links */
main a.btn {
    background-color: #005ce6; /* Red background */
    color: white; /* White text */
    margin: 10px 0;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.2s;
}

main a.btn.btn-small {
    margin: 0;
    padding: 5px 10px;
    font-size: 0.8em;
    border-radius: 3px;
}

main a.btn:hover {
    background-color: #0041a3; /* Purple on hover */
    color: #fff
}

main ul {
    list-style-type: none;
    padding: 0;
}

main button, main input[type="submit"] {
    background-color: #e60000; /* Red for button background */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.2s;
}

main button:hover {
    background-color: #ee3636;
}

main h2, main h3 {
    color: #333;
}

main.container {
    margin-bottom: 1.5rem;
}

main ul.bracket-list { 
    list-style-type: disc; 
    list-style-position: inside; 
 }
 main ol.bracket-list { 
    list-style-type: decimal; 
    list-style-position: inside; 
 }
 main ul.bracket-list ul, main ol.bracket-list ul { 
    list-style-type: circle; 
    list-style-position: inside; 
    margin-left: 15px; 
 }
 main ol.bracket-list ol, main ul.bracket-list ol { 
    list-style-type: lower-latin; 
    list-style-position: inside; 
    margin-left: 15px; 
 }

.management-container {
    margin-top: 3rem;
}

.bottom-border {
    border-bottom: 2px solid #0041a3;
    padding-bottom: 5px;
}

/* Layout 
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
} */

/* Navigation Styles */
.navbar {
    background-color: #fff;
}

/* Notification Bell and Dropdown Styles */
.notification-bell-container {
    position: relative;
    margin-top: -5px;
    margin-left: 20px;
    /* margin-right: 20px; */
}

.notification-bell {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 24px; /* Adjust size as needed */
    color: var(--black-color);
}

.notification-bell .bell-icon {
    position: relative;
    display: inline-block;
}

.notification-bell .dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    border: 2px solid white; /* to give a small white border if desired */
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%; 
    right: 0;
    background: #fff;
    color: #333;
    width: 300px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1000;
    font-size: 12px;
    margin-top: 10px; /* to give space between icon and box */
}

.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #fff;
}

.notification-dropdown ul {
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.notification-dropdown li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.notification-dropdown li.unread {
    font-weight: bold;
    background-color: #f0f0f0;
}

.notification-dropdown li:last-child {
    border-bottom: none;
}

.notification-dropdown li a {
    color: #333;
    text-decoration: none;
    display: block;
    font-weight: normal; /* Ensure default is normal */
}

.notification-dropdown li a:hover {
    background-color: #e6e6e6;
}

.notification-dropdown a.view-all {
    display: block;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    background: #f5f5f5;
    color: #333;
    border-top: 1px solid #ddd;
}

.notification-dropdown a.view-all:hover {
    text-decoration: underline;
}

.notification-bell.show .notification-dropdown {
    display: block;
}

/* Bold only the unread notification links */
.navbar .notification-dropdown li.unread a {
    font-weight: bold;
}

/* Form Styles */
form {
    background-color: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form.no-box {
    background-color: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
}

form.no-box .logout {
    margin-top: 50px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="datetime-local"] {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus {
    outline: none;
    border-color: #e60000;
}

input[type="datetime-local"]:focus {
    outline: none;
    border-color: #e60000;
}

/* Button Styles */
.form-button {
    text-align: center;
}

.form-button button {
    background-color: #e60000;
    transition: background-color 0.2s;
}

.form-button button:hover {
    background-color: #ee3636;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

table thead, table thead th {
    background-color: #407bb9;
    color: white;
}

table thead.blue-thead {
    background-color: #407bb9;
    --bs-table-bg: #407bb9;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table tr.clickable-row {
    cursor: pointer;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

table tr .row-registered, table tr:nth-child(even).row-registered {
    background-color: #FFF6AA;
}

table tr .row-paid, table tr:nth-child(even).row-paid {
    background-color: #AAFFAA;
}

/* Inline Form Styles for Table Cells */
table td form, .inline-form {
    display: inline-flex;  /* Align form elements horizontally */
    align-items: center;   /* Vertically center form elements */
    margin: 0;
    padding: 0;
    box-shadow: 0;
    border: 0;
    background-color: transparent;
}

/* Input Fields within Table Cells */
table td form input[type="text"],
table td form input[type="number"],
table td form input[type="password"] {
    width: auto;           /* Allow input to fit naturally within cell */
    padding: 5px;          /* Minimal padding for a clean look */
    font-size: 0.9em;      /* Slightly smaller to fit within table nicely */
    border: 1px solid #ddd;/* Subtle border to match the form styling */
    border-radius: 3px;
    margin-right: 5px;     /* Small space between input and button */
    margin-bottom: 0px;
}

table td form input[type="text"]:focus,
table td form input[type="number"]:focus,
table td form input[type="password"]:focus {
    outline: none;          /* Remove the default outline */
    border-color: #0041a3;  /* Highlight the input border with purple */
}

/* Submit Button Styles */
table td form button {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.85em;      /* Slightly smaller button size for inline usage */
    cursor: pointer;
    margin-left: 5px;       /* Space between the input and button */
    transition: background-color 0.2s;
}

table td form button:hover {
    background-color: #ee3636;  /* Change to purple on hover */
}

/* Label Styles for Inline Forms */
table td form label {
    font-weight: normal;    /* Keep labels minimal and not bold */
    font-size: 0.9em;
    margin-right: 5px;      /* Small space between label and input */
    color: #555;            /* Softer color for the label */
}

/* General Alignment for Inline Forms in Table */
table td {
    vertical-align: middle; /* Keep form elements vertically centered */
}

/* Message Box Styles */
.messages {
    background-color: #fff3cd; /* Light yellow for success/warning */
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Footer Styles */
footer {
    background-color: var(--primary-blue);
    color: white;
    font-family: 'Jost', sans-serif;
    padding: 2rem;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: underline;
}


/* Hero Section */
.hero-section {
    background: url("bg.jpg") no-repeat center center/cover fixed;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: #fff;
}
.hero-section.director {
    background: url("bg-director.jpg") no-repeat center center/cover fixed;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 25, 25, 0.6);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.hero-btn {
    background-color: var(--red-color);
    border: none;
    color: #fff;
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    border-radius: 30px;
    transition: background 0.3s ease;
}
.hero-btn:hover {
    background-color: #cc0000;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}
.step-card {
    border: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 2rem;
    transition: transform 0.2s ease;
    height: 100%;
}
.step-card:hover {
    transform: translateY(-5px);
}
.step-number {
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Features for Bowlers Section */
.bowler-features {
    padding: 4rem 2rem;
}
/* Feature grid styling */
.feature-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

/* Icon circle */
.icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--red-color, #e60023);  /* fallback if custom property missing */
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-wrap i {
  color: #fff;
  font-size: 1.5rem;
}

/* Sign Up Section */
.cta-section {
    padding: 4rem 2rem;
    text-align: center;
}
.cta-btn {
    background-color: var(--primary-blue);
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    border: none;
    transition: background 0.3s ease;
}
.cta-btn:hover {
    background-color: #0042b3;
}

/* Fade-in animation */
.fade-in {
    display: none;
}

/* Profile Styling */
.profile-edit-link {
    display: inline;
    font-weight: normal;
}

/* Actions Dropdown Container */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

/* Actions Button */
.actions-button {
    background-color: #005ce6; /* Blue background */
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.actions-button:hover {
    background-color: #0041a3; /* Darker blue on hover */
}

/* Dropdown Menu */
.actions-menu {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1;
    top: 100%; /* Position below the button */
    left: 0;
    padding: 5px 0;
}

/* Action Links within Dropdown */
.actions-menu a {
    color: #333;
    padding: 4px 16px;
    text-decoration: none;
    display: block;
    font-weight: normal; /* Ensure default weight */
    transition: background-color 0.2s;
}

.actions-menu a:hover {
    background-color: #f1f1f1; /* Light grey on hover */
}

/* Show the dropdown menu when the container has the 'show' class */
.actions-dropdown.show .actions-menu {
    display: block;
}

/* Optional: Adjust arrow for better visual indication */
.actions-button::after {
    content: ' ▼';
    font-size: 12px;
}

.back-link {
    display: block;
    margin-top: 1rem;
}

/* Card Layout for Tournaments and Squads 
.card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */

.card h3 {
    color: #005ce6; /* Red for card headings */
    margin-top: 0;
}

.card ul {
    padding-left: 20px;
}

.card-header {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
}

/* Prize distribution card */
.prize-distribution-card .card-header {
    background-color: #407bb9;
    /* background: #048ac9 url('header-bg-100-light.jpg') right center; */
    color: white;
    padding: 15px 20px;
}

.prize-distribution-card .card-header h2 {
    margin: 0;
    font-size: 1.5em;
    border: 0;
    color: #fff;
}

.prize-distribution-card .card-header a {
    color: white;
    text-decoration: none;
}

.prize-distribution-card .card-header a:hover {
    text-decoration: underline;
    color: #f8ff29
}

.prize-distribution-card .card-body {
    padding: 15px 20px;
}

/* Header Card Specific Styles */
.squad-header-card .card-header {
    background: #005ce6 url('header-bg-100.jpg') right center repeat-x;
    color: white;
    padding: 15px 20px;
}

.squad-header-card .card-header h1 {
    margin: 0;
    font-size: 1.8em;
}

.squad-header-card .card-body p {
    margin: 10px 0;
    font-size: 1em;
}


/* Container for all squads */
.squads-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Score Card Header */
.score-card .card-header {
    background-color: #407bb9;
    /* background: #048ac9 url('header-bg-100-light.jpg') right center; */
    color: white;
    padding: 15px 20px;
}

.score-card .card-header h2 {
    margin: 0;
    font-size: 1.5em;
    border: 0;
    color: #fff;
}

.score-card .card-header a {
    color: white;
    text-decoration: none;
}

.score-card .card-header a:hover {
    text-decoration: underline;
    color: #f8ff29
}

.score-card .card-body {
    padding: 15px 20px;
}

/* Header Card Specific Styles */
.squad-header-card .card-header {
    background: #005ce6 url('header-bg-100.jpg') right center repeat-x;
    color: white;
    padding: 15px 20px;
}

.squad-header-card .card-header h1 {
    margin: 0;
    font-size: 1.8em;
}

.squad-header-card .card-body p {
    margin: 10px 0;
    font-size: 1em;
}

/* Registration Status Card */
.squad-status-card .card-header {
    background-color: #407bb9;
    color: white;
    padding: 15px 20px;
}

.squad-status-card .card-header h2 {
    margin: 0;
    font-size: 1.5em;
    border: 0;
    color: #fff;
}

.squad-status-card .card-header h3 {
    border: 0;
}

.squad-status-card .card-body p {
    margin: 10px 0;
    font-size: 1em;
}

.squad-status-card .paid, .tournament-squads-table .paid {
    color: #28a745; /* Green for Paid */
    font-weight: bold;
}

.squad-status-card .unpaid,  .tournament-squads-table .unpaid {
    color: #dc3545; /* Red for Unpaid */
    font-weight: bold;
}


/* Side Pots Card */
.side-pots-card .card-header {
    background-color: #407bb9;
    color: white;
    padding: 15px 20px;
}

.side-pots-card .card-header h2 {
    margin: 0;
    font-size: 1.5em;
    border: 0;
    color: #fff;
}

.side-pots-card .card-header h3 {
    border: 0;
}

.side-pots-card .card-body p {
    margin: 10px 0;
    font-size: 1em;
}


/* Lane Assignments Card */
.lane-assignments-card .card-header {
    background-color: #407bb9;
    color: white;
    padding: 15px 20px;
}

.lane-assignments-card .card-header h2 {
    margin: 0;
    font-size: 1.5em;
    border: 0;
    color: #fff;
}

.lane-assignments-card .card-header h3 {
    border: 0;
}

.lane-assignments-card .card-body p {
    margin: 10px 0;
    font-size: 1em;
}

/* Payment Status Card */
.payment-card .card-header {
    background-color: #407bb9;
    color: white;
    padding: 15px 20px;
}

.payment-card .card-header h2 {
    margin: 0;
    font-size: 1.5em;
    border: 0;
    color: #fff;
}

.payment-card .card-header h3 {
    border: 0;
}

.payment-card .card-body p {
    margin: 10px 0;
    font-size: 1em;
}

/* Squad List Styles */
.squad-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.squad-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.squad-item:last-child {
    border-bottom: none;
}

/* Squad Time */
.squad-time a {
    color: #0041a3;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.squad-time a:hover {
    color: #005ce6;
}

/* Squad Status */
.squad-status {
    font-size: 0.95em;
}

.squad-status .paid, .yes {
    color: #28a745; /* Green for Paid */
    font-weight: bold;
}

.squad-status .unpaid, .no {
    color: #dc3545; /* Red for Unpaid */
    font-weight: bold;
}

.squad-status .fa-check-circle {
    color: #28a745;
    margin-right: 5px;
}

.squad-status .fa-times-circle {
    color: #dc3545;
    margin-right: 5px;
}

/* Container for Tournament Details */
.tournament-detail-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* Tournament Information Card */
.tournament-info-card .card-header {
    background: #005ce6 url('header-bg-100.jpg') right center repeat-x;
    color: white;
    padding: 20px 25px;
}

.tournament-info-card .card-header h1 {
    margin: 0;
    font-size: 2em;
}

.tournament-info-card .card-body {
    padding: 20px 25px;
    background-color: #f9f9f9;
}

.tournament-info-card .tournament-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tournament-info-card .tournament-details .btn, .tournament-info-card .tournament-details a:hover.btn {
    color: white;
}

.tournament-info-card .detail-item {
    flex: 1 1 45%;
    font-size: 1em;
    color: #333;
}

/* Specific Link Styling within Tournament Details */
.tournament-info-card .tournament-details a {
    color: #0041a3; /* Neutral purple for internal links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.tournament-info-card .tournament-details a:hover {
    color: #005ce6; /* Red on hover for emphasis */
}

/* Read-more toggle for descriptions */
.description-box {
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-blue);
    padding: 15px;
    border-radius: 4px;
    position: relative;
}

.description-box.read-more {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.description-box.read-more::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3em;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(249,249,249,0), #f9f9f9);
}

.description-box.read-more.expanded {
    max-height: none;
}

.description-box.read-more.expanded::after {
    display: none;
}

.read-more-button {
    color: var(--primary-blue);
    cursor: pointer;
}

.accordion .card .card-header {
  background: #005ce6 url('header-bg-100.jpg') right center repeat-x;
  color: white;
  padding: 20px 25px;
}

.accordion .card .card-header h2 {
    margin: 0;
}

.accordion .card .card-header button {
    margin: 0;
    font-size: 1em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

/* Squads Section */
.tournament-squads-section {
    margin-top: 20px;
}

.tournament-squads-section h2 {
    color: #333;
    border-bottom: 2px solid #0041a3; /* Purple line below heading */
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* Squads Table */
.tournament-squads-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tournament-squads-table thead {
    background-color: #191919;
    color: white;
}

.tournament-squads-table th, .tournament-squads-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tournament-squads-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tournament-squads-table tbody tr:hover:not(.row-registered, .row-paid) {
    background-color: #f1f1f1;
}

.tournament-squads-table tbody tr.row-registered {
    background-color: #FFF6AA;
}

.tournament-squads-table tbody tr.row-paid {
    background-color: #AAFFAA;
}

.tournament-squads-table a.action-link {
    color: #005ce6; /* Red for action links */
    font-weight: bold;
}

.tournament-squads-table a.action-link:hover {
    color: #0041a3; /* Purple on hover */
}

.tournament-squads-table a.btn {
    background-color: #005ce6; /* Red background */
    color: white; /* White text */
    padding: 5px 10px;
    margin: 0;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tournament-squads-table a.btn:hover {
    background-color: #0041a3; /* Purple on hover */
}

/* Container for Squad Details */
.squad-detail-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* Tournament Finances Section */
table .finance-formset-row label.form-label, table .sponsor-formset-row label.form-label {
    display: none;
}

/* Team Information Section */
.team-info {
    margin-top: 20px;
}

.team-info h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.team-info .team-members {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-info .team-members li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.team-info .team-members li:last-child {
    border-bottom: none;
}

/* Registration Closed Card */
.registration-closed-card .card-header {
    background-color: #407bb9; /* Red to indicate closed registration */
    color: white;
    padding: 15px 20px;
}

.registration-closed-card .card-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5em;
    border: 0;
}

.registration-closed-card .card-body p {
    margin: 10px 0;
    font-size: 1em;
}

/* Registration Action Card */
.registration-action-card .card-header {
    background-color: #407bb9;
    color: white;
    padding: 15px 20px;
}

.registration-action-card .card-header h2 {
    margin: 0;
    font-size: 1.5em;
    border: 0;
    color: #fff;
}

.registration-action-card .card-body p {
    margin: 10px 0;
    font-size: 1em;
}

.registration-action-card .btn {
    background-color: #005ce6; /* Red for primary action */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.registration-action-card .btn:hover {
    background-color: #0041a3; /* Purple on hover */
}

/* Container for Manager Dashboard */
.manager-dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* max-width: 960px; */
    margin: 0 auto;
    padding: 20px;
}

/* Create Tournament and Back Buttons */
.manager-dashboard-container .btn {
    background-color: #005ce6; /* Red background */
    color: white; /* White text */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.manager-dashboard-container .btn:hover {
    background-color: #0041a3; /* Purple on hover */
}

.manager-dashboard-container .back-button {
    background-color: #191919; /* Dark background for back button */
}

.manager-dashboard-container .back-button:hover {
    background-color: #555; /* Lighter dark on hover */
}

/* Buttons Container */
.dashboard-buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Manager Dashboard Buttons */
.manager-dashboard-container .dashboard-buttons .btn {
    margin: 0; /* Remove vertical margins */
    display: inline-block; /* Ensure buttons don't stretch */
}

/* Specific Button Styles within Manager Dashboard */
.manager-dashboard-container .dashboard-buttons .btn {
    background-color: #005ce6; /* Blue background */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.manager-dashboard-container .dashboard-buttons .btn:hover {
    background-color: #0041a3; /* Darker blue on hover */
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-item input,
.filter-item select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.filter-actions button {
    margin-bottom: 15px;
}

.filter-actions a.btn {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
}

.loading-spinner {
    text-align: center;
    margin: 20px 0;
}

/* Tournaments Container */
.tournaments-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Tournament Card Styles */
.tournament-card, .dashboard-tournament-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 98%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tournament-card:hover, .dashboard-tournament-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Tournament Card Header */
.tournament-card .card-header {
    /* background-color: #005ce6; */
    background: #005ce6 url('header-bg-100.jpg') right center repeat-x;
    color: white;
    padding: 0 20px;
    font-size: 1.2em;
}

.dashboard-tournament-card .card-header {
    background: #005ce6 url('header-bg-100.jpg') right center repeat-x;
    color: white;
    padding: 10px 20px;
}

.tournament-card .card-header h2 {
    margin-bottom: 0;
}

.tournament-card .card-header h3 {
    margin: 0;
    font-size: 1.5em;
    border: 0;
}

.tournament-card .card-header a, .dashboard-tournament-card .card-header a {
    color: white;
    text-decoration: none;
}

.tournament-card .card-header a:hover, .dashboard-tournament-card .card-header a:hover {
    text-decoration: underline;
    color: #f8ff29
}

.tournament-card .card-header .dates, .dashboard-tournament-card .card-header .dates {
    padding-bottom: 20px;
}

/* Tournament Card Body */
.tournament-card .card-body, .dashboard-tournament-card .card-body {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.tournament-card .tournament-details, .dashboard-tournament-card .tournament-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tournament-card .detail-item, .dashboard-tournament-card .detail-item {
    flex: 1 1 45%;
    font-size: 0.95em;
    color: #333;
}

.tournament-card .detail-item a.action-link, .dashboard-tournament-card .detail-item a.action-link {
    color: #005ce6; /* Neutral purple for internal links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.tournament-card .detail-item a.action-link:hover, .dashboard-tournament-card .detail-item a.action-link:hover {
    color: #005ce6; /* Red on hover for emphasis */
}

/* Tournament Actions */
.tournament-actions {
    margin-top: 15px;
}

.tournament-actions .btn {
    background-color: #005ce6; /* Red background */
    color: white; /* White text */
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tournament-actions .btn:hover {
    background-color: #0041a3; /* Purple on hover */
}

/* Container for Manage Team */
.manage-team-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* Team Information Card */
.team-info-card .card-header {
    background: #005ce6 url('header-bg-100.jpg') right center repeat-x;
    color: white;
    padding: 15px 20px;
}

.team-info-card .card-header h2 {
    color: white;
    margin: 0;
    font-size: 1.8em;
    border: 0;
}

.team-info-card .card-body {
    padding: 15px 20px;
    background-color: #f9f9f9;
}

.team-info-card .team-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.team-info-card .detail-item {
    flex: 1 1 45%;
    font-size: 1em;
    color: #333;
}

.team-info-card .detail-item .badge-team {
    background-color: #17a2b8; /* Teal for Team Size Badge */
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 10px;
}

/* Cards Row for Current Members and Pending Invitations */
.cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Current Members Card */
.current-members-card, .pending-invitations-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1 1 45%; /* Two cards per row */
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.current-members-card:hover, .pending-invitations-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.current-members-card .card-header, .pending-invitations-card .card-header {
    background: #005ce6 url('header-bg-100.jpg') right center repeat-x;
    color: white;
    padding: 10px 15px;
}

.current-members-card .card-header h3, .pending-invitations-card .card-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2em;
    border: 0;
}

.current-members-card .card-body, .pending-invitations-card .card-body {
    padding: 15px 20px;
    background-color: #f9f9f9;
}

.team-members, .pending-invitations {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-members li, .pending-invitations li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-members li:last-child, .pending-invitations li:last-child {
    border-bottom: none;
}

.badge-paid {
    background-color: #28a745; /* Green for Paid */
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 10px;
}

.remove-link, .revoke-link {
    margin-left: 10px;
}

.pending-invitations li a.action-link.revoke-link {
    color: #dc3545; /* Dark Red for Revoke */
}

.pending-invitations li a.action-link.revoke-link:hover {
    color: #ee3636; 
}

/* Current Members Full Width Card */
.current-members-full-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.current-members-full-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.current-members-full-card .card-header {
    background: #005ce6 url('header-bg-100.jpg') right center repeat-x;
    color: white;
    padding: 10px 15px;
}

.current-members-full-card .card-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2em;
    border: 0;
}

.current-members-full-card .card-body {
    padding: 15px 20px;
    background-color: #f9f9f9;
}

/* Invite Additional Members Card */
.invite-members-card .card-header {
    background: #005ce6 url('header-bg-100.jpg') right center repeat-x;
    color: white;
    padding: 10px 15px;
}

.invite-members-card .card-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2em;
    border: 0;
}

.invite-members-card .card-body {
    padding: 15px 20px;
    background-color: #f9f9f9;
}

.invite-form .form-group {
    margin-bottom: 15px;
}

.invite-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.invite-form input[type="text"], 
.invite-form input[type="email"], 
.invite-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.invite-form button.btn {
    background-color: #e60000; /* Red background */
    color: white; /* White text */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.invite-form button.btn:hover {
    background-color: #ee3636;
}

/* Invite Additional Members Message */
.invite-members-card p {
    font-size: 1em;
    color: #333;
}

/* Back to Dashboard Button */
.back-button {
    background-color: #333; /* Dark background for back button */
}

.back-button:hover {
    background-color: #555; /* Lighter dark on hover */
}

/* Responsive Design */
@media (min-width: 992px) {
  .feature-card p { font-size: .95rem; }
}

@media screen and (max-width: 768px) {
    .navbar {
        text-align: center;
    }

    .navbar a {
        display: block;
        margin: 10px 0;
    }

    /* .notification-bell-container {
        float: none;
        display: inline-block;
        position: relative;
        margin-right: 10px;
    }

    .notification-dropdown {
        position: relative;
    }

    .notification-dropdown::before {
        right: 48.5%;
    } */

    .container {
        padding: 10px;
    }

    table {
        font-size: 0.9em;
    }

    table td form {
        display: block;         /* Stack form elements vertically on small screens */
        margin-bottom: 10px;
    }

    table td form input[type="text"],
    table td form input[type="number"],
    table td form button {
        margin-right: 0;        /* Reset margins for stacked forms */
        margin-bottom: 5px;
        width: 100%;            /* Make inputs full width on small screens */
    }

    .actions-button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .actions-menu a {
        padding: 6px 12px;
        font-size: 12px;
    }

    .squad-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .squad-status {
        align-self: flex-end;
    }

    .squad-detail-container {
        padding: 10px;
    }

    .squad-header-card .card-header h1 {
        font-size: 1.5em;
    }

    .squad-status-card .card-header h2,
    .registration-closed-card .card-header h2,
    .registration-action-card .card-header h2 {
        font-size: 1.2em;
    }

    .team-info h3 {
        font-size: 1em;
    }

    .registration-action-card .btn {
        width: 100%;
        text-align: center;
    }

    .tournament-info-card .tournament-details {
        flex-direction: column;
    }

    .tournament-info-card .detail-item {
        flex: 1 1 100%;
    }

    .tournament-squads-table th, .tournament-squads-table td {
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .tournament-squads-section h2 {
        font-size: 1.3em;
    }

    .tournaments-container {
        flex-direction: column;
    }
    
    /* .tournament-card {
        width: 100%;
    } */
    
    .manager-dashboard-container .btn {
        width: 100%; /* Full width buttons on smaller screens */
        text-align: center;
    }

    .cards-row {
        flex-direction: column;
    }

    .current-members-card, .pending-invitations-card {
        flex: 1 1 100%;
    }

    .invite-members-card .invite-form button.btn {
        width: 100%;
        text-align: center;
    }

    .manage-team-container .btn {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-color-scheme: dark) {
    .logo-img {
        filter: brightness(1.1) contrast(1.05);
    }
}