/* Import YMER Theme */
@import url('ymer-theme.css');

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 6px 6px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Legacy styles - will be gradually phased out */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll issues */
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allows flex item to shrink below content size */
    margin-top: 0;
    padding-top: var(--header-height, 80px); /* Account for fixed header */
}

@media (max-width: 768px) {
    .main-content {
        padding-top: var(--header-mobile-height, 60px);
    }
}

/* Ensure page content takes up available space */
.main-content > div {
    flex: 1;
}

main {
    flex: 1;
}

/* Ensure footer stays at bottom and doesn't float to side */
footer {
    width: 100%;
    margin-top: auto;
}

/* Old card styles - keeping for backward compatibility during transition */
.card-container {
    position: relative;
    width: 250px;
    margin: 100px auto;
}

.custom-card {
    border-radius: 15px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.circle-img {
    position: absolute;
    bottom: -25px;
    left: -25px;
    width: 100px;
    height: 100px;
    border: 4px solid white;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

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

.ymer-logo {
    font: 7.0em var(--font-primary);
    font-weight: bold;
}



/* Blazor Error UI Styles */
#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;
}

