/* Global Styles */
body {
    background-color: #f4f4f4;
    font-family: 'Arial', sans-serif;
    margin: 0;
    overflow-y: scroll;
}

/* Card Layout Styles */
.knockout-cards, .league-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-start;
    margin-top: 18px;
}
.knockout-card, .league-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 18px 18px 14px 18px;
    width: 100%;
    max-width: 340px;
    min-width: 240px;
    border-top: 5px solid #4f774f;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.knockout-card-title, .league-card-title {
    color: #4f774f;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 6px;
    word-break: break-word;
}
.knockout-card-row, .league-card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 1em;
}
.knockout-card-actions, .league-card-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}
.knockout-card-action, .league-card-action {
    background: #e6f2e6;
    border-radius: 6px;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    color: #4f774f;
    font-size: 1.2em;
    text-decoration: none;
    transition: background 0.15s;
}
.knockout-card-action:hover, .league-card-action:hover {
    background: #d2e9d2;
}
@media (max-width: 600px) {
    .knockout-cards, .league-cards { flex-direction: column; gap: 10px; }
    .knockout-card, .league-card { max-width: 100%; min-width: 0; }
}

/* Shared Container Styles */
.container {
    margin-top: 48px;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

.login-container,
.request-container {
    background-color: #ffffff;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-sizing: border-box;
}

.login-container img,
.request-container img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    width: 200px;
}

.login-container h2,
.request-container h2 {
    color: #4f774f;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.login-container input[type="number"],
.login-container input[type="password"],
.request-container input[type="text"],
.request-container input[type="email"],
.request-container input[type="number"],
.request-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
}

.login-container input[type="submit"],
.request-container input[type="submit"] {
    background-color: #4f774f;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.login-container input[type="submit"]:hover,
.request-container input[type="submit"]:hover {
    background-color: #3e6243;
}

.login-container p,
.request-container p {
    margin-top: 15px;
    color: #777;
    font-size: 0.9rem;
}

.login-container a,
.request-container a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.login-container a:hover,
.request-container a:hover {
    text-decoration: underline;
}

/* Hamburger Menu Styles */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #4f774f;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo-menu-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

header img {
    height: 50px;
    margin-right: 10px;
}

.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.hamburger div {
    background-color: white;
    height: 3px;
    border-radius: 2px;
}

/* Hamburger Menu Panel */
.menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu.open {
    left: 0;
}

.menu-header {
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #4f774f;
    text-align: center;
}

.menu-section {
    margin: 10px 0;
    text-align: center;
}

.menu-button {
    background-color: #4f774f;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    margin: 10px;
    font-size: 16px;
    cursor: pointer;
    width: calc(100% - 20px);
}

.menu-button:hover {
    background-color: #3e6243;
    text-decoration: underline;
}

/* Close Button at the Bottom */
.menu .menu-footer {
    text-align: center;
    padding: 15px;
    background-color: #f4f4f4;
    border-top: 1px solid #ddd;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-y: scroll;
}

.content {
    flex: 1; /* Allows the content area to grow and push the footer down */
    margin-top: 300px; /* Adjust this value based on your header's height */
    padding: 60px;
    z-index: 500;
        overflow-y: auto; /* Scrollable content */
    padding-top: 20px;
}

footer {
    background-color: #f4f4f4; /* Light grey background for the footer */
    text-align: center;
    padding: 10px 20px;
    width: 100%; /* Ensure footer spans the full width */
    position: relative; /* Remove floating effect */
    bottom: 0;
}
.footer-documents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-documents ul li {
    margin: 5px 0;
}

.footer-documents ul li a {
    text-decoration: none;
    color: #007BFF;
}

.footer-documents ul li a:hover {
    text-decoration: underline;
}

.document-body {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    line-height: 1.6;
}

table {
    margin-top: 20px; /* Ensure no hidden parts */
}

/* Consistent Admin Button Styles */
.admin-button, .league-table a.button-link {
    display: inline-block;
    background-color: #4f774f;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin: 2px 0;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}
.admin-button:hover, .league-table a.button-link:hover {
    background-color: #3e6243;
    color: #fff;
    text-decoration: underline;
}

/* Table improvements for admin dashboard */
.league-table th, .league-table td {
    padding: 8px 12px;
    text-align: center;
}
.league-table th {
    background: #4f774f;
    color: #fff;
}
.league-table tr:nth-child(even) {
    background: #f9f9f9;
}
.league-table tr:nth-child(odd) {
    background: #eaf3ea;
}

/* Drag and Drop Styles for Positions Logging */
.positions-page {
    margin-top: 20px !important; /* Reduced top margin */
    padding-top: 20px; /* Reduced padding */
    max-width: 900px; /* Set max width for the container */
}

/* Override body styles for the positions page */
body.positions-body {
    align-items: flex-start;
    padding-top: 50px;
}

.drag-container { 
    display: flex; 
    gap: 40px; 
    justify-content: center;
    margin-top: 20px; /* Space at the top */
}

.member-list, .positions-list { 
    background: #f8f8f8; 
    border-radius: 8px; 
    padding: 16px; 
    min-width: 220px; 
    min-height: 350px; 
}

.member-list { 
    max-height: 420px; 
    overflow-y: auto; 
    scrollbar-width: thick; 
    scrollbar-color: #4f774f #eaf3ea;
    border: 2px solid #4f774f;
}

.member-list::-webkit-scrollbar { 
    width: 18px; 
    background: #eaf3ea; 
    border-radius: 8px; 
}

.member-list::-webkit-scrollbar-thumb { 
    background: #4f774f; 
    border-radius: 8px; 
    border: 3px solid #eaf3ea; 
}

.member-list::-webkit-scrollbar-thumb:hover { 
    background: #3e6243; 
}

.positions-list { 
    border: 2px solid #888; 
}

.draggable { 
    padding: 8px 12px; 
    margin: 6px 0; 
    background: #fff; 
    border: 1px solid #ccc; 
    border-radius: 6px; 
    cursor: grab; 
    font-size: 1rem; 
}

.draggable.dragging { 
    opacity: 0.5; 
}

.dropzone { 
    min-height: 38px; 
    border: 1.5px dashed #aaa; 
    border-radius: 6px; 
    margin: 6px 0; 
    background: #f0f0f0; 
}

.dropzone.over { 
    background: #eaf3ea; 
    border-color: #4f774f; 
}

.positions-list .dropzone { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.positions-list .position-label { 
    width: 32px; 
    font-weight: bold; 
    color: #555; 
}
