/* General styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* Form sections */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.form-section h2 {
    margin-top: 0;
    color: #444;
    font-size: 1.4em;
    margin-bottom: 20px;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.2);
}

/* Postcode lookup */
.postcode-group {
    display: flex;
    gap: 10px;
}

.postcode-group input {
    flex: 1;
}

#lookupAddress {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

#lookupAddress:hover {
    background-color: #45a049;
}

/* Submit button */
.submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #45a049;
}

/* Admin dashboard styles */
.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.nav-brand {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: #4CAF50;
    color: white;
}

/* DataTables customization */
.dataTables_wrapper .dataTables_filter input {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
}

.dataTables_wrapper .dataTables_length select {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Column toggle dropdown */
.dropdown-content {
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-content label {
    display: block;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dropdown-content label:hover {
    background-color: #f5f5f5;
}

/* Export buttons */
.btn-group {
    display: flex;
    gap: 10px;
}

.btn-excel,
.btn-pdf {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    transition: opacity 0.3s;
}

.btn-excel {
    background-color: #217346;
}

.btn-pdf {
    background-color: #ff0000;
}

.btn-excel:hover,
.btn-pdf:hover {
    opacity: 0.9;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .postcode-group {
        flex-direction: column;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Navigation */
.navigation {
    background-color: #333;
    padding: 10px 0;
    margin-bottom: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    margin: 0 5px;
}

.nav-link:hover {
    background-color: #555;
}

.nav-link.active {
    background-color: #4CAF50;
}

/* Form styles */
form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-col {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}

button.text-btn {
    background: none;
    color: #4CAF50;
    padding: 5px;
    text-decoration: underline;
}

button.text-btn:hover {
    color: #45a049;
}

/* Error messages */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

/* Address section */
.address-section {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 15px 0;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.address-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Admin dashboard styles */
.admin-dashboard {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-title {
    margin: 0;
    color: #333;
}

.logout-btn {
    background-color: #dc3545;
}

.logout-btn:hover {
    background-color: #c82333;
}

/* DataTable customization */
.dataTables_wrapper {
    margin-top: 20px;
}

table.dataTable {
    border-collapse: collapse;
    width: 100%;
}

table.dataTable thead th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: bold;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

table.dataTable tbody td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

table.dataTable tbody tr:hover {
    background-color: #f5f5f5;
}

.edit-btn,
.delete-btn {
    padding: 6px 12px;
    margin: 0 4px;
    font-size: 14px;
}

.edit-btn {
    background-color: #007bff;
}

.edit-btn:hover {
    background-color: #0056b3;
}

.delete-btn {
    background-color: #dc3545;
}

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

/* Sweet Alert customization */
.swal2-popup {
    font-size: 14px;
}

.swal2-title {
    color: #333;
}

.swal2-content {
    color: #666;
}

.swal2-styled.swal2-confirm {
    background-color: #4CAF50;
}

.swal2-styled.swal2-cancel {
    background-color: #dc3545;
}

/* Responsive design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .container {
        padding: 10px;
    }
    
    table.dataTable {
        display: block;
        overflow-x: auto;
    }
    
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-header button {
        margin-top: 10px;
    }
}

/* Members List Styles */
.members-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.toggle-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 1rem;
}

.members-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

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

.members-list th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.members-list tr:hover {
    background-color: #f9f9f9;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #666;
}

/* Admin Login Styles */
.admin-login-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Admin Navigation */
.admin-nav {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.admin-content {
    padding: 0 2rem;
}

/* Registration Form */
#membershipForm {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Action Buttons */
.action-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 0.25rem;
    color: white;
}

.action-btn.edit {
    background-color: var(--primary-color);
}

.action-btn.delete {
    background-color: #f44336;
}

.action-btn:hover {
    opacity: 0.9;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #666;
}

#editMemberForm button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
}

#editMemberForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#adminLoginForm button[type="submit"] {
    background-color: var(--primary-color);
    width: 100%;
    margin-top: 1.5rem;
}

#adminLoginForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#logoutBtn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

#logoutBtn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Members Grid Styles */
.members-grid {
    margin-top: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Admin Navigation */
.admin-nav {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.admin-content {
    padding: 0 2rem;
}

/* DataTables Customization */
.dataTables_wrapper {
    padding: 1rem 0;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 4px;
    font-size: 0.875rem;
}

.action-btn.edit {
    background-color: #2196F3;
    color: white;
}

.action-btn.delete {
    background-color: #f44336;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
}

/* Export Buttons */
.dt-buttons {
    margin-bottom: 1rem;
}

.dt-button {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    margin-right: 8px !important;
}

.dt-button:hover {
    background-color: var(--primary-dark) !important;
    color: white !important;
}

/* Registration Form */
#membershipForm {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Action Buttons */
.action-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 0.25rem;
    color: white;
}

.action-btn.edit {
    background-color: var(--primary-color);
}

.action-btn.delete {
    background-color: #f44336;
}

.action-btn:hover {
    opacity: 0.9;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #666;
}

#editMemberForm button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
}

#editMemberForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#adminLoginForm button[type="submit"] {
    background-color: var(--primary-color);
    width: 100%;
    margin-top: 1.5rem;
}

#adminLoginForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#logoutBtn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

#logoutBtn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Address Section Styles */
.address-section {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    background-color: white;
}

.address-section h3 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.postcode-search {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.postcode-search input {
    flex: 1;
}

.secondary-btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.text-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.text-btn:hover {
    color: var(--primary-dark);
}

.error-message {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

#addressSelect {
    width: 100%;
    padding: 10px;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

#manualAddress {
    margin-top: 1rem;
}

/* DataTables Customization */
.dataTables_wrapper {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table.dataTable {
    background: white;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
}

table.dataTable thead th {
    background-color: white;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-light) !important;
    padding: 12px !important;
}

table.dataTable tbody td {
    padding: 12px !important;
    border-bottom: 1px solid #eee;
}

table.dataTable tbody tr:hover {
    background-color: var(--bg-color) !important;
}

.dataTables_length,
.dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_length select,
.dataTables_filter input {
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
}

.dataTables_info,
.dataTables_paginate {
    margin-top: 1rem;
    padding: 8px 0;
}

.paginate_button {
    padding: 0.5rem !important;
    border-radius: 4px !important;
    margin: 0 4px !important;
}

.paginate_button:hover {
    background: var(--bg-color) !important;
    border-color: var(--primary-light) !important;
}

.paginate_button.current {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Export Buttons */
.dt-buttons {
    margin-bottom: 1rem;
}

.dt-button {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    margin-right: 8px !important;
}

.dt-button:hover {
    background-color: var(--primary-dark) !important;
    color: white !important;
}

/* Action Buttons */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 4px;
    font-size: 0.875rem;
}

.action-btn.edit {
    background-color: #2196F3;
    color: white;
}

.action-btn.delete {
    background-color: #f44336;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #666;
}

#editMemberForm button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
}

#editMemberForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#adminLoginForm button[type="submit"] {
    background-color: var(--primary-color);
    width: 100%;
    margin-top: 1.5rem;
}

#adminLoginForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#logoutBtn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

#logoutBtn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Members Grid Styles */
.members-grid {
    margin-top: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Admin Navigation */
.admin-nav {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.admin-content {
    padding: 0 2rem;
}

/* DataTables Customization */
.dataTables_wrapper {
    padding: 1rem 0;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 4px;
    font-size: 0.875rem;
}

.action-btn.edit {
    background-color: #2196F3;
    color: white;
}

.action-btn.delete {
    background-color: #f44336;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
}

/* Export Buttons */
.dt-buttons {
    margin-bottom: 1rem;
}

.dt-button {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    margin-right: 8px !important;
}

.dt-button:hover {
    background-color: var(--primary-dark) !important;
    color: white !important;
}

/* Registration Form */
#membershipForm {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Action Buttons */
.action-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 0.25rem;
    color: white;
}

.action-btn.edit {
    background-color: var(--primary-color);
}

.action-btn.delete {
    background-color: #f44336;
}

.action-btn:hover {
    opacity: 0.9;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #666;
}

#editMemberForm button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
}

#editMemberForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#adminLoginForm button[type="submit"] {
    background-color: var(--primary-color);
    width: 100%;
    margin-top: 1.5rem;
}

#adminLoginForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#logoutBtn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

#logoutBtn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Address Section Styles */
.address-section {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    background-color: white;
}

.address-section h3 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.postcode-search {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.postcode-search input {
    flex: 1;
}

.secondary-btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.text-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.text-btn:hover {
    color: var(--primary-dark);
}

.error-message {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

#addressSelect {
    width: 100%;
    padding: 10px;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

#manualAddress {
    margin-top: 1rem;
}

/* DataTables Customization */
.dataTables_wrapper {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table.dataTable {
    background: white;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
}

table.dataTable thead th {
    background-color: white;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-light) !important;
    padding: 12px !important;
}

table.dataTable tbody td {
    padding: 12px !important;
    border-bottom: 1px solid #eee;
}

table.dataTable tbody tr:hover {
    background-color: var(--bg-color) !important;
}

.dataTables_length,
.dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_length select,
.dataTables_filter input {
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
}

.dataTables_info,
.dataTables_paginate {
    margin-top: 1rem;
    padding: 8px 0;
}

.paginate_button {
    padding: 0.5rem !important;
    border-radius: 4px !important;
    margin: 0 4px !important;
}

.paginate_button:hover {
    background: var(--bg-color) !important;
    border-color: var(--primary-light) !important;
}

.paginate_button.current {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Export Buttons */
.dt-buttons {
    margin-bottom: 1rem;
}

.dt-button {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    margin-right: 8px !important;
}

.dt-button:hover {
    background-color: var(--primary-dark) !important;
    color: white !important;
}

/* Action Buttons */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 4px;
    font-size: 0.875rem;
}

.action-btn.edit {
    background-color: #2196F3;
    color: white;
}

.action-btn.delete {
    background-color: #f44336;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #666;
}

#editMemberForm button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
}

#editMemberForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#adminLoginForm button[type="submit"] {
    background-color: var(--primary-color);
    width: 100%;
    margin-top: 1.5rem;
}

#adminLoginForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#logoutBtn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

#logoutBtn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Members Grid Styles */
.members-grid {
    margin-top: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Admin Navigation */
.admin-nav {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.admin-content {
    padding: 0 2rem;
}

/* DataTables Customization */
.dataTables_wrapper {
    padding: 1rem 0;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 4px;
    font-size: 0.875rem;
}

.action-btn.edit {
    background-color: #2196F3;
    color: white;
}

.action-btn.delete {
    background-color: #f44336;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
}

/* Export Buttons */
.dt-buttons {
    margin-bottom: 1rem;
}

.dt-button {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    margin-right: 8px !important;
}

.dt-button:hover {
    background-color: var(--primary-dark) !important;
    color: white !important;
}

/* Registration Form */
#membershipForm {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Action Buttons */
.action-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 0.25rem;
    color: white;
}

.action-btn.edit {
    background-color: var(--primary-color);
}

.action-btn.delete {
    background-color: #f44336;
}

.action-btn:hover {
    opacity: 0.9;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #666;
}

#editMemberForm button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
}

#editMemberForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#adminLoginForm button[type="submit"] {
    background-color: var(--primary-color);
    width: 100%;
    margin-top: 1.5rem;
}

#adminLoginForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#logoutBtn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

#logoutBtn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Address Section Styles */
.address-section {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    background-color: white;
}

.address-section h3 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.postcode-search {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.postcode-search input {
    flex: 1;
}

.secondary-btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.text-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.text-btn:hover {
    color: var(--primary-dark);
}

.error-message {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

#addressSelect {
    width: 100%;
    padding: 10px;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

#manualAddress {
    margin-top: 1rem;
}

/* DataTables Customization */
.dataTables_wrapper {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table.dataTable {
    background: white;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
}

table.dataTable thead th {
    background-color: white;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-light) !important;
    padding: 12px !important;
}

table.dataTable tbody td {
    padding: 12px !important;
    border-bottom: 1px solid #eee;
}

table.dataTable tbody tr:hover {
    background-color: var(--bg-color) !important;
}

.dataTables_length,
.dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_length select,
.dataTables_filter input {
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
}

.dataTables_info,
.dataTables_paginate {
    margin-top: 1rem;
    padding: 8px 0;
}

.paginate_button {
    padding: 0.5rem !important;
    border-radius: 4px !important;
    margin: 0 4px !important;
}

.paginate_button:hover {
    background: var(--bg-color) !important;
    border-color: var(--primary-light) !important;
}

.paginate_button.current {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Export Buttons */
.dt-buttons {
    margin-bottom: 1rem;
}

.dt-button {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    margin-right: 8px !important;
}

.dt-button:hover {
    background-color: var(--primary-dark) !important;
    color: white !important;
}

/* Action Buttons */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 4px;
    font-size: 0.875rem;
}

.action-btn.edit {
    background-color: #2196F3;
    color: white;
}

.action-btn.delete {
    background-color: #f44336;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #666;
}

#editMemberForm button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
}

#editMemberForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#adminLoginForm button[type="submit"] {
    background-color: var(--primary-color);
    width: 100%;
    margin-top: 1.5rem;
}

#adminLoginForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#logoutBtn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

#logoutBtn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Members Grid Styles */
.members-grid {
    margin-top: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Admin Navigation */
.admin-nav {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.admin-content {
    padding: 0 2rem;
}

/* DataTables Customization */
.dataTables_wrapper {
    padding: 1rem 0;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 4px;
    font-size: 0.875rem;
}

.action-btn.edit {
    background-color: #2196F3;
    color: white;
}

.action-btn.delete {
    background-color: #f44336;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
}

/* Export Buttons */
.dt-buttons {
    margin-bottom: 1rem;
}

.dt-button {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    margin-right: 8px !important;
}

.dt-button:hover {
    background-color: var(--primary-dark) !important;
    color: white !important;
}

/* Registration Form */
#membershipForm {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Action Buttons */
.action-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 0.25rem;
    color: white;
}

.action-btn.edit {
    background-color: var(--primary-color);
}

.action-btn.delete {
    background-color: #f44336;
}

.action-btn:hover {
    opacity: 0.9;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #666;
}

#editMemberForm button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
}

#editMemberForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#adminLoginForm button[type="submit"] {
    background-color: var(--primary-color);
    width: 100%;
    margin-top: 1.5rem;
}

#adminLoginForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#logoutBtn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

#logoutBtn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Address Section Styles */
.address-section {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    background-color: white;
}

.address-section h3 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.postcode-search {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.postcode-search input {
    flex: 1;
}

.secondary-btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.text-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.text-btn:hover {
    color: var(--primary-dark);
}

.error-message {
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

#addressSelect {
    width: 100%;
    padding: 10px;
    margin-top: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

#manualAddress {
    margin-top: 1rem;
}

/* DataTables Customization */
.dataTables_wrapper {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table.dataTable {
    background: white;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
}

table.dataTable thead th {
    background-color: white;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-light) !important;
    padding: 12px !important;
}

table.dataTable tbody td {
    padding: 12px !important;
    border-bottom: 1px solid #eee;
}

table.dataTable tbody tr:hover {
    background-color: var(--bg-color) !important;
}

.dataTables_length,
.dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_length select,
.dataTables_filter input {
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
}

.dataTables_info,
.dataTables_paginate {
    margin-top: 1rem;
    padding: 8px 0;
}

.paginate_button {
    padding: 0.5rem !important;
    border-radius: 4px !important;
    margin: 0 4px !important;
}

.paginate_button:hover {
    background: var(--bg-color) !important;
    border-color: var(--primary-light) !important;
}

.paginate_button.current {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

/* Export Buttons */
.dt-buttons {
    margin-bottom: 1rem;
}

.dt-button {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    margin-right: 8px !important;
}

.dt-button:hover {
    background-color: var(--primary-dark) !important;
    color: white !important;
}

/* Action Buttons */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 4px;
    font-size: 0.875rem;
}

.action-btn.edit {
    background-color: #2196F3;
    color: white;
}

.action-btn.delete {
    background-color: #f44336;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #666;
}

#editMemberForm button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
}

#editMemberForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#adminLoginForm button[type="submit"] {
    background-color: var(--primary-color);
    width: 100%;
    margin-top: 1.5rem;
}

#adminLoginForm button[type="submit"]:hover {
    background-color: var(--primary-dark);
}

#logoutBtn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

#logoutBtn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Members Grid Styles */
.members-grid {
    margin-top: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Admin Navigation */
.admin-nav {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 2rem;
}

.nav-brand {
    font-size: 1.5rem;
