/* Shared by the worship and Sabbath school slide editors. */
.slide-editor {
    --text-danger: #b91c1c;
}

.admin-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-section-content {
    flex: 1;
}

.admin-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.admin-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-input {
    padding: 11px 14px;
    border: 1.5px solid #9aa8a2;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    background: #fbfffd;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.form-input::placeholder {
    color: #6f7f78;
    opacity: 1;
}

select.form-input {
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--primary-glow), 0 0 0 1px var(--accent);
}

@media (max-width: 640px) {
    .admin-section-header > div:first-child {
        display: none;
    }

    .admin-header-actions {
        display: flex;
        margin-bottom: 20px;
    }

    .admin-header-actions .btn {
        flex: 1;
        min-width: 0;
    }

    .admin-form-card {
        padding: 20px;
    }

    select.form-input {
        width: 100%;
        min-height: 48px;
        padding: 13px 46px 13px 16px;
        border: 1px solid var(--border-medium);
        border-radius: 12px;
        background-color: var(--bg-secondary);
        background-position: right 16px center;
        background-size: 18px;
        font-size: 16px;
        line-height: 1.25;
        box-shadow: none;
    }

    select.form-input:focus {
        background-color: white;
        box-shadow: 0 0 0 3px var(--primary-glow);
    }
}
