.member-management-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    margin-bottom: 40px;
}

.member-management-container h2, .member-management-container h3 {
    text-align: center;
    color: #333;
}

.note-box {
    background-color: #e7f3fe;
    border-left: 6px solid #2196F3;
    margin: 20px 0;
    padding: 10px;
    color: #333;
    text-align: center;
}

.add-member-form, .member-list {
    margin-top: 20px;
}

.add-member-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.add-member-form input[type="text"],
.add-member-form input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%; /* Make inputs take full width */
    max-width: 400px; /* Limit the maximum width */
}

.add-member-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 30px;
}

.add-member-form button:hover {
    background-color: #0056b3;
}

.member-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.member-list th, .member-list td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.member-list th {
    background-color: #f2f2f2;
}

.member-list button {
    padding: 5px 10px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.member-list button:hover {
    background-color: #c82333;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px; /* Limit the maximum width */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-buttons button:first-child {
    background-color: #dc3545;
    color: white;
}

.modal-buttons button:first-child:hover {
    background-color: #c82333;
}

.modal-buttons button:last-child {
    background-color: #6c757d;
    color: white;
}

.modal-buttons button:last-child:hover {
    background-color: #5a6268;
}

.remove-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Access Log */
.access-log-container {
    margin: 40px 20px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.access-log-container h3 {
    margin-bottom: 20px;
    color: #333;
}
.table-responsive {
    overflow-x: auto;
}
.access-log-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}
.access-log-table th, .access-log-table td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: left;
}
.access-log-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    font-size: 12px;
}
.access-log-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.access-log-table tr:hover {
    background-color: #f5f5f5;
}
.access-log-table td:first-child {
    white-space: nowrap;
}

@media screen and (max-width: 600px) {
    .access-log-table {
        border: 0;
    }
    .access-log-table thead {
        display: none;
    }
    .access-log-table tr {
        margin-bottom: 10px;
        display: block;
        border-bottom: 2px solid #ddd;
    }
    .access-log-table td {
        display: block;
        text-align: right;
        font-size: 13px;
        border-bottom: 1px dotted #ccc;
    }
    .access-log-table td:last-child {
        border-bottom: 0;
    }
    .access-log-table td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }
}

.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.admin-pagination a, .admin-pagination span {
    color: #333;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
    font-size: 14px;
}

.admin-pagination a:hover {
    background-color: #ddd;
}

.admin-pagination .admin-current-page {
    background-color: #333;
    color: white;
    border: 1px solid #333;
}

.admin-pagination .admin-ellipsis {
    background-color: #f1f1f1;
    color: #999;
    pointer-events: none;
}

@media screen and (max-width: 600px) {
    .admin-pagination a, .admin-pagination span {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Database Management Styles */
.admin-db-management {
    margin: 40px 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-db-management h3 {
    margin-bottom: 20px;
    color: #333;
}

.admin-db-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-db-button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.admin-db-button:hover {
    background-color: #0056b3;
}

.admin-db-table-container {
    overflow-x: auto;
}

.admin-db-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-db-table th, .admin-db-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.admin-db-table th:nth-child(6),
.admin-db-table th:nth-child(7),
.admin-db-table td:nth-child(6),
.admin-db-table td:nth-child(7) {
    width: 60px;
    text-align: center;
}

.admin-db-edit-btn, .admin-db-delete-btn {
    padding: 5px 10px;
    margin-right: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.admin-db-edit-btn {
    background-color: #28a745;
    color: white;
}

.admin-db-edit-btn:hover {
    background-color: #218838;
}

.admin-db-delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.admin-db-delete-btn:hover {
    background-color: #c82333;
}

.admin-db-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.admin-db-pagination a, .admin-db-pagination span {
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    color: #007bff;
    text-decoration: none;
    border-radius: 4px;
}

.admin-db-pagination a:hover {
    background-color: #f2f2f2;
}

.admin-db-current-page {
    background-color: #007bff;
    color: white !important;
}

.admin-db-ellipsis {
    color: #6c757d;
}

/* Modal Styles */
.admin-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.admin-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
}

.admin-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.admin-modal-close:hover {
    color: #000;
}

.admin-modal-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.admin-modal-buttons button {
    margin-left: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.admin-modal-buttons button:first-child {
    background-color: #dc3545;
    color: white;
}

.admin-modal-buttons button:last-child {
    background-color: #6c757d;
    color: white;
}

.admin-db-file-check {
    text-align: center;
}

.admin-db-file-exists {
    color: #28a745;
}

.admin-db-file-missing {
    color: #dc3545;
}

.admin-db-file-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

.admin-db-file-link:hover {
    transform: scale(1.2);
}

.admin-db-table th, .admin-db-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.admin-db-table th:nth-child(6),
.admin-db-table th:nth-child(7),
.admin-db-table td:nth-child(6),
.admin-db-table td:nth-child(7) {
    width: 60px;
    text-align: center;
}

/* New styles for the song delete popup */
.song-delete-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.song-delete-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    text-align: center;
}

.song-delete-modal-buttons {
    margin-top: 20px;
}

.song-delete-modal-button {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.song-delete-modal-confirm {
    background-color: #dc3545;
    color: white;
}

.song-delete-modal-cancel {
    background-color: #6c757d;
    color: white;
}

.song-delete-modal-button:hover {
    opacity: 0.8;
}

.admin-db-table th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px; /* Make room for the sort indicator */
}

.admin-db-table th.sortable:hover {
    background-color: #f0f0f0;
}

.admin-db-table th .sort-indicator {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    width: 10px;
    text-align: center;
}

/* Remove any existing :after pseudo-elements */
.admin-db-table th.sortable:after,
.admin-db-table th.sorted-asc:after,
.admin-db-table th.sorted-desc:after {
    content: none;
}