/* Top Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loading Indicator Styles */
.loading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    transition: opacity 0.3s ease-in-out;
}

.loading-spinner {
    margin-bottom: 16px;
}

.spinner-circle {
    width: 32px;
    height: 32px;
    border: 3px solid var(--md-sys-color-surface-variant);
    border-top: 3px solid var(--md-sys-color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

body {
    font-family: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* AppBar styles */
.app-bar {
    background-color: var(--md-sys-color-inverse-primary);
    color: var(--md-sys-color-on-surface);
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-bar h1 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.app-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-button {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--md-sys-color-error);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.warning-button:hover {
    background-color: rgba(186, 26, 26, 0.08);
}

.login-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--md-sys-color-on-surface);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
}

.login-button:hover {
    background-color: var(--md-sys-color-surface-variant);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    font-size: 14px;
    color: var(--md-sys-color-on-surface);
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--md-sys-color-on-surface);
}

.icon-button:hover {
    background-color: var(--md-sys-color-surface-variant);
}

/* Main content styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
}

.logo {
    width: 200px;
    height: 200px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    width: 100%;
    height: 100%;
    background-color: var(--md-sys-color-primary);
    -webkit-mask: url(../icons/logo.svg) no-repeat center;
    mask: url(../icons/logo.svg) no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.logo svg {
    width: 100%;
    height: 100%;
    fill: var(--md-sys-color-primary);
}

.description {
    max-width: 600px;
    margin-bottom: 32px;
    font-size: 16px;
    color: var(--md-sys-color-on-background);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.filled-button {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-width: 200px;
    transition: background-color 0.2s ease;
}

.filled-button:hover {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.filled-button:disabled {
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    cursor: not-allowed;
}

/* Warning icon */
.warning-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Login icon */
.login-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Account icon */
.account-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Responsive design */
@media (max-width: 768px) {
    .app-bar {
        padding: 0 8px;
    }

    .logo {
        width: 150px;
        height: 150px;
    }

    .main-content {
        padding: 16px;
    }

    .description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .filled-button {
        min-width: 160px;
        font-size: 13px;
    }
}