/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0px;
}

/* Header */
header {
  background-color: #203864;
  color: #fff;
  padding: 1rem 0;
}

header h1 {
  margin: 1rem;
}

nav {
	padding: 1rem;
    margin-bottom: 0rem;
}
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-right: 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Main Content */
main {
  padding: 2rem 0;
}

section {
 /* margin-bottom: 2rem; */
  margin: 0.5rem;
  border-left: 3px solid #2c3e50;
  border-right: 3px solid #2c3e50;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2,
h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

/* Forms */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-container.wide {
  max-width: 100%;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.btn {
  display: inline-block;
  background-color: #3498db;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #95a5a6;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

.btn:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

/* Tables */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

/* Team Stats */
.team-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 5px;
   position: sticky;
    top: 0; 
    z-index: 10; /* Ensure it stays above other elements */
    
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow for better visibility */
}



.stat {
  flex: 1;
  min-width: 150px;
}

.stat .label {
  font-weight: bold;
  display: block;
}

.stat .value {
  font-size: 1.2rem;
  color: #2c3e50;
}

/* Player Selection */
.player-selection {
  margin-top: 2rem;
}

/* Transfers */
.transfers-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .transfers-container {
    grid-template-columns: 1fr;
  }
}

/* Messages */
.error,
.success,
.confirm,
.info {
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border-radius: 3px;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.confirm {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 1rem;
}

.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  background-color: #203864;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .team-stats {
    flex-direction: column;
  }
}

        /* Mobile-friendly navigation styles that preserve your design */
        header {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
        }

        header h1 {
            margin-right: auto;
        }

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.8rem;
            cursor: pointer;
            color: white; /* White hamburger icon */
            padding: 0.5rem;
            margin-left: 1rem;
            align-self: center;
        }

        /* Preserve existing dropdown behavior on desktop */
        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            min-width: 200px;
            z-index: 1000;
        }

        .dropdown:hover .dropdown-menu {
            display: block;
        }

        /* Mobile styles */
        @media (max-width: 768px) {
            header {
                flex-direction: row;
                padding: 1rem 0;
            }
            
            .menu-toggle {
                display: block;
                order: 3; /* Place after the h1 */
            }

            nav {
                order: 4; /* Place below header elements */
                width: 100%;
                margin-top: 1rem;
                display: none;
            }

            nav.active {
                display: block;
            }

            nav ul {
                flex-direction: column;
                width: 100%;
            }

            nav ul li {
                width: 100%;
            }

            nav ul li a {
                padding: 1rem;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                display: block;
            }

            /* Mobile dropdown styles */
            .dropdown-menu {
                position: static;
                box-shadow: none;
                width: 100%;
                background-color: rgba(0, 0, 0, 0.1);
            }

            .dropdown-menu li a {
                padding-left: 2rem;
            }

            .dropdown:hover .dropdown-menu {
                display: none;
            }

            .dropdown.active .dropdown-menu {
                display: block;
            }
            
            /* Adjust dropdown toggle indicator for mobile */
            .dropdown-toggle::after {
                content: '+';
                position: absolute;
                right: 1rem;
                top: 50%;
                transform: translateY(-50%);
                font-size: 1.2rem;
            }
            
            .dropdown.active .dropdown-toggle::after {
                content: '-';
            }
        }
        
    /* General link styling */
    .teams-link {
        text-decoration: none;
        color: green; /* Light text color */
        transition: color 0.3s ease; /* Smooth hover transition */
    }

    /* Hover effect for all links */
    .teams-link:hover {
        color: green; /* Green hover color */
    }