html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f7f9fa;
    margin: 0;
    padding: 0;
    height: 100%;
}

.page {
    height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Login Page Styles */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 10px;
}

.logo-section {
    margin-bottom: 40px;
}

.logo-section svg {
    color: #2c3e50;
    /* Dark Blue/Grey */
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px 0;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-bottom: 40px;
}

button {
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.9;
}

.icon {
    margin-right: 10px;
    font-weight: bold;
}

.btn-google {
    background-color: #DB4437;
    /* Google Red */
}

.btn-apple {
    background-color: #000000;
    /* Apple Black */
}

.guest-link {
    color: #555;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 10px;
    cursor: pointer;
}

.footer {
    position: absolute;
    bottom: 20px;
    font-size: 12px;
    color: #999;
}

/* Dashboard Styles */
.dashboard-container {
    padding: 10px;
    text-align: center;
}

/* Loading Spinner */
#app {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f7f9fa;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #2c3e50;
    /* Dark Blue */
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* Validation Styles */
.form-control.invalid,
.form-select.invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5zM6 8.2a.3.3 0 0 0 .3-.3.3.3 0 0 0-.3-.3.3.3 0 0 0-.3.3.3.3 0 0 0 .3.3z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.validation-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}