body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #4f4f4f;
}

.fw-500 {
    font-weight: 500;
}

/* Layout Utilities */
.min-vh-100 { min-height: 100vh; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 4rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 4rem !important; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 2rem !important; }
.p-5 { padding: 3rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-4 { padding-left: 2rem !important; padding-right: 2rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-4 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-5 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.ps-4 { padding-left: 2rem !important; }
.pe-4 { padding-right: 2rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-5 { padding-top: 4rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1.5rem !important; }
.me-4 { margin-right: 2rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.text-center { text-align: center !important; }
.text-white { color: #fff !important; }
.text-muted { color: #6c757d !important; }
.bg-light { background-color: #f8f9fa !important; }
.w-100 { width: 100% !important; }
.rounded-circle { border-radius: 50% !important; }
.shadow-1-strong { box-shadow: 0 4px 12px 0 rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05) !important; }
.shadow-2-strong { box-shadow: 0 8px 24px 0 rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.06) !important; }
.border { border: 1px solid #dee2e6 !important; }
.border-top { border-top: 1px solid #dee2e6 !important; }
.border-bottom { border-bottom: 1px solid #dee2e6 !important; }

.bg-danger { background-color: #f93154 !important; }
.rounded-3 { border-radius: 0.75rem !important; }
.rounded-4 { border-radius: 1rem !important; }
.rounded-5 { border-radius: 1.5rem !important; }
.small { font-size: 0.875rem !important; }
.opacity-75 { opacity: 0.75 !important; }
.fw-bold { font-weight: 700 !important; }

@media (min-width: 768px) {
    .d-md-block { display: block !important; }
    .px-md-4 { padding-left: 2rem !important; padding-right: 2rem !important; }
    .px-md-5 { padding-left: 4rem !important; padding-right: 4rem !important; }
    .ps-md-4 { padding-left: 2rem !important; }
    .ps-md-5 { padding-left: 4rem !important; }
    .pe-md-5 { padding-right: 4rem !important; }
    .p-md-5 { padding: 4rem !important; }
    .py-md-5 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
}

@media (min-width: 1200px) {
    .px-lg-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
}

/* Custom styles for member portal */
.dashboard-container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.mdc-top-app-bar--shadow {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.mdc-top-app-bar__title {
    padding-left: 0 !important;
}

.card-hover {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px 0 rgba(0,0,0,0.12) !important;
}

.table-row-hover {
    transition: background-color 0.2s ease;
}
.table-row-hover:hover {
    background-color: #fbfbfb;
}
.navbar {
    background: linear-gradient(45deg, #1266f1, #0d47a1);
}

.profile-img-container {
    position: relative;
    display: inline-block;
}

.profile-img-container::after {
    content: "";
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: #00b74a;
    border: 3px solid #fff;
    border-radius: 50%;
}

.info-label {
    font-size: 0.85rem;
    color: #616161;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.info-value {
    font-weight: 500;
    color: #212121;
    font-size: 1.15rem;
    line-height: 1.4;
}

.card-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1266f1;
    display: flex;
    align-items: center;
}

.section-divider {
    border: 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin: 2rem 0;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile-first profile card layout */
.profile-photo-responsive {
    width: 160px;
    height: 160px;
}

@media (max-width: 839px) {
    .profile-card-inner {
        display: flex;
        align-items: flex-start;
        gap: 1.25rem;
        text-align: left;
    }
    .profile-card-inner .profile-img-container {
        margin: 0 !important;
    }
    .profile-photo-responsive {
        width: 90px;
        height: 90px;
        flex-shrink: 0;
    }
    .profile-card-info {
        flex: 1;
        min-width: 0;
    }
    .profile-info-items {
        display: none;
    }
}

/* ─── Auth pages (login, signup, password reset) ─────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: #f8f9fa;
}

.auth-card {
    width: 100%;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    min-height: 100vh;
}

.auth-card__header {
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #1266f1, #0d47a1);
    padding: 2.5rem 1.5rem 2rem;
}

.auth-card__logo {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.auth-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.auth-card__subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0 0;
}

.auth-card__body {
    padding: 1.75rem 1.5rem 2.5rem;
}

.auth-error {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    color: #d32f2f;
    font-size: 0.875rem;
    background-color: rgba(249, 49, 84, 0.08);
    border: 1px solid rgba(249, 49, 84, 0.2);
}

.auth-submit-btn {
    height: 54px;
    border-radius: 12px !important;
    font-weight: 700;
    letter-spacing: 0.75px;
}

@media (min-width: 600px) {
    .auth-wrapper {
        align-items: center;
        padding: 1.5rem;
    }
    .auth-card {
        max-width: 440px;
        border-radius: 16px;
        min-height: auto;
        box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    .auth-card__header {
        padding: 3rem 1.5rem 2.5rem;
    }
    .auth-card__logo {
        width: 90px;
        height: 90px;
    }
    .auth-card__body {
        padding: 2.5rem;
    }
}