/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: black;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: black;
    color: yellow;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 1rem;
}

nav ul li a {
    color: yellow;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #333;
}

/* Main Content */
main {
    padding: 2rem 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: black;
}

button, .btn {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

button:hover, .btn:hover {
    background-color: #555;
}

.btn-primary {
    background-color: #444;
    color: yellow;
}

.btn-danger {
    background-color: #d9534f;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #333;
    color: white;
}

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

/* Alert Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #dff0d8;
    color: #3c763d;
}

.alert-error {
    background-color: #f2dede;
    color: #a94442;
}

/* Member Photo */
.member-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge.active {
    background-color: #5cb85c;
    color: white;
}

.badge.inactive {
    background-color: #d9534f;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.pagination a {
    color: black;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 0.25rem;
}

.pagination a.active {
    background-color: #333;
    color: white;
    border: 1px solid #333;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* Flash messages */
.flash-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.flash-message.success {
    background-color: #dff0d8;
    color: #3c763d;
}

.flash-message.error {
    background-color: #f2dede;
    color: #a94442;
}

/* Ensure body has proper padding to account for fixed navbar */
body {
    padding-top: 20px;
    background-color: white;
    color: black;
}

/* Custom badge styles to match Bootstrap */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Custom table styles */
.table th {
    background-color: #343a40;
    color: white;
}

/* Custom button styles */
.btn-primary {
    background-color: #343a40;
    border-color: #343a40;
    color: #ffc107;
}

.btn-primary:hover {
    background-color: #23272b;
    border-color: #1d2124;
    color: #ffc107;
}
