- Removed email/password authentication and related settings from the plugin. - Updated API connection logic to utilize only the API key for authentication. - Simplified the admin interface by removing webhook-related settings and messages. - Enhanced the settings page with improved UI and status indicators for API connection. - Added a new REST API endpoint to check plugin status and connection health. - Updated styles for a modernized look and feel across the admin interface.
470 lines
9.5 KiB
CSS
470 lines
9.5 KiB
CSS
/**
|
|
* Admin Styles - IGNY8 Bridge
|
|
* Updated with IGNY8 brand colors and modern UI
|
|
*
|
|
* @package Igny8Bridge
|
|
*/
|
|
|
|
/* ============================================
|
|
IGNY8 Brand Colors
|
|
============================================ */
|
|
:root {
|
|
--igny8-primary: #3B82F6;
|
|
--igny8-primary-hover: #2563EB;
|
|
--igny8-success: #10B981;
|
|
--igny8-warning: #F59E0B;
|
|
--igny8-error: #EF4444;
|
|
--igny8-purple: #8B5CF6;
|
|
--igny8-gray: #6B7280;
|
|
--igny8-light-gray: #F3F4F6;
|
|
}
|
|
|
|
/* ============================================
|
|
Container & Layout
|
|
============================================ */
|
|
|
|
.igny8-settings-container {
|
|
max-width: 1400px;
|
|
}
|
|
|
|
.igny8-settings-card {
|
|
background: #fff;
|
|
border: 1px solid #E5E7EB;
|
|
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
|
padding: 24px;
|
|
margin: 24px 0;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.igny8-settings-card h2 {
|
|
margin-top: 0;
|
|
padding-bottom: 12px;
|
|
border-bottom: 2px solid var(--igny8-light-gray);
|
|
color: #111827;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ============================================
|
|
Toggle Switch
|
|
============================================ */
|
|
|
|
.igny8-toggle-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.igny8-toggle-input {
|
|
position: relative;
|
|
width: 48px;
|
|
height: 24px;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
background: var(--igny8-gray);
|
|
outline: none;
|
|
border-radius: 24px;
|
|
cursor: pointer;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
.igny8-toggle-input:checked {
|
|
background: var(--igny8-success);
|
|
}
|
|
|
|
.igny8-toggle-input::before {
|
|
content: '';
|
|
position: absolute;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
top: 2px;
|
|
left: 2px;
|
|
background: #fff;
|
|
transition: 0.3s;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.igny8-toggle-input:checked::before {
|
|
left: 26px;
|
|
}
|
|
|
|
/* ============================================
|
|
Sync Operations Grid
|
|
============================================ */
|
|
|
|
.igny8-sync-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.igny8-sync-card {
|
|
background: #fff;
|
|
border: 2px solid #E5E7EB;
|
|
border-radius: 12px;
|
|
padding: 24px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.igny8-sync-card:hover {
|
|
border-color: var(--igny8-primary);
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.igny8-sync-card-highlight {
|
|
border-color: var(--igny8-primary);
|
|
background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
|
|
}
|
|
|
|
.igny8-sync-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
background: var(--igny8-primary);
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 16px;
|
|
color: white;
|
|
}
|
|
|
|
.igny8-sync-card h3 {
|
|
margin: 0 0 8px 0;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #111827;
|
|
}
|
|
|
|
.igny8-sync-description {
|
|
font-size: 14px;
|
|
color: #6B7280;
|
|
line-height: 1.5;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.igny8-sync-meta {
|
|
font-size: 12px;
|
|
color: #9CA3AF;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.igny8-sync-time {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.igny8-sync-button {
|
|
width: 100%;
|
|
height: 40px;
|
|
background: var(--igny8-primary) !important;
|
|
border-color: var(--igny8-primary) !important;
|
|
color: white !important;
|
|
font-weight: 500 !important;
|
|
border-radius: 8px !important;
|
|
transition: all 0.2s ease !important;
|
|
}
|
|
|
|
.igny8-sync-button:hover:not(:disabled) {
|
|
background: var(--igny8-primary-hover) !important;
|
|
border-color: var(--igny8-primary-hover) !important;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
.igny8-sync-button:disabled {
|
|
opacity: 0.5 !important;
|
|
cursor: not-allowed !important;
|
|
}
|
|
|
|
.button-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* ============================================
|
|
Statistics Cards
|
|
============================================ */
|
|
|
|
.igny8-stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.igny8-stat-card {
|
|
background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
|
|
border: 1px solid #E5E7EB;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.igny8-stat-card:hover {
|
|
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.igny8-stat-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.igny8-stat-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.igny8-stat-label {
|
|
font-size: 12px;
|
|
color: #6B7280;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
margin-bottom: 4px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.igny8-stat-value {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: #111827;
|
|
line-height: 1.2;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.igny8-stat-meta {
|
|
font-size: 12px;
|
|
color: #9CA3AF;
|
|
}
|
|
|
|
/* ============================================
|
|
Semantic Summary
|
|
============================================ */
|
|
|
|
.igny8-semantic-summary {
|
|
margin-top: 24px;
|
|
padding: 20px;
|
|
background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 100%);
|
|
border-radius: 12px;
|
|
border: 1px solid #D8B4FE;
|
|
}
|
|
|
|
.igny8-semantic-summary h3 {
|
|
margin: 0 0 16px 0;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #6B21A8;
|
|
}
|
|
|
|
.igny8-semantic-stats {
|
|
display: flex;
|
|
gap: 32px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.igny8-semantic-stat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.igny8-semantic-stat .value {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: #7C3AED;
|
|
}
|
|
|
|
.igny8-semantic-stat .label {
|
|
font-size: 12px;
|
|
color: #8B5CF6;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
/* ============================================
|
|
Status Indicators
|
|
============================================ */
|
|
|
|
.igny8-status-connected {
|
|
color: var(--igny8-success);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.igny8-status-disconnected {
|
|
color: var(--igny8-error);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ============================================
|
|
Diagnostics
|
|
============================================ */
|
|
|
|
.igny8-diagnostics-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 16px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.igny8-diagnostic-item {
|
|
padding: 16px;
|
|
background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
|
|
border: 1px solid #E5E7EB;
|
|
border-radius: 8px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.igny8-diagnostic-item:hover {
|
|
border-color: var(--igny8-primary);
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.igny8-diagnostic-label {
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: #6B7280;
|
|
margin-bottom: 8px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.igny8-diagnostic-value {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #111827;
|
|
}
|
|
|
|
.igny8-diagnostic-item .description {
|
|
margin: 6px 0 0;
|
|
color: #9CA3AF;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* ============================================
|
|
Sync Status Messages
|
|
============================================ */
|
|
|
|
.igny8-sync-status {
|
|
margin-top: 20px;
|
|
padding: 16px;
|
|
border-radius: 8px;
|
|
display: none;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.igny8-sync-status.igny8-sync-status-success {
|
|
background-color: #D1FAE5;
|
|
border: 1px solid #6EE7B7;
|
|
color: #065F46;
|
|
display: block;
|
|
}
|
|
|
|
.igny8-sync-status.igny8-sync-status-error {
|
|
background-color: #FEE2E2;
|
|
border: 1px solid #FCA5A5;
|
|
color: #991B1B;
|
|
display: block;
|
|
}
|
|
|
|
.igny8-sync-status.igny8-sync-status-loading {
|
|
background-color: #DBEAFE;
|
|
border: 1px solid #93C5FD;
|
|
color: #1E40AF;
|
|
display: block;
|
|
}
|
|
|
|
/* ============================================
|
|
Loading States
|
|
============================================ */
|
|
|
|
.igny8-loading {
|
|
opacity: 0.6;
|
|
pointer-events: none;
|
|
}
|
|
|
|
@keyframes igny8-spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* ============================================
|
|
Messages & Notifications
|
|
============================================ */
|
|
|
|
.igny8-message {
|
|
padding: 16px;
|
|
margin: 15px 0;
|
|
border-left: 4px solid;
|
|
background: #fff;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.igny8-message.igny8-message-success {
|
|
border-color: var(--igny8-success);
|
|
background-color: #F0FDF4;
|
|
color: #065F46;
|
|
}
|
|
|
|
.igny8-message.igny8-message-error {
|
|
border-color: var(--igny8-error);
|
|
background-color: #FEF2F2;
|
|
color: #991B1B;
|
|
}
|
|
|
|
.igny8-message.igny8-message-info {
|
|
border-color: var(--igny8-primary);
|
|
background-color: #EFF6FF;
|
|
color: #1E40AF;
|
|
}
|
|
|
|
.igny8-message.igny8-message-warning {
|
|
border-color: var(--igny8-warning);
|
|
background-color: #FFFBEB;
|
|
color: #92400E;
|
|
}
|
|
|
|
/* ============================================
|
|
Responsive
|
|
============================================ */
|
|
|
|
@media (max-width: 782px) {
|
|
.igny8-sync-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.igny8-stats-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.igny8-diagnostics-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.igny8-settings-card {
|
|
padding: 16px;
|
|
}
|
|
|
|
.igny8-sync-card {
|
|
padding: 16px;
|
|
}
|
|
|
|
.igny8-stat-card {
|
|
flex-direction: column;
|
|
}
|
|
}
|