/* Shared UI primitives used by the mobile shell and auth screens. */

.app-shell {
    width: 100%;
    max-width: var(--app-max-width);
    margin-left: auto;
    margin-right: auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--color-surface);
    position: relative;
}

.app-page-header {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px var(--page-padding);
}

.app-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.app-badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.app-icon-button {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-text-primary);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.app-icon-button:hover,
.app-icon-button:focus {
    color: var(--color-text-primary);
    text-decoration: none;
}

.app-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 18px;
}

.app-tab {
    appearance: none;
    background: none;
    border: 0;
    padding: 6px 0;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-muted);
    cursor: pointer;
}

.app-tab.is-active {
    color: var(--color-primary);
}

.app-input,
.app-form-input {
    width: 100%;
    height: var(--input-height);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0 16px 0 44px;
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
    background: var(--color-surface);
    box-shadow: none;
}

.app-input:focus,
.app-form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 78, 216, 0.12);
}

.app-input:disabled,
.app-form-input:disabled,
.app-input[readonly],
.app-form-input[readonly] {
    background: #f8fafc;
    color: var(--color-text-muted);
    cursor: not-allowed;
}

.app-input-wrap {
    position: relative;
    margin-bottom: 8px;
}

.app-input-wrap .app-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.app-btn,
.app-btn-primary,
.app-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--button-height);
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: #fff;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    cursor: pointer;
}

.app-btn:hover,
.app-btn-primary:hover,
.app-primary-button:hover {
    background: var(--color-primary-hover);
    color: #fff;
    text-decoration: none;
}

.app-btn-secondary,
.app-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--button-height);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

.app-btn.is-loading,
.app-loading-button.is-loading {
    pointer-events: none;
    letter-spacing: 0.2em;
}

.app-empty-state {
    text-align: center;
    padding: 48px var(--page-padding);
    color: var(--color-text-secondary);
}

.app-empty-state__title {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: 8px;
}
