.check-column {
    padding: 10px 6px 0 !important;
}

.check-column input {
    margin-left: 8px !important;
}

.form-field {
    padding: 4px;
    border-bottom: 1px solid #f0f0f1;
    line-height: 1.5;
}

.form-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-title {
    margin-bottom: 8px;
}

.form-meta {
    border-top: 1px solid #f0f0f1;
    color: #646970;
    font-size: 12px;
    line-height: 1.5;
}

.form-meta div {
    margin: 3px 0;
}

.row-actions {
    font-size: 12px;
    margin-top: 4px;
    visibility: hidden;
}

.form-filters {
    background: #fff;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

tr:hover .row-actions {
    visibility: visible;
}

.row-actions .trash a {
    color: #b32d2e;
}

.tablenav .tablenav-pages {
    float: right;
    margin: 0 0 10px 0;
}

.tablenav-pages .pagination-links {
    display: inline-block;
    vertical-align: top;
}

.tablenav-pages .page-numbers {
    display: inline-block;
    min-width: 24px;
    height: 24px;
    margin: 0 2px;
    padding: 0 5px;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #f7f7f7;
}

.tablenav-pages .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.tablenav-pages .page-numbers.dots {
    border: none;
    background: transparent;
}

.form-table th {
    width: 200px;
    vertical-align: top;
    padding-top: 20px;
}

input[readonly] {
    background-color: #f6f7f7;
    cursor: not-allowed;
}

.code-block {
    background: #f6f7f7;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    margin: 8px 0;
    position: relative;
    padding-right: 100px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
}

.code-block .copy-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    height: auto;
    padding: 4px 8px;
}

.cfdb-form-notifier-auth-toggle {
    margin: 10px 0;
}

.cfdb-form-notifier-auth-toggle .button {
    margin-right: 10px;
}

.cfdb-form-notifier-auth-toggle .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

.cfdb-form-notifier-auth-toggle .description {
    margin: 10px 0 0 0;
    padding: 8px 12px;
    background: #f6f7f7;
    border-left: 4px solid #2271b1;
    display: inline-block;
}

.cfdb-form-notifier-auth-toggle .dashicons-info {
    color: #d63638;
}

.cfdb-form-notifier-auth-toggle .dashicons-lock {
    color: #00a32a;
}

/* Settings page improvements */
.cfdb-settings-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 30px;
    margin-block: 15px;
    border: none;
}

.cfdb-settings-card h2 {
    margin-top: 0;
    color: #1d2327;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cfdb-api-key-input {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    width: 100%;
    max-width: 500px;
}

.cfdb-regenerate-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: background 0.2s;
}

.cfdb-regenerate-btn:hover {
    background: #c82333;
    color: white;
}

.cfdb-auth-mode-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: 25px;
    border: none;
}

.cfdb-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.cfdb-mode-toggle .button {
    border-radius: 8px;
    padding: 4px 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.cfdb-mode-status {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 16px;
    margin: 15px 0;
    display: inline-block;
}

.cfdb-endpoint-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.cfdb-endpoint-section h3 {
    margin-top: 0;
    color: #495057;
    font-size: 16px;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 10px 0;
    position: relative;
    padding-right: 120px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.code-block .copy-button {
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.2s;
}

.code-block .copy-button:hover {
    background: #3182ce;
}

.cfdb-help-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cfdb-help-section a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    transition: border-color 0.2s;
}

.cfdb-help-section a:hover {
    border-bottom-color: white;
}

.cfdb-save-section {
    margin-top: 25px;
}

/* Form tabs styles */
.cfdb-form-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    background: #fff;
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cfdb-tab {
    padding: 8px 12px;
    background: transparent;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.cfdb-tab:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.cfdb-tab-active {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.cfdb-tab-active:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    color: white;
}

/* Controls row styles */
.cfdb-controls-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cfdb-select-all label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 600;
    color: #495057;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.cfdb-select-all label:hover {
    background: #e9ecef;
}

.cfdb-bulk-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cfdb-bulk-actions select {
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-weight: 500;
}

.cfdb-bulk-actions .button {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s;
}

.cfdb-bottom-controls {
    margin-top: 25px;
    padding: 20px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cfdb-pagination {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.form-entries {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-entry {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 12px 16px 4px;
    position: relative;
}

.entry-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
    line-height: 1.1;
}

.field-item {
    color: #333;
    word-break: break-word;
    font-size: 14px;
}

.field-item strong {
    color: #000;
    font-weight: 600;
}

.entry-meta {
    border-top: 1px solid #eee;
    padding-top: 8px;
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 8px;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    line-height: 1.5;
}

.meta-item {
    color: #333;
    word-break: break-word;
    font-size: 13px;
}

.meta-item strong {
    color: #000;
    font-weight: 600;
}

.entry-actions {
    display: flex;
    gap: 10px;
    height: min-content;
    justify-content: center;
    margin-top: -4px;
}

.btn {
    padding: 5px 15px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    min-width: 60px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.btn-edit {
    background: #0073aa;
    color: white;
}

.btn-edit:hover {
    background: #005a87;
    color: white;
}

.btn-delete {
    background: #dc3232;
    color: white;
}

.btn-delete:hover {
    background: #b32d2e;
    color: white;
}

.no-entries {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pro-locked {
    cursor: help;
    opacity: 0.7;
}


.wrap h1 {
    color: #1d2327;
    font-weight: 600;
}

@media (max-width: 768px) {
    .cfdb-field-item {
        flex: 0 0 100%;
    }
    
    .cfdb-entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cfdb-entry-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Pro Promo Styles */
.cfdb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.pro-promo-btn {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%) !important;
    border-color: #ed8936 !important;
    color: white !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    box-shadow: 0 2px 4px rgba(237, 137, 54, 0.3) !important;
}

.pro-promo-btn:hover {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%) !important;
    box-shadow: 0 4px 8px rgba(237, 137, 54, 0.4) !important;
}

/* Entry Remark */
.cfdb-entry-remark {
    margin: 15px 0;
    padding: 12px 15px;
    background-color: #ebf8ff;
    border-left: 4px solid #4299e1;
    border-radius: 4px;
    font-style: italic;
    color: #2b6cb0;
}

.cfdb-entry-actions {
    display: flex;
    gap: 10px;
}

.cfdb-edit-btn {
    background: #edf2f7;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #cbd5e0;
}


.cfdb-edit-btn:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.pro-locked {
    cursor: help;
}