/* MyChart-style patient portal — Epic patient experience */

.mychart-body {
    margin: 0;
    padding: 0;
    background: #f0f4f8;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    color: #2d3748;
    min-height: 100vh;
}

.mychart-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
}

/* MyChart-style header: blue, clean */
.mychart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, #1e5a8a 0%, #164a72 100%);
    color: #fff;
    padding: 0 24px;
    height: 56px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.mychart-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mychart-logo {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.mychart-logo-dot {
    color: #7dd3fc;
}

.mychart-tagline {
    font-size: 13px;
    color: #bae6fd;
    font-weight: 400;
    margin-left: 4px;
}

.mychart-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #e0f2fe;
}

.mychart-user-name {
    font-weight: 600;
    color: #fff;
}

/* Top nav: Home, Appointments, etc. */
.mychart-nav {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.mychart-nav-item {
    padding: 14px 20px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.mychart-nav-item:hover {
    color: #1e5a8a;
}

.mychart-nav-item-active {
    color: #1e5a8a;
    border-bottom-color: #1e5a8a;
}

/* Welcome strip */
.mychart-welcome {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 20px 24px;
    border-bottom: 1px solid #bfdbfe;
}

.mychart-welcome h1 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e3a5f;
}

.mychart-welcome p {
    margin: 0;
    font-size: 14px;
    color: #3b82f6;
}

/* Main content: dashboard cards */
.mychart-main {
    flex: 1 1 auto;
    overflow: auto;
    padding: 24px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.mychart-section-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

/* Card: MyChart-style rounded, soft shadow */
.mychart-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    overflow: hidden;
}

.mychart-card-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.mychart-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e5a8a;
}

.mychart-card-body {
    padding: 20px;
}

/* Auth status: friendly approval block */
.mychart-auth-item {
    padding: 18px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 10px;
    border-left: 5px solid #22c55e;
    margin-bottom: 16px;
}

.mychart-auth-item:last-child {
    margin-bottom: 0;
}

.mychart-auth-procedure {
    font-size: 16px;
    font-weight: 600;
    color: #166534;
    margin: 0 0 8px 0;
}

.mychart-auth-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #15803d;
}

.mychart-auth-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mychart-auth-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #22c55e;
    color: #fff;
}

.mychart-auth-next {
    margin: 12px 0 0 0;
    padding: 12px 14px;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    color: #166534;
    border: 1px solid #86efac;
}

.mychart-auth-next strong {
    display: block;
    margin-bottom: 4px;
    color: #14532d;
}

/* Value card: what this means for you */
.mychart-value-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 24px;
    border-left: 5px solid #3b82f6;
}

.mychart-value-card h2 {
    margin: 0 0 12px 0;
    font-size: 17px;
    color: #1e40af;
    font-weight: 600;
}

.mychart-value-card p {
    margin: 0 0 10px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #1e3a8a;
}

.mychart-value-card p:last-child {
    margin-bottom: 0;
}

.mychart-value-card strong {
    color: #1e40af;
}

/* Quick links / dashboard tiles (optional MyChart feel) */
.mychart-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.mychart-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.mychart-tile:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(30, 90, 138, 0.12);
    color: #1e5a8a;
}

.mychart-tile .icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.mychart-tile.active {
    border-color: #1e5a8a;
    background: #eff6ff;
    color: #1e5a8a;
}
