/*
 * Shared UI components
 */


.container {
    width: min(
        calc(100% - 32px),
        var(--page-max-width)
    );

    margin-inline: auto;
}


.card {
    background:
        var(--bg-surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    box-shadow:
        var(--shadow-card);
}


.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding:
        9px 16px;

    border:
        1px solid var(--border-strong);

    border-radius:
        var(--radius-sm);

    background:
        var(--bg-surface);

    text-decoration: none;

    font-weight: 600;
}


.btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}


.field {
    display: grid;
    gap: 7px;
}


.field label {
    font-weight: 600;
}


.input,
.field input,
.field select,
.field textarea {

    width: 100%;

    min-height: 44px;

    padding:
        9px 12px;

    border:
        1px solid var(--border-strong);

    border-radius:
        var(--radius-sm);

    background:
        var(--bg-surface);

    outline: none;
}


.field input:focus,
.field select:focus,
.field textarea:focus {

    border-color:
        var(--text-secondary);

    box-shadow:
        0 0 0 3px rgba(0,0,0,.05);
}


.icon {
    width: 20px;
    height: 20px;

    display: inline-block;

    flex: 0 0 auto;
}
