/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #1F2223;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.logo {
    display: block;
    margin: 0 auto 20px;
    width: 150px;
    height: auto;
}

h1, h2, p {
    color: #000000;
}

a {
    text-decoration: none;
    color: #333;
}
footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}
footer p {
    color: white !important; /* Force text color to white */
}

/* Base Button Styles */
.logout-button, .member-button, .action-button, .save-button input[type="submit"] {
    display: inline-block;
    width: 250px; /* Set a fixed width for buttons */
    height: 50px; /* Set a fixed height for buttons */
    padding: 12px; /* Same padding */
    color: white;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s, transform 0.2s;
    margin: 8px;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Ensure padding is included in width/height */
}

/* Logout Button Styles */
.logout-button {
    background-color: #e74c3c; /* Red */
}

.logout-button:hover {
    background-color: #c0392b; /* Darker red */
}

.logout-button:active {
    background-color: #a93226; /* Even darker red */
}

/* Member Button Styles */
.member-button {
    background-color: #e74c3c; /* Default red color */
}

.member-button.welpen-meiden {
    background-color: #28a745; /* Green for welpen-meiden */
}

.member-button.welpen-meiden:hover {
    background-color: #218838; /* Darker green for hover */
}

.member-button.welpen-meiden:active {
    background-color: #1e7e34; /* Even darker green for active state */
}

.member-button.bevers,
.member-button.explorer {
    background-color: #e74c3c; /* Red color for bevers and explorer */
}

.member-button.bevers:hover,
.member-button.explorer:hover {
    background-color: #c0392b; /* Darker red for hover */
}

.member-button.bevers:active,
.member-button.explorer:active {
    background-color: #a93226; /* Even darker red for active state */
}

/* Sherpas and Verkenners Button Styles */
.member-button.sherpas-verkenners {
    background-color: #C3A175; /* Base beige color */
}

.member-button.sherpas-verkenners:hover {
    background-color: #A68E66; /* Darker beige for hover */
}

.member-button.sherpas-verkenners:active {
    background-color: #8F7A54; /* Even darker beige for active state */
}

/* Save Button Styles */
.save-button {
    background-color: #28a745; /* Green for save */
}

.save-button:hover {
    background-color: #218838; /* Darker green for hover */
}

.save-button:active {
    background-color: #1e7e34; /* Even darker green for active state */
}


/* Action Button Styles */
.action-button {
    background-color: #3498db; /* Blue for action buttons */
}

.action-button:hover {
    background-color: #2980b9; /* Darker blue for hover */
}

.action-button:active {
    background-color: #1f6f92; /* Even darker blue for active state */
}


/* Form Container */
.login-container, .form-container {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px; /* Adjusted for mobile */
    box-sizing: border-box;
    text-align: center;
    max-height: 80vh; /* Max height */
    overflow-y: auto; /* Vertical scrolling if needed */
    scrollbar-width: none; /* Firefox scrollbar styling */
    -ms-overflow-style: none; /* Internet Explorer scrollbar styling */
}

.login-container::-webkit-scrollbar, .form-container::-webkit-scrollbar {
    display: none; /* Safari and Chrome scrollbar styling */
}

.login-container h2, .form-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.login-container .form-group, .form-container .form-group {
    display: grid;
    grid-template-columns: 1fr; /* Full width for mobile */
    align-items: center;
    margin: 10px 0;
    gap: 10px;
}

.login-container label, .form-container label {
    font-weight: bold;
    text-align: left; /* Left align for mobile */
}

.login-container input[type="text"], 
.login-container input[type="password"],
.login-container input[type="email"],
.form-container input[type="text"], 
.form-container input[type="password"],
.form-container input[type="email"],
.form-container select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%; /* Full width for inputs and selects */
    box-sizing: border-box; /* Include padding in width */
}

.login-container input[type="submit"], 
.form-container input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.login-container input[type="submit"]:hover, 
.form-container input[type="submit"]:hover {
    background-color: #45a049;
}

.error {
    color: red;
    margin-top: 10px;
    font-size: 14px;
}

/* Table Container */
.table-container {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%; /* Ensure it can expand to fit content */
    box-sizing: border-box;
    text-align: center;
    margin: 0 auto; /* Center container horizontally */
    overflow-x: auto; /* Handle horizontal overflow */
}

/* Table Styles */
table {
    width: auto; /* Allow table to adjust its width based on content */
    min-width: 100%; /* Ensure table takes at least the width of the container */
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
    white-space: nowrap; /* Prevents text from wrapping */
}

th {
    background-color: #f2f2f2;
}

/* Ensure columns size based on content */
table col {
    width: auto;
}

/* Add this to ensure column widths adjust automatically */
table colgroup {
    display: table-column-group;
}

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

/* Sticky First Column */
table th:first-child, 
table td:first-child {
    position: sticky;
    left: 0;
    background-color: white; /* Background color to match table */
    z-index: 2; /* Ensures the sticky column stays on top of other content */
    border-right: 2px solid #ddd; /* Optional: Adds a border to separate the sticky column from the rest */
}

/* Table Row Hover Effect */
tbody tr:hover {
    background-color: #e9ecef; /* Light grey background on hover */
}

/* Clickable First Column */
table td:first-child {
    color: #007bff; /* Blue color for clickable links */
    text-decoration: underline; /* Underline to indicate it's clickable */
    cursor: pointer; /* Pointer cursor to show it's clickable */
}

table td:first-child:hover {
    color: #0056b3; /* Darker blue on hover */
}

/* Optional: Add a transition effect */
table td:first-child {
    transition: color 0.3s;
}

/* Media Queries */
@media (min-width: 768px) {
    .login-container .form-group {
        grid-template-columns: 200px 1fr; /* Adjust for larger screens */
    }

    .form-container .form-group {
        grid-template-columns: 350px 1fr; /* Adjust for larger screens */
    }
}

@media (min-width: 992px) {
    .login-container, .form-container {
        width: 80%; /* Make containers larger on larger screens */
    }
}

/* Success Message */
.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Back Button */
.back-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 16px;
    color: #fff; /* Text color */
    background-color: #007bff; /* Button background color */
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none; /* Remove underline from links */
    cursor: pointer;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #0056b3; /* Background color on hover */
}

.popup-form {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: 1px solid #ccc;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.popup-form .close-btn {
    display: inline-block;
    padding: 5px 10px;
    border: none;
    background-color: #f44336;
    color: white;
    cursor: pointer;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.popup-form {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border: 1px solid #ccc;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 300px;
}

.popup-form .close-btn {
    display: inline-block;
    padding: 5px 10px;
    border: none;
    background-color: #f44336;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.popup-form label {
    display: block;
    margin: 10px 0 5px;
}

.popup-form input, .popup-form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

.popup-form button {
    padding: 10px;
    border: none;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    width: 100%;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.success-message {
    display: none;
    color: green;
    font-weight: bold;
    margin-top: 10px;
}

.success-message.visible {
    display: block;
}

.error-message {
    color: red;
    border: 1px solid red;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #fdd;
}
/* Member List Styles */
.member-list {
    list-style-type: none; /* Remove default list dots */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}

/* Individual Member Item */
.member-item {
    display: flex; /* Use flex for better alignment */
    align-items: center; /* Center items vertically */
    padding: 10px; /* Add padding for spacing */
    background-color: #f9f9f9; /* Light background for each item */
    border-radius: 4px; /* Rounded corners */
    margin: 5px 0; /* Spacing between items */
    transition: background-color 0.3s; /* Transition effect on hover */
}

.member-item:hover {
    background-color: #e9ecef; /* Change background on hover */
}

.forgot-password {
    display: inline-block;
    width: 85%; /* Full width like the submit button */
    padding: 12px; /* Same padding as submit button */
    background-color: #007BFF; /* Same background color */
    border: none; /* No border */
    border-radius: 4px; /* Rounded corners */
    color: white; /* Text color */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Pointer cursor */
    text-align: center; /* Centered text */
    margin-top: 10px; /* Space above the button */
    text-decoration: none; /* Remove underline */
}

.forgot-password:hover {
    background-color: #0056b3; /* Darker background on hover */
}

.form-container input[type="submit"] {
    display: inline-block;
    width: 250px; /* Set a fixed width for buttons */
    height: 50px; /* Set a fixed height for buttons */
    padding: 12px; /* Same padding */
    color: white;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s, transform 0.2s;
    margin: 8px;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Ensure padding is included in width/height */
    }

    .save-button-container {
        display: flex; /* Align icon and button in a row */
        align-items: center; /* Center vertically */
        margin-top: 10px; /* Space above the button */
        justify-content: center; /* Center the contents */
    }
    .save-button {
        display: inline-block;
        width: 250px; /* Set a fixed width for buttons */
        height: 50px; /* Set a fixed height for buttons */
        padding: 12px; /* Same padding */
        color: white;
        background-color: #4CAF50; /* Match the background color of form submit buttons */
        border-radius: 8px;
        font-size: 18px;
        text-align: center;
        cursor: pointer;
        border: none;
        transition: background-color 0.3s, transform 0.2s;
        margin-left: 8px; /* Space between the icon and the input */
        text-transform: uppercase;
        font-weight: bold;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        box-sizing: border-box; /* Ensure padding is included in width/height */
    }