/* Basic Reset & Body Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header */
header {
    background-color: #3a8d40; /* SDA green */
    color: white;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Navigation */
nav {
    background-color: #5cb85c; /* Lighter green */
    padding: 0.8rem 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #3a8d40;
}

/* Main Content Area */
main {
    padding: 20px;
    max-width: 960px;
    margin: 20px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block; /* Ensures label takes full width */
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea,
form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
}

form textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 80px;
}

form button {
    background-color: #3a8d40;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #2e7033;
}

/* Messages (Success/Error) */
.message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #333;
    color: white;
    font-size: 0.9rem;
}

/* Dashboard Summary */
.dashboard-summary {
    padding: 20px;
    background-color: #e6ffe6; /* Very light green */
    border-left: 5px solid #5cb85c;
    margin-bottom: 30px;
}

/* Existing general styles (ensure these are already in style.css) */
/* ... (body, header, nav, main, section-card, form-section, etc. as provided before) ... */

/* Specific styles for the Profile page */
.profile-card {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
}

.profile-card h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
    color: #2c3e50;
    border-bottom: none;
    padding-bottom: 0;
}

.profile-card h4 {
    color: #1abc9c;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eef2f5;
    padding-bottom: 8px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card h4 i {
    color: #2c3e50;
    font-size: 1em;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 0; /* Reset margin for grid items */
    text-align: left;
}

.input-group.full-width {
    grid-column: 1 / -1; /* Span across both columns for address, suggestions */
}

.form-control[disabled] {
    background-color: #f0f0f0;
    cursor: not-allowed;
    color: #777;
    border-color: #e0e0e0;
}

.field-note {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-note i {
    color: #f39c12; /* Warning color */
}

.checkbox-group.profile-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 5px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9fbfd;
}

.checkbox-group.profile-checkbox-group label {
    font-weight: normal;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group.profile-checkbox-group input[type="checkbox"] {
    margin-right: 0;
    transform: scale(1.1);
    box-shadow: none;
    margin-bottom: 0;
}

/* Specific styles for the Password Change Card */
.password-change-card {
    margin-top: 40px; /* Add some space above the password card */
}

/* Responsive adjustments for profile page */
@media (max-width: 768px) {
    .profile-card {
        padding: 20px;
        margin: 20px;
    }
    .form-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
        gap: 15px;
    }
    .checkbox-group.profile-checkbox-group {
        grid-template-columns: 1fr; /* Stack checkboxes on small screens */
    }
}

/* Add this to your assets/css/style.css if not already present */
.table-responsive {
    overflow-x: auto; /* Enables horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Also ensure your existing responsive table styles for stacking are present, like: */
@media (max-width: 768px) {
    .member-table, .member-table thead, .member-table tbody, .member-table th, .member-table td, .member-table tr {
        display: block; /* Make table responsive by stacking */
    }
    .member-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .member-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .member-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%; /* Space for data-label */
        text-align: right;
    }
    .member-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
    }
    .member-table td:last-child {
        border-bottom: none;
    }
    .member-table .action-links {
        text-align: center;
        padding-top: 10px;
    }
}

