/* Navbar Styling */
.navbar {
    background-color: #333; /* Dark background for the navbar */
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    margin-bottom: 30px; /* Space between navbar and main content */
}

.navbar-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
    transition: color 0.3s ease;
    margin: 0 30px 0 30px;
}

.navbar-brand a:hover {
    color: #4a90e2; /* Highlight color on hover */
}

.navbar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Makes nav links horizontal */
    gap: 25px; /* Space between links */
}

.navbar-nav li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    padding: 5px 0;
    position: relative; /* For the underline effect */
    transition: color 0.3s ease;
}

.navbar-nav li a:hover {
    color: #4a90e2;
}

/* Underline effect on hover */
.navbar-nav li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #4a90e2;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-in-out;
}

.navbar-nav li a:hover::after {
    width: 100%;
}

/* Responsive Navbar (for smaller screens) */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column; /* Stack brand and nav vertically */
        padding: 10px 15px;
    }

    .navbar-brand {
        margin-bottom: 10px; /* Space between brand and nav links when stacked */
    }

    .navbar-nav ul {
        flex-direction: column; /* Stack nav links vertically */
        gap: 10px; /* Adjust gap for vertical stacking */
        text-align: center;
        width: 100%; /* Make links take full width */
    }

    .navbar-nav li a {
        display: block; /* Make links block level for better touch target */
        padding: 8px 0;
    }
}


/* Existing CSS from previous response (keep below navbar styles) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}

main {
    /* Add these styles to your main element */
    display: flex; /* Make it a flex container */
    justify-content: center; /* Center its immediate children (your .container) horizontally */
    width: 100%; /* Ensure it spans the full width available */
    /* If you added max-width to .container, you might want to add it here too */
    /* max-width: 1200px; */ /* Make sure it doesn't get too wide on very large screens */
}

.container {
    display: flex;
    gap: 30px;
    padding: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.panel {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    flex-grow: 1;
    min-width: 300px;
    max-width: 500px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
}

h2 {
    color: #4a90e2;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 400;
}

a {
    color: #4a90e2;
    cursor: pointer;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

label {
    font-weight: 500;
    color: #555;
}

footer {
  margin-top: 100px;
}

input[type="text"],
input[type="email"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

button {
    background-color: #4a90e2;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.member-list-management ul,
#turn-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-list-management li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #444;
}

.member-list-management li:last-child {
    border-bottom: none;
}

.member-list-management .member-actions {
    display: flex;
    gap: 10px;
}

.member-list-management .member-actions button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #4a90e2;
    transition: color 0.3s ease;
}

.member-list-management .member-actions button.delete-btn {
    color: #e74c3c;
}

.member-list-management .member-actions button:hover {
    color: #357ABD;
    text-decoration: underline;
    background-color: transparent;
    transform: none;
}

.member-list-management .member-actions button.delete-btn:hover {
    color: #c0392b;
}

#turn-tracker-panel .tracker-controls {
    text-align: center;
    margin-bottom: 25px;
}

#turn-list li {
    background-color: #e8f0fe;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

#turn-list li.current-turn {
    background-color: #4a90e2; /* Vibrant blue for the current turn */
    color: white; /* White text for contrast */
    transform: scale(1.02); /* Slightly enlarges the current item */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* More prominent shadow */
    font-weight: 600; /* Make the text bolder */
    border: 2px solid #357ABD; /* Add a border for extra emphasis */
    position: relative; /* Needed for potential ::before/::after elements */
}

#turn-list li.current-turn::before {
    content: '▶'; /* A play icon or arrow */
    color: white;
    font-size: 1.2em;
    margin-right: 10px;
    transform: translateY(1px); /* Slight vertical adjustment */
}

#current-turn-display {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a90e2;
    padding: 10px;
    background-color: #e8f0fe;
    border-radius: 8px;
}

#tracker-details {
    max-height: 800px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .panel {
        width: 90%;
        max-width: 450px;
    }
}

.tracker-detail {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

table, tr, td {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 5px;
}

.success {
    color: green;
}

.warning {
    color: red;
}