/* Chat widget */
.wg-chat-launcher {
	position: fixed;
	bottom: 24px;
	left: 24px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #5b6cff;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px rgba(0,0,0,0.2);
	cursor: pointer;
	z-index: 2000;
}

.wg-chat-panel {
	position: fixed;
	bottom: 88px;
	left: 24px;
	width: 360px;
	height: 520px;
	max-width: calc(100% - 48px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.25);
	overflow: hidden;
	display: none;
	z-index: 2000;
}

.wg-chat-panel.open { display: block; }

.wg-chat-header {
	background: #5b6cff;
	color: #fff;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
}

.wg-chat-body { height: calc(100% - 44px); }

.wg-chat-body #wg-webchat { height: 100%; }
/* app.css */

/* Blazor Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZ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zcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Reset bullet lists for nav if necessary (sometimes older Blazor templates show bullets) */
.nav-link,
.nav-item,
.navbar-nav li {
    list-style: none;
}

/* Custom navbar using your brand colors */
.navbar-custom {
    /*background-color: #198F9E !important;*/ /* Menu background */
    background-color: #1E386D !important; /* Menu background */
}

    .navbar-custom .navbar-brand,
    .navbar-custom .nav-link,
    .navbar-custom .navbar-text {
        /*color: #F26921 !important;*/ /* Menu text color */
        color: #F7F4F3 !important;
    }

/* Dashboard page background & text color */
.dashboard-page {
    position: relative;
    color: #1F386C;
    min-height: 100vh;
    padding: 2rem;
}

.validation-message,
.validation-summary {
    color: red !important;
    font-weight: bold;
}

/* Container for the membership card placed at top right */
.card-container {
/*    position: absolute;
    top: 2rem;
    right: 2rem;*/
    z-index: 10; /* ensure it appears above other content if needed */
}

/* Membership Card Container for Two-Sided Layout */
.membership-card-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem auto;
    max-width: 3.375in;
}

/* Membership Card Styling */
.membership-card {
    color: #1F386C !important;
    background-color: #F7F4F3 !important;
    border: 1px solid #1F386C;
    border-radius: 8px;
    padding: 1.5rem 1.5rem 1rem 1.5rem; /* reduce bottom padding */
    width: 3.375in;
    min-height: 2.125in;
    height: auto;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: 5in;
    overflow: hidden;
}

/* Contact Information Styling for Back of Card */
.contact-info {
    margin-bottom: 1rem;
}

.contact-section {
    margin-bottom: 0.5rem;
}

.contact-section h5 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1F386C;
    margin-bottom: 0.15rem;
    line-height: 1.1;
}

.contact-section .phone-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1F386C;
    margin: 0;
    line-height: 1.1;
}

.contact-section .email {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1F386C;
    margin: 0;
    line-height: 1.1;
    word-break: break-all;
}

.contact-section .pharmacy-info {
    font-size: 0.7rem;
    font-weight: 500;
    color: #1F386C;
    margin: 0;
    line-height: 1.1;
}

.membership-card .card-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.membership-card .card-header {
    border-bottom: 2px solid #1F386C;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.membership-card .card-header h4 {
    color: #1F386C;
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
}

.membership-card p {
        margin: 0.25rem 0;
    font-size: 0.8rem;
    line-height: 1.2;
}

.membership-card .dependents-list {
    font-size: 0.8rem;
    margin-bottom: 1.1rem; /* more space above the footer/logo for on-screen */
    max-height: 1.2in;
    overflow-y: auto;
    padding-bottom: 0.2rem;
}

.membership-card .dependents-list li {
    font-size: 0.8rem;
    line-height: 1.1;
    margin-bottom: 0.05rem;
}

.membership-card .card-footer, .membership-card .logo-bottom-right {
    position: absolute;
    left: 0;
    right: 0;
}

.membership-card .card-footer {
    bottom: 0.5rem;
    left: 0.5rem;
    right: auto;
    font-size: 0.7rem;
    color: #666;
    z-index: 2;
    background: transparent;
}

.membership-card .logo-bottom-right {
    bottom: 0.4rem;
    right: 0.4rem;
    left: auto;
    width: 65px;
    height: auto;
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
}

/* If you prefer to remove bullet points, you can do this: */
.dependents-list {
    list-style: none;
    padding-left: 0;
}

    .dependents-list li::before {
        /*content: "� ";*/ /* optional: custom bullet symbol */
        color: #1F386C;
    }

.card-logo {
    text-align: center;
    margin-bottom: 0.5rem;
}

    .card-logo img {
        max-width: 100%;
        height: auto;
    }

.logo-bottom-right {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 15%;
    height: auto;
    max-width: 100px;
}


.card-details {
    margin-bottom: 0.5rem;
}

.card-footer {
    border-top: 1px solid #ccc;
    padding-top: 0.5rem;
    font-size: 0.85rem;
    color: #555;
}

/* Basic site styling */
body {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: url("/images/dashbackground.png") center center no-repeat fixed;
    background-size: cover;
    color: #212529;
    margin: 0;
    padding: 0;
    /*background-color: #fff;*/
}

/* Container for the entire page layout */
.main-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* The main content area grows/shrinks with the page */
main.container {
    flex: 1 0 auto;
}

/* Optional footer pinned to bottom */
footer {
    flex-shrink: 0;
}

/* A WellGenie brand color (lightish blue) for top nav */
.navbar-dark.bg-primary {
    background-color: #6EC1E4 !important;
}

.navbar-dark .navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
}

/* Card styling */
.card {
    border-radius: 0.5rem;
}

    .card .card-title {
        font-weight: 600;
    }

/* Hero section for login page */
.login-hero {
    position: relative;
    background: url("/images/WellGenieBCKGRNDOrange-1024x533.png") center center / cover no-repeat;
    color: #ffffff;
    padding: 4rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.login-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.45); /* Darken overlay so text is readable */
}

.login-hero-content {
    position: relative;
    z-index: 2;
}

    .login-hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
    }

    .login-hero-content p {
        font-size: 1.2rem;
    }

/* Buttons to match brand colors */
.btn-primary {
    background-color: #6EC1E4;
    border-color: #6EC1E4;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #5BB1D4 !important;
    border-color: #5BB1D4 !important;
}

.btn-primary:disabled {
    background-color: #9DD1E4;
    border-color: #9DD1E4;
    opacity: 0.65;
}

.btn-success {
    background-color: #61CE70;
    border-color: #61CE70;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #50BD5F !important;
    border-color: #50BD5F !important;
}

.btn-success:disabled {
    background-color: #91D69A;
    border-color: #91D69A;
    opacity: 0.65;
}

/* Ensure button states are properly applied */
.btn {
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.btn:disabled {
    cursor: not-allowed;
}

/* Force button hover states to be active */
.btn-primary:hover {
    background-color: #5BB1D4 !important;
    border-color: #5BB1D4 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Form placeholders */
.form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* PrintCard specific styling */
.print-membership-card {
    color: #1F386C !important;
    background-color: #F7F4F3 !important;
    border: 2px solid #aaa;
    border-radius: 8px;
    padding: 1rem;
    max-width: 600px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 2rem auto;
}

    .print-membership-card p {
        margin: 0.25rem 0;
        font-size: 0.9rem;
    }

.print-layout {
    padding: 1rem;
    background: #fff;
}

/* Override absolute positioning for smaller screens */
@media (max-width: 768px) {
    .card-container {
        position: static;
        margin: 1rem auto;
        text-align: center;
    }

    .membership-card {
        width: 100%;
        max-width: 3.375in;
        height: auto;
        min-height: 2.125in;
    }

    .logo-bottom-right {
        width: 20%;
        max-width: 80px;
    }
}

/* This CSS applies when printing */
@media print {
    /* Hide non-print elements if they are still rendered from the main layout */
    .navbar-custom, .dashboard-page, footer {
        display: none !important;
    }
    /* Ensure print layout is visible */
    .print-layout, .print-layout * {
        display: block !important;
        visibility: visible !important;
    }

    .print-membership-card {
        position: static;
        width: 100%;
        margin: 0 auto;
        padding: 1rem;
        border: none;
        box-shadow: none;
    }

    .membership-card-container {
        display: block !important;
        gap: 0 !important;
        margin: 0 !important;
        max-width: none !important;
    }

    .membership-card {
        width: 3.375in;
        min-height: 2.125in;
        height: auto;
        max-height: 5in;
        margin: 0 0 0.5rem 0;
        padding: 1.5rem 1.5rem 2.5rem 1.5rem;
        border: 1px solid #1F386C;
        box-shadow: none;
        page-break-inside: avoid;
        overflow-y: visible;
        display: block !important;
    }

    .membership-card .card-details {
        font-size: 0.8rem;
    }

    .membership-card p {
        margin: 0.15rem 0;
        font-size: 0.8rem;
    }

    .membership-card .logo-bottom-right {
        width: 60px;
    }

    .membership-card .dependents-list {
        margin-bottom: 0.5rem !important;
    }

    /* Contact information print styles */
    .contact-info {
        margin-bottom: 0.5rem !important;
    }

    .contact-section {
        margin-bottom: 0.25rem !important;
    }

    .contact-section h5 {
        font-size: 0.65rem !important;
        margin-bottom: 0.1rem !important;
    }

    .contact-section .phone-number {
        font-size: 0.75rem !important;
    }

    .contact-section .email {
        font-size: 0.7rem !important;
    }

    .contact-section .pharmacy-info {
        font-size: 0.6rem !important;
    }
}

.card-input {
    padding: 0.25rem 0.5rem; /* adjust padding as needed */
    font-size: 0.85rem; /* smaller font size */
    border: 1px solid #ccc; /* thinner border */
    border-radius: 0.2rem; /* slightly rounded corners */
}

.membership-card.back .contact-info.compact {
    font-size: 0.7rem;
    font-weight: 400;
    color: #1F386C;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.2rem 0;
}

.membership-card.back .contact-info.compact > div {
    font-size: 0.7rem;
    font-weight: 400;
    color: #1F386C;
    margin: 0;
    line-height: 1.4;
}



