/**
 * LeadMachine Connector - Admin Styles
 */

.leadmachine-settings h1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.leadmachine-settings h1 .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

/* Settings page layout */
.leadmachine-settings-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-top: 20px;
}

.leadmachine-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.leadmachine-card h2,
.leadmachine-card h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.leadmachine-shortcode {
    background: #f6f7f7;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.leadmachine-shortcode code {
    background: transparent;
    padding: 0;
}

.leadmachine-status-active {
    color: #46b450;
    font-weight: 600;
}

.leadmachine-status-inactive {
    color: #dc3232;
    font-weight: 600;
}

.leadmachine-settings .required {
    color: #d63638;
}

.leadmachine-settings .nav-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* API Key toggle button container */
.leadmachine-api-key-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Gravity Forms mapping styles */
.gf-form-mapping {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.gf-form-mapping h4 {
    margin: 0 0 10px 0;
}

.gf-form-mapping h4 label {
    cursor: pointer;
}

.gf-mapping-fields .form-table th {
    width: 120px;
    padding: 8px 10px 8px 0;
}

.gf-mapping-fields .form-table td {
    padding: 8px 10px;
}

/* Form field mapping section header */
.leadmachine-settings .gf-mapping-header {
    margin-top: 30px;
}

/* Step descriptions in Quick Start Guide */
.leadmachine-step-desc {
    margin-top: 5px;
}

/* Tags note spacing */
.leadmachine-tags-note {
    margin-top: 10px;
}

/* Dashboard button in sidebar */
.leadmachine-dashboard-btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* Hidden state for form mappings */
.gf-mapping-fields.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .leadmachine-settings-container {
        grid-template-columns: 1fr;
    }
}
