.primary-btn {
    background-color: #a95609;
    font-weight: 600;
    padding: 0.5rem 1rem;
    color: #fff;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;

    font-size: 0.85rem;
    text-decoration: none;

    &:hover {
        background-color: #8b4b0f;
    }
}

.a-btn {
    text-decoration: none;
    color: #fff;
    text-align: center;
}

.primary-text {
    color: #d36d0e;
}

.outline-btn {
    background-color: transparent;
    color: #a1a1aa;
    border: 1px solid #3f3f46;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;

    &:hover {
        background-color: #a95609;
        border-color: #a95609;
    }
}

.secondary-btn {
    background-color: transparent;
    color: #a1a1aa;
    border: 1px solid #3f3f46;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.icon-btn {
    display: inline-block;
    width: 40px;
    aspect-ratio: 1;
    background: transparent;
    border: none;
    /* color: #a1a1aa; */
    padding: 0.4rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;

    &:hover {
        background-color: #27272a;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;

    label {
        font-size: 0.8rem;
        color: #a1a1aa;
    }

    input,
    select,
    textarea {
        /* background-color: #2e2e31; */
        background-color: #0f0f11;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        outline: 0;
        border: none;
        transition: box-shadow 0.15s ease;
        appearance: red;

        &:focus {
            box-shadow: 0 0 0 2px #d36d0e;
        }
    }

    textarea {
        resize: vertical;
    }

    input[type='number']::-webkit-outer-spin-button,
    input[type='number']::-webkit-inner-spin-button {
        appearance: none;
        -webkit-appearance: none;
        margin: 0;
    }

    input[type='number'] {
        appearance: textfield;
        -moz-appearance: textfield;
    }
}

.general-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.general-table thead th {
    text-align: left;
    padding: 0.75rem 0;
    font-weight: 500;
    color: #a1a1aa;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #27272a;
}

.general-table tbody tr {
    border-bottom: 1px solid #27272a;
}

.general-table tbody tr:last-child {
    border-bottom: none;
}

.general-table td {
    padding: 0.75rem 0;
    color: white;
}

.general-table .image-cell {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.general-table .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #3d2610;
    color: #d36d0e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.general-table .image-cell:has(.miniature) {
    gap: 1.25rem;
}

.general-table .miniature {
    width: 150px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    overflow: hidden;
    background-color: #3d2610;
}

.general-table .avatar img,
.general-table .miniature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.general-table .first-row {
    margin: 0;
    font-weight: 500;
    color: #fff;
}

.general-table .second-row {
    margin: 0;
    font-size: 0.75rem;
    color: #71717a;
}

.text-right {
    text-align: right;
}

.photo-upload {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.photo-upload.large {
    flex-direction: column;
}

.photo-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #2e2e31;
    border: 1px dashed #52525b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71717a;
    flex-shrink: 0;
    overflow: hidden;
}

.photo-miniature {
    width: 100%;
    height: 180px;
    background-color: #2e2e31;
    border: 1px dashed #52525b;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71717a;
    flex-shrink: 0;
    overflow: hidden;
}

.photo-preview img,
.photo-miniature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-btn {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #3f3f46;
    border-radius: 0.5rem;
    cursor: pointer;
    color: white;
    transition: border-color 0.15s ease;
}

.upload-btn:hover {
    border-color: #a95609;
}

.upload-hint {
    font-size: 0.7rem;
    color: #71717a;
    margin: 0.25rem 0 0;
}

.full-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
}

textarea.hidden {
    display: none;
}

.a-small {
    font-size: 0.8rem;
    text-align: right;
}
