*
 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;

    background-color: #f4f6f9;
}

html {
    background-color: #f4f6f9;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-icon span {
    width: 28px;
    height: 3px;
    background-color: #1a1a1a;
    border-radius: 2px;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 380px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-wrapper {
    margin-bottom: 25px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    padding: 8px;
}
.logo-svg {
    width: 60px;
    height: 60px;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .icon {
    position: absolute;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: none;
    border-radius: 30px;
    background-color: #ffffff;
    font-size: 0.95rem;
    color: #333333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    outline: none;
    transition: box-shadow 0.2s ease;
}

.input-group input:focus {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.input-group input::placeholder {
    color: #888888;
}

.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background-color: #0052cc;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 82, 204, 0.3);
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 5px;
}

.btn-login:hover {
    background-color: #003e99;
}

.btn-login:active {
    transform: scale(0.98);
}

.form-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 8px;
    margin-top: 6px;
}

.form-links a {
    color: #222222;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.form-links a:hover {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .navbar {
        padding: 20px;
    }

    .login-container {
        padding: 15px;
        max-width: 320px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    display: flex;
    background-color: #ffffff;
    min-height: 100vh;
}

:root {
    --blue-main: #0052cc;
    --blue-dark: #003e99;
    --gray-bg: #e2e2e2;
    --gray-card: #ececec;
    --text-color: #1a1a1a;
}

.sidebar {
    width: 240px;
    background-color: var(--blue-main);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 38px;
    height: 38px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    padding: 8px;
}
.logo-svg {
    width: 28px;
    height: 28px;
}

.profile-title {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    margin-top: 10px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.sidebar-nav li.active a,
.sidebar-nav li a:hover {
    background-color: var(--blue-dark);
}

.sidebar-footer {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

.footer-link:hover {
    background-color: var(--blue-dark);
}

.main-wrapper {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-bar {
    height: 60px;
    background-color: var(--blue-main);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 30px;
}

.search-container {
    position: relative;
    width: 280px;
}

.search-input {
    width: 100%;
    padding: 6px 35px 6px 15px;
    border-radius: 20px;
    border: none;
    outline: none;
    background-color: #ffffff;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.top-icons {
    display: flex;
    gap: 2px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
    padding: 25px;
    background-color: #ffffff;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.banner-card {
    background-color: var(--gray-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
}

.banner-img {
    width: 100%;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

.purpose-container {
    background-color: var(--gray-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.purpose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.purpose-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 15px;
    min-height: 160px;
}

.purpose-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.purpose-header h3 {
    font-size: 1rem;
    color: var(--text-color);
}

.right-widgets {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background-color: var(--gray-card);
    border-radius: 10px;
    padding: 15px;
}

.calendar-widget {
    color: #666;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 15px;
    color: #888;
}

.cal-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #888;
}

.calendar-days, .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.85rem;
    row-gap: 8px;
}

.calendar-days {
    font-weight: bold;
    color: #e57373;
    margin-bottom: 8px;
}

.calendar-grid span {
    color: #888;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #a0a0a0;
    font-size: 1.1rem;
}

/* .announcement-widget removed - the volunteer Announcements panel is gone and
   no page renders that widget any more. */
.upcoming-widget {
    min-height: 120px;
}

@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
    }
}

:root {
    --blue-sidebar: #0052cc;
    --blue-topbar: #0033aa;
    --blue-main: #0a66c2;
    --bg-light: #f4f6f9;
    --text-dark: #333333;
    --text-muted: #777777;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background-color: var(--blue-sidebar);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    background-color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-title {
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    margin-top: 10px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #cce0ff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.sidebar-nav li.active a,
.sidebar-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.sidebar-footer {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #cce0ff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-link:hover {
    color: #ffffff;
}

.main-wrapper {
    margin-left: 220px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-bar {
    height: 60px;
    background-color: var(--blue-topbar);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 30px;
}

.search-container {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 6px 30px 6px 12px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-size: 0.85rem;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.top-icons {
    display: flex;
    gap: 2px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.content-area {
    display: flex;
    padding: 25px 30px;
    gap: 25px;
}

.center-content {
    flex: 1;
}

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

.page-title {
    font-size: 1.6rem;
    color: #111111;
    font-weight: 700;
}

.add-btn {
    background-color: var(--blue-main);
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.add-btn:hover {
    background-color: #08529c;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: #ffffff;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111111;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.table-container {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f8f9fa;
    color: #555555;
    font-weight: 600;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background-color: #e6f4ea;
    color: #137333;
}

.status-badge.inactive {
    background-color: #ffebee;
    color: #c62828;
}

.action-btn {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid var(--blue-main);
    color: var(--blue-main);
    font-weight: 600;
}

.action-btn.edit-btn {
    border-color: #e67e22;
    color: #e67e22;
    margin-left: 4px;
}

.action-btn:hover {
    background-color: var(--blue-main);
    color: #ffffff;
}

.action-btn.edit-btn:hover {
    background-color: #e67e22;
    color: #ffffff;
}

.action-btn.archive-btn {
    border-color: #e67e22;
    color: #e67e22;
    margin-left: 4px;
}

.action-btn.archive-btn:hover {
    background-color: #e67e22;
    color: #ffffff;
}

.action-btn.restore-btn {
    border-color: #137333;
    color: #137333;
}

.action-btn.restore-btn:hover {
    background-color: #137333;
    color: #ffffff;
}

.action-btn.delete-btn {
    border-color: #c62828;
    color: #c62828;
    margin-left: 4px;
}

.action-btn.delete-btn:hover {
    background-color: #c62828;
    color: #ffffff;
}

.status-badge.archived {
    background-color: #eceff1;
    color: #546e7a;
}

.right-widgets {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 15px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cal-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.calendar-days,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
}

.calendar-days span {
    font-weight: 600;
    color: #888888;
    margin-bottom: 5px;
}

.calendar-grid span {
    padding: 5px 0;
    color: #333333;
}

.calendar-grid span.sun,
.calendar-days span.sun {
    color: #d93025;
}

.widget-title {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    padding: 24px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.modal-header h2 {
    font-size: 1.35rem;
    color: #222222;
    font-weight: 600;
}

.close-modal {
    font-size: 1.5rem;
    color: #888888;
    cursor: pointer;
}

.close-modal:hover {
    color: #000000;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444444;
    margin-bottom: 5px;
}

.form-group input,
.form-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    background-color: #ffffff;
}

.form-group input:focus,
.form-select:focus {
    border-color: var(--blue-main);
}

.submit-btn {
    background-color: var(--blue-main);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.submit-btn:hover {
    background-color: #08529c;
}

.modal-card.view-card {
    max-width: 650px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item.full-width {
    grid-column: span 2;
}

.detail-item label {
    font-size: 0.85rem;
    color: #777777;
    font-weight: 500;
    margin-bottom: 4px;
}

.detail-item p {
    font-size: 1rem;
    color: #111111;
    font-weight: 600;
    margin: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border-color);
    margin-top: 25px;
    padding-top: 15px;
}

.close-card-btn {
    background-color: #ffffff;
    border: 1px solid #d0d5dd;
    color: #344054;
    padding: 8px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.close-card-btn:hover {
    background-color: #f9fafb;
    border-color: #b8c2cc;
}

:root {
    --blue-sidebar: #0052cc;
    --blue-topbar: #0033aa;
    --blue-main: #0a66c2;
    --blue-dark: #003e99;
    --bg-light: #f4f6f9;
    --text-dark: #333333;
    --text-muted: #777777;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    background-color: #f4f6f9;
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

.sidebar {
    width: 220px;
    background-color: var(--blue-sidebar);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .logo {
    background-color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-sidebar);
}

.profile-title {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    margin-top: 5px;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    color: #cce0ff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.sidebar-nav li.active a,
.sidebar-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.sidebar-footer {
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: #cce0ff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.footer-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.main-wrapper {
    margin-left: 220px;
    width: calc(100% - 220px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f4f6f9;
    position: relative;
}

.top-bar {
    height: 65px;
    background-color: var(--blue-topbar);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 30px;
    width: 100%;
}

.search-container {
    position: relative;
    width: 320px;
}

.search-input {
    width: 100%;
    height: 36px;
    padding: 0 35px 0 15px;
    border-radius: 18px;
    border: none;
    outline: none;
    font-size: 0.85rem;
    background-color: #ffffff;
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    display: flex;
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 2px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.icon-btn:hover {
    opacity: 0.8;
}

.content-area {
    display: flex;
    padding: 25px 30px;
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
}

.center-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.page-title {
    font-size: 1.5rem;
    color: #111111;
    font-weight: 700;
}

.add-btn {
    background-color: var(--blue-main);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-btn:hover {
    background-color: var(--blue-dark);
}

.stats-row {
    display: grid;
    gap: 15px;
}

.stat-card {
    background-color: #ffffff;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-height: 110px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
}

.donation-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--blue-main);
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #ffffff;
    color: var(--blue-main);
}

.table-container {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    padding: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f8f9fa;
    color: #555555;
    font-weight: 600;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background-color: #e6f4ea;
    color: #137333;
}

.details-card {
    display: none;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.details-card.show {
    display: block;
}

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

.details-header h2 {
    font-size: 1.25rem;
    color: #111111;
    font-weight: 700;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #555555;
}

.receipt-banner {
    background-color: #fdf2f2;
    border: 1px solid #f8d7da;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.receipt-label {
    font-size: 0.75rem;
    color: #777777;
    font-weight: 600;
    text-transform: uppercase;
}

.receipt-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
    margin-top: 2px;
}

.receipt-icon-box {
    font-size: 1.5rem;
    color: #d93025;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item.full-width {
    grid-column: span 2;
}

.d-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.d-value {
    font-size: 0.95rem;
    color: #111111;
    font-weight: 600;
}

.details-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.btn-download {
    background-color: #e60023;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-download:hover {
    background-color: #c5001d;
}

.btn-close-modal {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-close-modal:hover {
    background-color: #f8f9fa;
}

.login-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    /* Revision — a solid colour sits underneath the photo so the page never
       flashes white while the AVIF decodes or during a re-render. */
    background-color: #f4f6f9;
    background-image: url('../assets/BG.avif');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    overflow-x: hidden;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

.navbar {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0052cc;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.brand-tagline {
    font-size: 0.78rem;
    color: #4a5568;
    font-weight: 500;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-icon span {
    width: 26px;
    height: 3px;
    background-color: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: auto 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    padding: 40px 32px 30px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.avatar-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -40px;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-title {
    margin-top: 15px;
    margin-bottom: 25px;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-field {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    color: #64748b;
    font-size: 1rem;
    pointer-events: none;
}

.toggle-password {
    position: absolute;
    right: 18px;
    color: #64748b;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #1e293b;
}

.input-field input {
    width: 100%;
    padding: 14px 45px 14px 48px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
    outline: none;
    transition: all 0.25s ease;
}

.input-field input:focus {
    background: #ffffff;
    border-color: #0052cc;
    box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.15);
}

.input-field input::placeholder {
    color: #94a3b8;
}

.error-msg {
    color: #dc2626;
    font-size: 0.82rem;
    text-align: center;
    font-weight: 500;
    display: none;
    margin-top: -6px;
}

.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #0052cc 0%, #003e99 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(0, 82, 204, 0.35);
    transition: all 0.25s ease;
    margin-top: 6px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 82, 204, 0.45);
    background: linear-gradient(135deg, #0047b3 0%, #003380 100%);
}

.btn-login:active {
    transform: translateY(0);
}

.form-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
    margin-top: 8px;
}

.link-item {
    color: #334155;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.link-item:hover {
    color: #0052cc;
    text-decoration: underline;
}

.login-footer {
    position: relative;
    z-index: 10;
    padding: 18px;
    text-align: center;
}

.login-footer p {
    font-size: 0.82rem;
    color: #334155;
    font-weight: 500;
}

@media (max-width: 480px) {
    .navbar {
        padding: 16px 20px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.7rem;
    }

    .glass-card {
        padding: 35px 22px 24px 22px;
        border-radius: 20px;
    }

    .avatar-badge {
        width: 70px;
        height: 70px;
        top: -35px;
    }

    .welcome-title {
        font-size: 1.25rem;
        margin-top: 10px;
    }
}

.status-badge.pending {
    background-color: #fff4e5;
    color: #b26a00;
}

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.type-badge.type-cash {
    background-color: #e3f2fd;
    color: #1565c0;
}

.type-badge.type-inkind {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.act-btn {
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 4px;
    transition: opacity 0.2s ease;
}

.act-btn:hover {
    opacity: 0.85;
}

.act-view {
    background-color: #2e7d32;
    color: #ffffff;
}

.act-edit {
    background-color: #0a66c2;
    color: #ffffff;
}

.act-delete {
    background-color: #e67e22;
    color: #ffffff;
}

.donation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.donation-modal.show {
    display: flex;
}

.dm-card {
    background-color: #ffffff;
    border-radius: 12px;
    width: 540px;
    max-width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    background-color: var(--blue-main);
    color: #ffffff;
    border-radius: 12px 12px 0 0;
}

.dm-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.dm-close {
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.dm-close:hover {
    color: #ffd6d6;
}

.dm-body {
    padding: 20px 22px;
}

.dm-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.dm-field {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dm-field.full {
    flex-basis: 100%;
}

.dm-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dm-field input,
.dm-field select,
.dm-field textarea {
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    background-color: #ffffff;
    color: #333333;
}

.dm-field input:focus,
.dm-field select:focus,
.dm-field textarea:focus {
    border-color: var(--blue-main);
}

.dm-field textarea {
    resize: vertical;
}

.dm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    border-top: 1px solid var(--border-color);
}

.dm-btn-primary {
    background-color: var(--blue-main);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.dm-btn-primary:hover {
    background-color: var(--blue-dark);
}

.dm-btn-secondary {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid var(--border-color);
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.dm-btn-secondary:hover {
    background-color: #f4f6f9;
}

.events-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 1100px) {
    .events-grid-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .events-grid-container { grid-template-columns: 1fr; }
}

.event-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.event-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.event-card-strip {
    height: 5px;
    width: 100%;
}

.event-card-strip.ev-upcoming { background-color: #0a66c2; }
.event-card-strip.ev-completed { background-color: #2e7d32; }
.event-card-strip.ev-cancelled { background-color: #b0b0b0; }

.event-card-body {
    padding: 16px 18px;
}

.event-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.event-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #222222;
    margin: 0;
}

.ev-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.ev-badge.ev-upcoming { background-color: #e3f2fd; color: #1565c0; }
.ev-badge.ev-completed { background-color: #e6f4ea; color: #137333; }
.ev-badge.ev-cancelled { background-color: #eeeeee; color: #757575; }

.type-badge.ev-type {
    background-color: #f3e5f5;
    color: #7b1fa2;
    margin-bottom: 10px;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 14px;
}

.event-card-meta i {
    width: 16px;
    color: #0a66c2;
}

.event-card-actions {
    display: flex;
    gap: 4px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.sbp-notif-icon.event { background-color: #0a66c2; }

/* =====================================================================
   DASHBOARD ANALYTICS CHARTS - base rules (chart-balance revision)
   css/modern.css carries the full desktop treatment; these keep the three
   chart cards equal and the bars sane if modern.css is not loaded.
   ===================================================================== */
.charts-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
    align-items: stretch;
}

.charts-row.charts-row-2col { grid-template-columns: 1.4fr 1fr; }

.chart-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; margin-bottom: 14px; }
.chart-head h3 { margin: 0; min-width: 0; display: flex; align-items: center; gap: 8px; }
.chart-sel { flex-shrink: 0; }

.bar-chart {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2px;
    align-items: stretch;
    height: 180px;
    min-height: 180px;
    padding: 6px 0 0;
    box-sizing: border-box;
}

.bar-col {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: end;
    justify-items: center;
    row-gap: 2px;
    min-width: 0;
    height: 100%;
}

.bar-val { grid-row: 1; white-space: nowrap; text-align: center; }
.bar, .bar-pair { grid-row: 2; align-self: end; }
.bar { width: 100%; max-width: 16px; min-width: 4px; min-height: 2px; border-radius: 4px 4px 0 0; }
.bar-pair { display: flex; align-items: flex-end; justify-content: center; gap: 2px; width: 100%; min-height: 2px; }
.bar-pair .bar { flex: 1 1 0; width: auto; max-width: 11px; min-width: 3px; }
.bar-label { grid-row: 3; white-space: nowrap; text-align: center; }


/* Bell dropdown - unread / read affordances and the empty state.
   (The panel itself is injected by js/sidebar.js; these rules make the
   read state and the disabled header controls explicit in the stylesheet.) */
.sbp-notif-item { cursor: pointer; }
.sbp-notif-item.unread { background: #f0f6ff; }
.sbp-notif-item.sbp-read { background: #ffffff; opacity: 0.62; }
.sbp-notif-item.sbp-read .sbp-notif-dot { display: none; }
.sbp-notif-empty { padding: 30px; text-align: center; color: #94a3b8; font-size: 0.85rem; }

.sbp-notif-mini:disabled,
.sbp-notif-mini.is-muted { opacity: 0.45; cursor: default; pointer-events: none; }

/* Volunteer dashboard: the Announcements panel was removed, so the remaining
   Recent Activities panel spans the full width instead of leaving a gap. */
.vd-grid2 { grid-template-columns: 1fr; }
.vd-grid2 .panel-wide { grid-column: 1 / -1; width: 100%; }

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
