/* Assuming header is fixed */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* Bootstrap navbar z-index */
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Assuming sidebar is fixed or sticky */
.sidebar {
    position: fixed;
    top: 60px; /* Adjust based on header height */
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 250px; /* Adjust based on your sidebar width */
    background-color: #f8f9fa;
    overflow-y: auto;
    padding-top: 20px;
}

/* Main content adjustments */
.main-content {
    padding-top: 80px; /* Space for fixed header */
    padding-left: 270px; /* Space for fixed sidebar */
    padding-right: 20px;
    padding-bottom: 20px;
    min-height: calc(100vh - 80px); /* Ensure content fills viewport minus header */
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }
    .main-content {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 70px; /* Slightly less for mobile */
    }
}

/* Ensure tables and cards don't overflow */
.table-responsive {
    overflow-x: auto;
}

.card {
    width: 100%;
    box-sizing: border-box;
}

/* Ensure content visibility */
h2, .card, .alert {
    position: relative;
    z-index: 1; /* Ensure content is above any background elements */
}

/* Fix chart container */
#financialChart {
    max-width: 100%;
    height: auto;
}



/* General Layout */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    display: flex;
}

.portal-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar .logo {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    padding: 15px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar ul li a:hover {
    background-color: #34495e;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

/* Form Styles */
.registration-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
}

.error-message {
    background-color: #e74c3c;
    color: white;
}

.success-message {
    background-color: #2ecc71;
    color: white;
}

/* Form Builder Specific Styles */
.form-builder-container {
    display: flex;
    gap: 20px;
}

.form-palette {
    width: 250px;
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.draggable-field {
    padding: 10px;
    margin-bottom: 10px;
    background-color: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    cursor: grab;
    transition: background-color 0.2s;
}

.draggable-field:hover {
    background-color: #dfe6e9;
}

.form-editor {
    flex-grow: 1;
    background-color: #fff;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    min-height: 400px;
    transition: border-color 0.2s;
}

.form-editor.drag-over {
    border-color: #3498db;
    background-color: #f8fcfd;
}

#form-canvas {
    padding: 10px;
    min-height: 350px;
    border: 1px dashed #eee;
}

.form-field {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-left: 4px solid #3498db;
    padding: 10px;
    margin-bottom: 10px;
    position: relative;
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.field-actions button {
    font-size: 12px;
    padding: 4px 8px;
    margin-left: 5px;
}

.form-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.form-list th, .form-list td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.form-list th {
    background-color: #f2f2f2;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

/* Dashboard Specific Styles */
.dashboard-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dashboard-section h3 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.quick-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.quick-links li {
    flex: 1 1 200px; /* Allow items to grow and wrap */
}

.quick-links .btn {
    width: 100%;
    text-align: center;
}

.message.info-message {
    background-color: #3498db;
    color: white;
    padding: 15px;
    border-radius: 5px;
}

/* Profile Page Specific Styles */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3498db;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    width: 100%;
    max-width: 500px;
}

/* Member Management Specific Styles */
.member-management-tools {
    margin-bottom: 20px;
    text-align: right;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.member-table th, .member-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.member-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.member-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.member-table td .btn-sm {
    font-size: 12px;
    padding: 5px 10px;
}

.btn-sm.btn-success {
    background-color: #2ecc71;
    color: white;
}

/* Member Directory Specific Styles */
.search-container {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex-grow: 1;
}

.member-directory-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.member-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    margin: 0 0 5px;
    font-size: 1.2em;
}

.member-bio {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

/* Announcement Pages Specific Styles */
.announcement-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.announcement-table th, .announcement-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.announcement-list .announcement-card {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.announcement-card h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #333;
}

.announcement-date {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

.announcement-content {
    line-height: 1.6;
    color: #555;
}

/* Messaging System Specific Styles */
.message-container, .admin-message-container {
    display: flex;
    gap: 20px;
    background-color: #f4f7f6;
    padding: 20px;
    border-radius: 8px;
}

.message-history, .conversation-panel {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.message-bubble {
    background-color: #e9e9eb;
    border-radius: 18px;
    padding: 10px 15px;
    margin-bottom: 10px;
    max-width: 75%;
    position: relative;
}

.message-bubble.sent {
    background-color: #3498db;
    color: white;
    align-self: flex-end;
}

.message-bubble.received {
    background-color: #ecf0f1;
    color: #333;
    align-self: flex-start;
}

.message-bubble .message-timestamp {
    display: block;
    font-size: 0.7em;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

.message-bubble.sent .message-timestamp {
    color: #fff;
}

.message-form {
    margin-top: 20px;
}

.message-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* Admin Messaging Styles */
.admin-message-container {
    display: flex;
    align-items: flex-start;
}

.member-list-sidebar {
    width: 250px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.member-list-sidebar h3 {
    margin-top: 0;
}

.member-list-sidebar ul {
    list-style: none;
    padding: 0;
}

.member-list-sidebar ul li a {
    display: block;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.member-list-sidebar ul li a:hover, .member-list-sidebar ul li a.active {
    background-color: #f0f0f0;
}

.conversation-panel {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 600px;
    display: flex;
    flex-direction: column;
}

.conversation-history {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 15px; /* For scrollbar space */
}

.message-bubble.sent-by-admin {
    background-color: #27ae60;
    color: white;
    align-self: flex-end;
}

.message-bubble.received-by-admin {
    background-color: #bdc3c7;
    color: #333;
    align-self: flex-start;
}

.message-reply-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.select-member-prompt {
    text-align: center;
    color: #777;
    margin-top: 50px;
}

/* Payment & Donation Specific Styles */
.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.payment-table th, .payment-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.payment-table th {
    background-color: #f2f2f2;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

.status-badge.paid {
    background-color: #2ecc71;
}

.status-badge.pending {
    background-color: #f39c12;
}

.status-badge.canceled {
    background-color: #e74c3c;
}

/* Home Page Specific Styles */
.welcome-container {
    text-align: center;
    padding: 50px 20px;
}

.welcome-container h1 {
    font-size: 3em;
    color: #2c3e50;
}

.welcome-container p {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.2em;
}



body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.content {
    margin-left: 220px;
    padding: 20px;
}

h1, h2, h3 {
    color: #333;
}

.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-builder-container {
    display: flex;
    gap: 20px;
}

.form-palette {
    width: 250px;
    background-color: #f8f9fa;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
}

.draggable-field {
    background-color: #007bff;
    color: white;
    padding: 10px;
    margin-bottom: 10px;
    cursor: move;
    border-radius: 3px;
    text-align: center;
}

.form-editor {
    flex-grow: 1;
    background-color: #fff;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
}

#form-canvas {
    min-height: 300px;
    border: 2px dashed #ced4da;
    background-color: #f9f9f9;
    padding: 10px;
    margin-top: 15px;
}

.form-field {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    padding: 10px;
    margin-bottom: 10px;
    cursor: move;
    position: relative;
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.field-name {
    font-weight: bold;
    color: #495057;
}

.required-indicator {
    color: #dc3545;
}

.field-preview {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9em;
}

.field-actions {
    display: flex;
    gap: 5px;
}

.btn {
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9em;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.multi-step-field {
    border: 2px dashed #007bff;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f1f7fe;
    position: relative;
    min-height: 100px;
}

.multi-step-field h3 {
    margin-top: 0;
    color: #0056b3;
}

.multi-step-field .step-actions {
    position: absolute;
    top: 5px;
    right: 5px;
}

.multi-step-field .step-fields {
    min-height: 50px;
    background-color: #e9f0f9;
    padding: 10px;
    border: 1px dashed #ced4da;
}

.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);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-check {
    margin-top: 10px;
}

.form-control {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.list-section {
    margin-top: 20px;
}

.form-list {
    width: 100%;
    border-collapse: collapse;
}

.form-list th, .form-list td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.form-list th {
    background-color: #f2f2f2;
}

.ui-state-highlight {
    border: 1px dashed #666 !important;
    background: #fcf8e3 !important;
    height: 50px;
}

@media print {
    body {
        margin: 0;
    }
    .main-header, .main-footer, .sidebar, .member-actions, .btn {
        display: none !important;
    }
    .member-details-container {
        padding: 20px;
        width: 100%;
        box-shadow: none;
    }
    .card {
        border: none;
        box-shadow: none;
        page-break-inside: avoid;
    }
}


### **4. CSS Styling**

Finally, to make the new sections look good, please add the following CSS rules to your `assets/css/style.css` file. 

```css
/* Styling for announcements on dashboards */
.dashboard-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.announcement-list {
    margin-top: 20px;
}

.announcement-item {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.announcement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
}

.announcement-author {
    font-weight: bold;
    color: #555;
}

.announcement-content-full {
    margin-top: 15px;
    border-left: 3px solid #007bff;
    padding-left: 15px;
}

.read-less-link, .read-more-link {
    display: block;
    margin-top: 10px;
}

/* Hide full content initially */
.d-none {
    display: none !important;
}


/* Member Directory Styles */
.search-container {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex-grow: 1;
}

.member-directory-list {
    display: grid;
    gap: 20px;
}

.member-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 15px;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex-grow: 1;
}

.member-info h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.member-bio {
    color: #555;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .member-directory-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========================================= */
/* 1. General and Main Layout */
/* ========================================= */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* General Link and Logo Styles */
.logo-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.logo-text {
    font-weight: bold;
}

/* ========================================= */
/* 2. Custom UI Components */
/* ========================================= */
/* Cards */
.card-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 1;
}

.card-header {
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card-body {
    font-size: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

/* Messages */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
}

.error-message {
    background-color: #e74c3c;
    color: white;
}

.success-message {
    background-color: #2ecc71;
    color: white;
}

.info-message {
    background-color: #3498db;
    color: white;
}

/* Member Management Specific Styles */
.member-management-tools {
    margin-bottom: 20px;
    text-align: right;
}

.member-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.member-table th, .member-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.member-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.member-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.member-table td .btn-sm {
    font-size: 12px;
    padding: 5px 10px;
}

.btn-sm.btn-success {
    background-color: #2ecc71;
    color: white;
}

/* Member Directory Specific Styles */
.search-container {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex-grow: 1;
}

.member-directory-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.member-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info h3 {
    margin: 0 0 5px;
    font-size: 1.2em;
}

.member-bio {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

/* Announcement Pages Specific Styles */
.announcement-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.announcement-table th, .announcement-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.announcement-list .announcement-card {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.announcement-card h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #333;
}

.announcement-date {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

.announcement-content {
    line-height: 1.6;
    color: #555;
}

/* Messaging System Specific Styles */
.message-container, .admin-message-container {
    display: flex;
    gap: 20px;
    background-color: #f4f7f6;
    padding: 20px;
    border-radius: 8px;
}

.message-history, .conversation-panel {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.message-bubble {
    background-color: #e9e9eb;
    border-radius: 18px;
    padding: 10px 15px;
    margin-bottom: 10px;
    max-width: 75%;
    position: relative;
}

.message-bubble.sent {
    background-color: #3498db;
    color: white;
    align-self: flex-end;
}

.message-bubble.received {
    background-color: #ecf0f1;
    color: #333;
    align-self: flex-start;
}

.message-bubble .message-timestamp {
    display: block;
    font-size: 0.7em;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

.message-bubble.sent .message-timestamp {
    color: #fff;
}

.message-form {
    margin-top: 20px;
}

.message-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* Admin Messaging Styles */
.admin-message-container {
    display: flex;
    align-items: flex-start;
}

.member-list-sidebar {
    width: 250px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.member-list-sidebar h3 {
    margin-top: 0;
}

.member-list-sidebar ul {
    list-style: none;
    padding: 0;
}

.member-list-sidebar ul li a {
    display: block;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}

.member-list-sidebar ul li a:hover, .member-list-sidebar ul li a.active {
    background-color: #f0f0f0;
}

.conversation-panel {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 600px;
    display: flex;
    flex-direction: column;
}

.conversation-history {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 15px;
}

.message-bubble.sent-by-admin {
    background-color: #27ae60;
    color: white;
    align-self: flex-end;
}

.message-bubble.received-by-admin {
    background-color: #bdc3c7;
    color: #333;
    align-self: flex-start;
}

.message-reply-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.select-member-prompt {
    text-align: center;
    color: #777;
    margin-top: 50px;
}

/* Payment & Donation Specific Styles */
.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.payment-table th, .payment-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.payment-table th {
    background-color: #f2f2f2;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

.status-badge.paid {
    background-color: #2ecc71;
}

.status-badge.pending {
    background-color: #f39c12;
}

.status-badge.canceled {
    background-color: #e74c3c;
}

/* Home Page Specific Styles */
.welcome-container {
    text-align: center;
    padding: 50px 20px;
}

.welcome-container h1 {
    font-size: 3em;
    color: #2c3e50;
}

.welcome-container p {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.2em;
}

.sidebar .nav-link {
    transition: background 0.3s ease, color 0.3s ease;
}
.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}
.sidebar .collapse .nav-link {
    font-size: 0.95rem;
    padding-left: 2rem;
}
