1331 lines
25 KiB
CSS
1331 lines
25 KiB
CSS
/**
|
|
* PC Form Builder Admin Styles
|
|
*
|
|
* Comprehensive admin styling for the form builder plugin.
|
|
*
|
|
* @package PCFormBuilder
|
|
*/
|
|
|
|
/* Color Variables */
|
|
:root {
|
|
--pcfb-primary: #2271b1;
|
|
--pcfb-primary-dark: #135e96;
|
|
--pcfb-primary-light: #72aee6;
|
|
--pcfb-success: #00a32a;
|
|
--pcfb-success-light: #dcfce1;
|
|
--pcfb-warning: #dba617;
|
|
--pcfb-warning-light: #fff9c4;
|
|
--pcfb-danger: #d63638;
|
|
--pcfb-danger-light: #fbe9e9;
|
|
--pcfb-gray-100: #f6f7f7;
|
|
--pcfb-gray-200: #e1e2e3;
|
|
--pcfb-gray-300: #c3c4c7;
|
|
--pcfb-gray-400: #a7aaad;
|
|
--pcfb-gray-500: #8c8f94;
|
|
--pcfb-gray-600: #50575e;
|
|
--pcfb-gray-700: #3c434a;
|
|
--pcfb-gray-800: #1d2327;
|
|
--pcfb-border-radius: 6px;
|
|
--pcfb-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
--pcfb-transition: all 0.2s ease;
|
|
}
|
|
|
|
/* Main Wrapper */
|
|
.pcfb-wrap {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.pcfb-wrap .wp-heading-inline {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.pcfb-heading-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--pcfb-primary);
|
|
font-size: 24px;
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.pcfb-back-link {
|
|
text-decoration: none;
|
|
color: var(--pcfb-gray-600);
|
|
transition: var(--pcfb-transition);
|
|
}
|
|
|
|
.pcfb-back-link:hover {
|
|
color: var(--pcfb-primary);
|
|
}
|
|
|
|
.title-ext {
|
|
color: var(--pcfb-gray-500);
|
|
font-size: 14px;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.title-ext code {
|
|
background: var(--pcfb-gray-100);
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Dashboard Stats */
|
|
.pcfb-dashboard {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.pcfb-stats-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.pcfb-stat-card {
|
|
background: #fff;
|
|
border: 1px solid var(--pcfb-gray-200);
|
|
border-radius: var(--pcfb-border-radius);
|
|
padding: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
box-shadow: var(--pcfb-box-shadow);
|
|
transition: var(--pcfb-transition);
|
|
}
|
|
|
|
.pcfb-stat-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.pcfb-stat-icon {
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.pcfb-stat-icon .dashicons {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24px;
|
|
width: 24px;
|
|
height: 24px;
|
|
color: #fff;
|
|
}
|
|
|
|
.pcfb-stat-icon-blue {
|
|
background: linear-gradient(135deg, #2271b1, #135e96);
|
|
}
|
|
|
|
.pcfb-stat-icon-green {
|
|
background: linear-gradient(135deg, #00a32a, #008a23);
|
|
}
|
|
|
|
.pcfb-stat-icon-orange {
|
|
background: linear-gradient(135deg, #dba617, #c4960f);
|
|
}
|
|
|
|
.pcfb-stat-icon-purple {
|
|
background: linear-gradient(135deg, #9b5c8f, #7a3d6d);
|
|
}
|
|
|
|
.pcfb-stat-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.pcfb-stat-number {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--pcfb-gray-800);
|
|
line-height: 1;
|
|
}
|
|
|
|
.pcfb-stat-label {
|
|
font-size: 13px;
|
|
color: var(--pcfb-gray-500);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* Cards */
|
|
.pcfb-card {
|
|
background: #fff;
|
|
border: 1px solid var(--pcfb-gray-200);
|
|
border-radius: var(--pcfb-border-radius);
|
|
box-shadow: var(--pcfb-box-shadow);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.pcfb-card-header {
|
|
padding: 15px 20px;
|
|
border-bottom: 1px solid var(--pcfb-gray-200);
|
|
background: var(--pcfb-gray-100);
|
|
border-radius: var(--pcfb-border-radius) var(--pcfb-border-radius) 0 0;
|
|
}
|
|
|
|
.pcfb-card-header h2 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--pcfb-gray-800);
|
|
}
|
|
|
|
.pcfb-card-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Forms Table */
|
|
.pcfb-forms-table-card {
|
|
background: #fff;
|
|
border: 1px solid var(--pcfb-gray-200);
|
|
border-radius: var(--pcfb-border-radius);
|
|
box-shadow: var(--pcfb-box-shadow);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.pcfb-table-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.pcfb-table-header h2 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--pcfb-gray-800);
|
|
}
|
|
|
|
.pcfb-table thead th {
|
|
background: var(--pcfb-gray-100);
|
|
font-weight: 600;
|
|
color: var(--pcfb-gray-700);
|
|
padding: 12px 15px;
|
|
border-bottom: 1px solid var(--pcfb-gray-200);
|
|
}
|
|
|
|
.pcfb-table tbody td {
|
|
padding: 15px;
|
|
border-bottom: 1px solid var(--pcfb-gray-200);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.pcfb-table tbody tr:hover {
|
|
background: var(--pcfb-gray-100);
|
|
}
|
|
|
|
.pcfb-table .column-primary {
|
|
width: 35%;
|
|
}
|
|
|
|
.pcfb-table .column-actions {
|
|
width: 150px;
|
|
text-align: right;
|
|
}
|
|
|
|
.pcfb-table .row-actions {
|
|
color: var(--pcfb-gray-500);
|
|
font-size: 12px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.pcfb-table .row-actions .delete button {
|
|
background: none;
|
|
border: none;
|
|
color: var(--pcfb-danger);
|
|
cursor: pointer;
|
|
padding: 0;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.pcfb-table .row-actions .delete button:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.pcfb-field-badge {
|
|
display: inline-block;
|
|
background: var(--pcfb-gray-200);
|
|
color: var(--pcfb-gray-700);
|
|
padding: 4px 10px;
|
|
border-radius: 20px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.pcfb-signups-link {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.pcfb-signup-count {
|
|
display: inline-block;
|
|
background: var(--pcfb-primary);
|
|
color: #fff;
|
|
padding: 6px 14px;
|
|
border-radius: 20px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
transition: var(--pcfb-transition);
|
|
}
|
|
|
|
.pcfb-signups-link:hover .pcfb-signup-count {
|
|
background: var(--pcfb-primary-dark);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.pcfb-signup-count.zero {
|
|
background: var(--pcfb-gray-200);
|
|
color: var(--pcfb-gray-600);
|
|
}
|
|
|
|
.pcfb-shortcode {
|
|
background: var(--pcfb-gray-100);
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
color: var(--pcfb-gray-700);
|
|
cursor: pointer;
|
|
transition: var(--pcfb-transition);
|
|
}
|
|
|
|
.pcfb-shortcode:hover {
|
|
background: var(--pcfb-primary);
|
|
color: #fff;
|
|
}
|
|
|
|
/* Status Badges */
|
|
.pcfb-status {
|
|
display: inline-block;
|
|
padding: 4px 10px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.pcfb-status-active,
|
|
.status-active {
|
|
background: var(--pcfb-success-light);
|
|
color: var(--pcfb-success);
|
|
}
|
|
|
|
.pcfb-status-inactive,
|
|
.status-inactive {
|
|
background: var(--pcfb-gray-200);
|
|
color: var(--pcfb-gray-600);
|
|
}
|
|
|
|
.status-new {
|
|
background: var(--pcfb-warning-light);
|
|
color: #996600;
|
|
}
|
|
|
|
.status-read {
|
|
background: var(--pcfb-gray-200);
|
|
color: var(--pcfb-gray-600);
|
|
}
|
|
|
|
/* Actions */
|
|
.pcfb-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.pcfb-actions .button {
|
|
font-size: 12px;
|
|
padding: 4px 10px;
|
|
height: auto;
|
|
}
|
|
|
|
/* Empty State */
|
|
.pcfb-empty-state {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
background: var(--pcfb-gray-100);
|
|
border-radius: var(--pcfb-border-radius);
|
|
border: 2px dashed var(--pcfb-gray-300);
|
|
}
|
|
|
|
.pcfb-empty-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 64px;
|
|
width: 64px;
|
|
height: 64px;
|
|
color: var(--pcfb-gray-400);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.pcfb-empty-state h3 {
|
|
margin: 0 0 10px;
|
|
color: var(--pcfb-gray-700);
|
|
}
|
|
|
|
.pcfb-empty-state p {
|
|
color: var(--pcfb-gray-500);
|
|
margin: 0 0 20px;
|
|
}
|
|
|
|
/* Modal */
|
|
.pcfb-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 9999;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: var(--pcfb-transition);
|
|
}
|
|
|
|
.pcfb-modal.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.pcfb-modal-content {
|
|
background: #fff;
|
|
border-radius: var(--pcfb-border-radius);
|
|
width: 90%;
|
|
max-width: 500px;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
|
|
transform: scale(0.9);
|
|
transition: var(--pcfb-transition);
|
|
}
|
|
|
|
.pcfb-modal.active .pcfb-modal-content {
|
|
transform: scale(1);
|
|
}
|
|
|
|
.pcfb-modal-header {
|
|
padding: 20px;
|
|
border-bottom: 1px solid var(--pcfb-gray-200);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.pcfb-modal-header h3 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.pcfb-modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 24px;
|
|
color: var(--pcfb-gray-500);
|
|
cursor: pointer;
|
|
padding: 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
.pcfb-modal-close:hover {
|
|
color: var(--pcfb-gray-700);
|
|
}
|
|
|
|
.pcfb-modal-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.pcfb-modal-footer {
|
|
padding: 20px;
|
|
border-top: 1px solid var(--pcfb-gray-200);
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* Builder Layout */
|
|
.pcfb-builder-layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr 320px;
|
|
gap: 24px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.pcfb-builder-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.pcfb-builder-main {
|
|
min-width: 0;
|
|
}
|
|
|
|
.pcfb-builder-sidebar {
|
|
min-width: 320px;
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.pcfb-builder-sidebar {
|
|
min-width: auto;
|
|
}
|
|
}
|
|
|
|
/* Form Groups */
|
|
.pcfb-form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.pcfb-form-group:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.pcfb-form-group label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: 500;
|
|
color: var(--pcfb-gray-700);
|
|
}
|
|
|
|
.pcfb-form-group input[type="text"],
|
|
.pcfb-form-group input[type="email"],
|
|
.pcfb-form-group input[type="url"],
|
|
.pcfb-form-group textarea,
|
|
.pcfb-form-group select {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--pcfb-gray-300);
|
|
border-radius: var(--pcfb-border-radius);
|
|
font-size: 14px;
|
|
transition: var(--pcfb-transition);
|
|
}
|
|
|
|
.pcfb-form-group input:focus,
|
|
.pcfb-form-group textarea:focus,
|
|
.pcfb-form-group select:focus {
|
|
outline: none;
|
|
border-color: var(--pcfb-primary);
|
|
box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
|
|
}
|
|
|
|
.pcfb-form-group textarea {
|
|
resize: vertical;
|
|
min-height: 80px;
|
|
}
|
|
|
|
.pcfb-checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 400;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.pcfb-checkbox-label input[type="checkbox"] {
|
|
margin: 0;
|
|
}
|
|
|
|
/* Field Types */
|
|
.pcfb-field-types-section {
|
|
background: var(--pcfb-gray-100);
|
|
padding: 20px;
|
|
border-radius: var(--pcfb-border-radius);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.pcfb-field-types-section h3 {
|
|
margin: 0 0 8px;
|
|
font-size: 16px;
|
|
color: var(--pcfb-gray-800);
|
|
}
|
|
|
|
.pcfb-field-types-section > .description {
|
|
margin: 0 0 15px;
|
|
color: var(--pcfb-gray-600);
|
|
}
|
|
|
|
.pcfb-field-type-buttons {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.pcfb-add-field-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 10px 16px;
|
|
background: #fff;
|
|
border: 1px solid var(--pcfb-gray-300);
|
|
border-radius: var(--pcfb-border-radius);
|
|
cursor: pointer;
|
|
transition: var(--pcfb-transition);
|
|
font-size: 13px;
|
|
min-width: 120px;
|
|
text-align: center;
|
|
}
|
|
|
|
.pcfb-add-field-btn:hover {
|
|
border-color: var(--pcfb-primary);
|
|
background: rgba(34, 113, 177, 0.05);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.pcfb-add-field-btn .dashicons {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
width: 18px;
|
|
height: 18px;
|
|
color: var(--pcfb-gray-600);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.pcfb-add-field-btn:hover .dashicons {
|
|
color: var(--pcfb-primary);
|
|
}
|
|
|
|
.pcfb-add-field-btn .pcfb-field-label {
|
|
color: var(--pcfb-gray-700);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
/* Form Fields Container */
|
|
.pcfb-form-fields {
|
|
background: #fff;
|
|
border: 1px solid var(--pcfb-gray-200);
|
|
border-radius: var(--pcfb-border-radius);
|
|
padding: 20px;
|
|
}
|
|
|
|
.pcfb-form-fields h3 {
|
|
margin: 0 0 20px;
|
|
font-size: 16px;
|
|
color: var(--pcfb-gray-800);
|
|
}
|
|
|
|
.pcfb-fields-container {
|
|
min-height: 100px;
|
|
}
|
|
|
|
.pcfb-empty-fields {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
color: var(--pcfb-gray-500);
|
|
border: 2px dashed var(--pcfb-gray-300);
|
|
border-radius: var(--pcfb-border-radius);
|
|
}
|
|
|
|
/* Field Items */
|
|
.pcfb-field-item {
|
|
background: var(--pcfb-gray-100);
|
|
border: 1px solid var(--pcfb-gray-300);
|
|
border-radius: var(--pcfb-border-radius);
|
|
margin-bottom: 15px;
|
|
overflow: hidden;
|
|
transition: var(--pcfb-transition);
|
|
}
|
|
|
|
.pcfb-field-item:hover {
|
|
border-color: var(--pcfb-gray-400);
|
|
}
|
|
|
|
.pcfb-field-item.pcfb-new-field {
|
|
border-color: var(--pcfb-primary);
|
|
animation: pcfbSlideIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes pcfbSlideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.pcfb-field-header {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 15px;
|
|
background: #fff;
|
|
border-bottom: 1px solid var(--pcfb-gray-200);
|
|
cursor: grab;
|
|
}
|
|
|
|
.pcfb-field-header:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.pcfb-field-type-badge {
|
|
background: var(--pcfb-primary);
|
|
color: #fff;
|
|
padding: 4px 10px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.pcfb-field-name-display {
|
|
font-family: monospace;
|
|
font-size: 12px;
|
|
color: var(--pcfb-gray-600);
|
|
}
|
|
|
|
.pcfb-field-actions {
|
|
margin-left: auto;
|
|
display: flex;
|
|
gap: 5px;
|
|
}
|
|
|
|
.pcfb-toggle-field {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--pcfb-gray-500);
|
|
padding: 4px;
|
|
min-width: 28px;
|
|
height: 28px;
|
|
}
|
|
|
|
.pcfb-toggle-field .dashicons {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.pcfb-field-content {
|
|
padding: 15px;
|
|
}
|
|
|
|
.pcfb-field-footer {
|
|
padding: 12px 15px;
|
|
border-top: 1px solid var(--pcfb-gray-200);
|
|
background: #fff;
|
|
text-align: right;
|
|
}
|
|
|
|
.pcfb-delete-field {
|
|
color: var(--pcfb-danger);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.pcfb-delete-field:hover {
|
|
color: var(--pcfb-danger);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.pcfb-toggle-field {
|
|
color: var(--pcfb-gray-500);
|
|
}
|
|
|
|
.pcfb-toggle-field .dashicons {
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.pcfb-field-item.collapsed .pcfb-field-content {
|
|
display: none;
|
|
}
|
|
|
|
.pcfb-field-item.collapsed .pcfb-field-footer {
|
|
display: none;
|
|
}
|
|
|
|
.pcfb-field-item.collapsed .pcfb-toggle-field .dashicons {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
/* Publish Card */
|
|
.pcfb-publish-card .pcfb-card-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.pcfb-save-btn {
|
|
width: 100%;
|
|
padding: 12px 20px;
|
|
font-size: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.pcfb-save-btn .dashicons {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20px;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
/* Help Card */
|
|
.pcfb-help-card .pcfb-card-body {
|
|
font-size: 13px;
|
|
color: var(--pcfb-gray-600);
|
|
}
|
|
|
|
.pcfb-help-card p {
|
|
margin: 0 0 10px;
|
|
}
|
|
|
|
.pcfb-help-card ul {
|
|
margin: 0;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.pcfb-help-card li {
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.pcfb-help-card li .dashicons {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
width: 18px;
|
|
height: 18px;
|
|
min-width: 18px;
|
|
color: var(--pcfb-gray-500);
|
|
}
|
|
|
|
/* Form Sections Card */
|
|
.pcfb-sections-card .pcfb-sections-container {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.pcfb-section-box {
|
|
background: var(--pcfb-gray-100);
|
|
border: 1px solid var(--pcfb-gray-300);
|
|
border-radius: var(--pcfb-border-radius);
|
|
margin-bottom: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.pcfb-section-box.pcfb-default-section {
|
|
border-style: dashed;
|
|
}
|
|
|
|
.pcfb-section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px 15px;
|
|
background: #fff;
|
|
border-bottom: 1px solid var(--pcfb-gray-200);
|
|
cursor: grab;
|
|
}
|
|
|
|
.pcfb-section-header:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.pcfb-section-header .dashicons {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--pcfb-gray-500);
|
|
font-size: 20px;
|
|
width: 20px;
|
|
height: 20px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.pcfb-section-title {
|
|
font-weight: 600;
|
|
color: var(--pcfb-gray-800);
|
|
}
|
|
|
|
.pcfb-section-content {
|
|
padding: 15px;
|
|
}
|
|
|
|
.pcfb-add-section-btn {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.pcfb-add-section-btn .dashicons {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
/* Forms Grid */
|
|
.pcfb-forms-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 24px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.pcfb-form-card {
|
|
background: #fff;
|
|
border: 1px solid var(--pcfb-gray-200);
|
|
border-radius: var(--pcfb-border-radius);
|
|
box-shadow: var(--pcfb-box-shadow);
|
|
overflow: hidden;
|
|
transition: var(--pcfb-transition);
|
|
}
|
|
|
|
.pcfb-form-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
|
|
}
|
|
|
|
.pcfb-form-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px 20px;
|
|
background: var(--pcfb-gray-100);
|
|
border-bottom: 1px solid var(--pcfb-gray-200);
|
|
}
|
|
|
|
.pcfb-form-card-header h3 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
color: var(--pcfb-gray-800);
|
|
}
|
|
|
|
.pcfb-status-badge {
|
|
padding: 4px 10px;
|
|
border-radius: 20px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.pcfb-form-card-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.pcfb-form-description {
|
|
color: var(--pcfb-gray-600);
|
|
font-size: 13px;
|
|
margin: 0 0 15px;
|
|
}
|
|
|
|
.pcfb-form-stats {
|
|
display: flex;
|
|
gap: 20px;
|
|
margin-bottom: 15px;
|
|
padding: 15px;
|
|
background: var(--pcfb-gray-100);
|
|
border-radius: var(--pcfb-border-radius);
|
|
}
|
|
|
|
.pcfb-stat {
|
|
text-align: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.pcfb-stat .pcfb-stat-value {
|
|
display: block;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--pcfb-gray-800);
|
|
}
|
|
|
|
.pcfb-stat .pcfb-stat-label {
|
|
font-size: 12px;
|
|
color: var(--pcfb-gray-500);
|
|
}
|
|
|
|
.pcfb-shortcode-box {
|
|
background: var(--pcfb-gray-100);
|
|
padding: 10px 15px;
|
|
border-radius: var(--pcfb-border-radius);
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.pcfb-shortcode-box label {
|
|
display: block;
|
|
font-size: 11px;
|
|
color: var(--pcfb-gray-500);
|
|
margin-bottom: 5px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.pcfb-shortcode-box code {
|
|
display: block;
|
|
font-size: 12px;
|
|
word-break: break-all;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.pcfb-form-dates {
|
|
font-size: 12px;
|
|
color: var(--pcfb-gray-500);
|
|
}
|
|
|
|
.pcfb-form-card-footer {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 15px 20px;
|
|
border-top: 1px solid var(--pcfb-gray-200);
|
|
background: var(--pcfb-gray-100);
|
|
}
|
|
|
|
.pcfb-form-card-footer .button {
|
|
flex: 1;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
padding: 6px 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.pcfb-form-card-footer .dashicons {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-right: 4px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.pcfb-delete-form-btn {
|
|
flex: 0 0 auto !important;
|
|
color: var(--pcfb-danger) !important;
|
|
}
|
|
|
|
.pcfb-delete-form-btn:hover {
|
|
background: var(--pcfb-danger) !important;
|
|
color: #fff !important;
|
|
border-color: var(--pcfb-danger) !important;
|
|
}
|
|
|
|
/* Responses Page */
|
|
.pcfb-responses-overview {
|
|
background: #fff;
|
|
border: 1px solid var(--pcfb-gray-200);
|
|
border-radius: var(--pcfb-border-radius);
|
|
padding: 30px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.pcfb-responses-overview h2 {
|
|
margin: 0 0 10px;
|
|
}
|
|
|
|
.pcfb-forms-select-list {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.pcfb-form-select-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px 20px;
|
|
border: 1px solid var(--pcfb-gray-200);
|
|
border-radius: var(--pcfb-border-radius);
|
|
margin-bottom: 10px;
|
|
transition: var(--pcfb-transition);
|
|
}
|
|
|
|
.pcfb-form-select-item:hover {
|
|
border-color: var(--pcfb-primary);
|
|
background: rgba(34, 113, 177, 0.02);
|
|
}
|
|
|
|
.pcfb-form-select-info h3 {
|
|
margin: 0 0 5px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.pcfb-form-select-info h3 a {
|
|
text-decoration: none;
|
|
color: var(--pcfb-gray-800);
|
|
}
|
|
|
|
.pcfb-form-select-info h3 a:hover {
|
|
color: var(--pcfb-primary);
|
|
}
|
|
|
|
.pcfb-form-select-stats {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.pcfb-response-count {
|
|
font-size: 14px;
|
|
color: var(--pcfb-gray-600);
|
|
}
|
|
|
|
.pcfb-response-count strong {
|
|
color: var(--pcfb-gray-800);
|
|
font-size: 18px;
|
|
}
|
|
|
|
.pcfb-total-responses {
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.pcfb-total-card {
|
|
background: linear-gradient(135deg, var(--pcfb-primary), var(--pcfb-primary-dark));
|
|
color: #fff;
|
|
padding: 30px;
|
|
border-radius: var(--pcfb-border-radius);
|
|
text-align: center;
|
|
}
|
|
|
|
.pcfb-total-number {
|
|
display: block;
|
|
font-size: 48px;
|
|
font-weight: 700;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.pcfb-total-label {
|
|
font-size: 14px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Form Responses Page */
|
|
.pcfb-responses-header {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.pcfb-response-count-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
background: var(--pcfb-gray-100);
|
|
padding: 10px 20px;
|
|
border-radius: var(--pcfb-border-radius);
|
|
font-size: 14px;
|
|
color: var(--pcfb-gray-700);
|
|
}
|
|
|
|
.pcfb-response-count-badge .dashicons {
|
|
color: var(--pcfb-primary);
|
|
}
|
|
|
|
.pcfb-responses-table {
|
|
background: #fff;
|
|
border-radius: var(--pcfb-border-radius);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Pagination */
|
|
.pcfb-pagination {
|
|
margin-top: 20px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid var(--pcfb-gray-200);
|
|
}
|
|
|
|
.pcfb-pagination .page-numbers {
|
|
display: inline-block;
|
|
padding: 8px 14px;
|
|
margin: 0 4px;
|
|
border: 1px solid var(--pcfb-gray-300);
|
|
border-radius: var(--pcfb-border-radius);
|
|
text-decoration: none;
|
|
color: var(--pcfb-gray-700);
|
|
font-size: 14px;
|
|
transition: var(--pcfb-transition);
|
|
}
|
|
|
|
.pcfb-pagination .page-numbers:hover {
|
|
border-color: var(--pcfb-primary);
|
|
color: var(--pcfb-primary);
|
|
}
|
|
|
|
.pcfb-pagination .page-numbers.current {
|
|
background: var(--pcfb-primary);
|
|
border-color: var(--pcfb-primary);
|
|
color: #fff;
|
|
}
|
|
|
|
.pcfb-pagination .page-numbers.dots {
|
|
border: none;
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.pcfb-pagination .page-numbers.prev,
|
|
.pcfb-pagination .page-numbers.next {
|
|
background: var(--pcfb-gray-100);
|
|
}
|
|
|
|
/* Response Detail Page */
|
|
.pcfb-response-detail-page {
|
|
display: grid;
|
|
grid-template-columns: 300px 1fr;
|
|
gap: 24px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.pcfb-response-detail-page {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.pcfb-meta-table {
|
|
width: 100%;
|
|
}
|
|
|
|
.pcfb-meta-table tr {
|
|
border-bottom: 1px solid var(--pcfb-gray-200);
|
|
}
|
|
|
|
.pcfb-meta-table th {
|
|
width: 100px;
|
|
padding: 10px;
|
|
font-weight: 500;
|
|
color: var(--pcfb-gray-600);
|
|
vertical-align: top;
|
|
}
|
|
|
|
.pcfb-meta-table td {
|
|
padding: 10px;
|
|
color: var(--pcfb-gray-800);
|
|
}
|
|
|
|
.pcfb-response-field {
|
|
padding: 15px 0;
|
|
border-bottom: 1px solid var(--pcfb-gray-200);
|
|
}
|
|
|
|
.pcfb-response-field:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.pcfb-response-field-label {
|
|
font-weight: 600;
|
|
color: var(--pcfb-gray-700);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.pcfb-response-field-value {
|
|
color: var(--pcfb-gray-800);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Responsive Adjustments */
|
|
@media screen and (max-width: 782px) {
|
|
.pcfb-stats-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.pcfb-forms-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.pcfb-form-select-item {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 15px;
|
|
}
|
|
|
|
.pcfb-form-select-stats {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.pcfb-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.pcfb-actions .button {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.pcfb-field-type-buttons {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.pcfb-add-field-btn {
|
|
justify-content: center;
|
|
padding: 12px;
|
|
}
|
|
}
|
|
|
|
/* WordPress Admin Color Scheme Support */
|
|
.admin-color-blue .pcfb-add-field-btn:hover,
|
|
.admin-color-blue .pcfb-field-type-badge,
|
|
.admin-color-blue .pcfb-stat-icon-blue {
|
|
background: #0073aa;
|
|
}
|
|
|
|
.admin-color-coffee .pcfb-add-field-btn:hover,
|
|
.admin-color-coffee .pcfb-field-type-badge,
|
|
.admin-color-coffee .pcfb-stat-icon-blue {
|
|
background: #46403c;
|
|
}
|
|
|
|
.admin-color-ectoplasm .pcfb-add-field-btn:hover,
|
|
.admin-color-ectoplasm .pcfb-field-type-badge,
|
|
.admin-color-ectoplasm .pcfb-stat-icon-blue {
|
|
background: #523f6d;
|
|
}
|
|
|
|
.admin-color-light .pcfb-add-field-btn:hover,
|
|
.admin-color-light .pcfb-field-type-badge,
|
|
.admin-color-light .pcfb-stat-icon-blue {
|
|
background: #0085ba;
|
|
}
|
|
|
|
.admin-color-midnight .pcfb-add-field-btn:hover,
|
|
.admin-color-midnight .pcfb-field-type-badge,
|
|
.admin-color-midnight .pcfb-stat-icon-blue {
|
|
background: #363b3e;
|
|
}
|
|
|
|
.admin-color-modern .pcfb-add-field-btn:hover,
|
|
.admin-color-modern .pcfb-field-type-badge,
|
|
.admin-color-modern .pcfb-stat-icon-blue {
|
|
background: #3858e9;
|
|
}
|
|
|
|
.admin-color-ocean .pcfb-add-field-btn:hover,
|
|
.admin-color-ocean .pcfb-field-type-badge,
|
|
.admin-color-ocean .pcfb-stat-icon-blue {
|
|
background: #9fc55e;
|
|
}
|
|
|
|
.admin-color-sunrise .pcfb-add-field-btn:hover,
|
|
.admin-color-sunrise .pcfb-field-type-badge,
|
|
.admin-color-sunrise .pcfb-stat-icon-blue {
|
|
background: #dd823b;
|
|
}
|