/* ===== VISIBLE FIELDS PLUGIN STYLES ===== */
.visible-fields-interface {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visibility-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.visibility-section {
    background: var(--card);
    border: 1px solid var(--silver);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.visibility-section h5 {
    margin: 0 0 1rem 0;
    color: var(--text);
    border-bottom: 2px solid var(--clouds);
    padding-bottom: 0.5rem;
}

.fields-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--silver);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    border-color: var(--peter-river);
    background: var(--clouds);
}

.field-type-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .visibility-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===== ENHANCED VISIBLE FIELDS STYLES ===== */
.visible-fields-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visibility-sections-enhanced {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.visibility-section-card {
    background: var(--card);
    border: 1px solid var(--silver);
    border-radius: var(--radius);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--clouds);
    border-bottom: 1px solid var(--silver);
}

.section-header h5 {
    margin: 0;
    color: var(--text);
}

.section-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-switch-small {
    position: relative;
    display: inline-block;
}

.toggle-switch-small input {
    display: none;
}

.toggle-slider {
    display: inline-block;
    width: 40px;
    height: 20px;
    background: var(--silver);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
}

.toggle-switch-small input:checked + .toggle-slider {
    background: var(--emerald);
}

.toggle-slider::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch-small input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.section-description {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    background: var(--clouds);
    border-bottom: 1px solid var(--silver);
}

.section-content {
    padding: 1.5rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.appendix-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--silver);
}

.appendix-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.status-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.status-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.status-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: var(--text-light);
}

/* ===== APPENDIX STYLES ===== */
.appendix-section {
    page-break-before: always;
}

.appendix-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--silver);
    border-radius: var(--radius);
}

.appendix-item h5 {
    margin: 0 0 1rem 0;
    color: var(--midnight-blue);
    border-bottom: 2px solid var(--peter-river);
    padding-bottom: 0.5rem;
}

.appendix-content {
    font-size: 0.9rem;
}

.audit-trail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.audit-item {
    padding: 0.5rem;
    background: var(--clouds);
    border-radius: 4px;
}

/* Print styles for appendix */
@media print {
    .appendix-section {
        page-break-before: always;
    }
    
    .appendix-item {
        page-break-inside: avoid;
    }
}