@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --primary: #FF9F43;
    --primary-hover: #FF8F1F;
    --primary-light: #FFD6A5;
    --secondary: #54B4D3;
    --bg: #FFF5EB;
    --bg-card: #FFFFFF;
    --text: #5D4037;
    --text-muted: #8D6E63;
    --border: #EFEBE9;
    --error: #FF3860;
    --error-bg: #FFE0E6;
    --success: #48C774;
    --warning: #FFDD57;
    --radius: 20px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.options-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.header {
    margin-bottom: 50px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    text-shadow: 2px 2px 0px white;
}

/* Claymorphism Base */
.clay-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow:
        12px 12px 24px #d1c8be,
        -12px -12px 24px #ffffff;
    border: 3px solid white;
}

/* Section */
.section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow:
        12px 12px 24px #d1c8be,
        -12px -12px 24px #ffffff;
    border: 3px solid white;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Buttons */
.btn-add {
    background: var(--primary);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow:
        4px 4px 8px rgba(255, 159, 67, 0.4),
        -4px -4px 8px rgba(255, 255, 255, 0.8),
        inset 2px 2px 4px rgba(255, 255, 255, 0.4);
}

.btn-add:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Form Card */
.form-card {
    background: #FFFCF9;
    border: 2px solid white;
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: inset 4px 4px 8px #e6ddd4, inset -4px -4px 8px #ffffff;
}

.form-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
}

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

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    padding-left: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: white;
    border: 2px solid #EEE;
    color: var(--text);
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    resize: none;
    box-shadow: 4px 4px 8px #e6ddd4, -4px -4px 8px #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 6px 6px 12px #e6ddd4, -6px -6px 12px #ffffff;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 2px solid #EEE;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-cancel {
    background: transparent;
    border: 2px solid #EEE;
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-cancel:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.btn-save {
    background: var(--primary);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 4px 4px 8px rgba(255, 159, 67, 0.4);
}

.btn-save:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Instructions List */
.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.instruction-card {
    background: white;
    border: 2px solid white;
    border-radius: var(--radius-sm);
    padding: 25px;
    transition: all 0.2s;
    box-shadow: 6px 6px 12px #d1c8be, -6px -6px 12px #ffffff;
}

.instruction-card:hover {
    transform: translateY(-3px);
    box-shadow: 8px 8px 16px #d1c8be, -8px -8px 16px #ffffff;
    border-color: var(--primary-light);
}

.instruction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.instruction-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.instruction-badges {
    display: flex;
    gap: 8px;
}

.badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge.persistent {
    background: #E1F5FE;
    color: #039BE5;
}

.badge.default {
    background: #E8F5E9;
    color: #43A047;
}

.instruction-content {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    background: #F9FAFB;
    padding: 15px;
    border-radius: 10px;
}

.instruction-actions {
    display: flex;
    gap: 12px;
}

.btn-edit,
.btn-delete {
    background: transparent;
    border: 2px solid #EEE;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

.btn-delete:hover {
    background: var(--error-bg);
    border-color: var(--error-bg);
    color: var(--error);
}

/* States */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px;
    background: #F9FAFB;
    border-radius: var(--radius-sm);
    border: 2px dashed #E5E7EB;
}

.empty-state p {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.empty-state .hint {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}
