/* Sweet Sharmin Preloader — Admin Styles */
*, *::before, *::after { box-sizing: border-box; }

.ssp-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    background: #f0f2f5;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Header */
.ssp-header {
    background: linear-gradient(135deg, #f43f5e 0%, #a855f7 50%, #6366f1 100%);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -8px -20px 30px;
    box-shadow: 0 4px 20px rgba(244,63,94,0.35);
}
.ssp-logo { display: flex; align-items: center; gap: 16px; color: #fff; }
.ssp-logo .dashicons {
    font-size: 42px; width: 42px; height: 42px; opacity: 0.95;
    animation: ssp-bounce 2s ease-in-out infinite;
}
@keyframes ssp-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}
.ssp-logo h1 { margin: 0; font-size: 26px; font-weight: 700; color: #fff; line-height: 1.2; }
.ssp-logo p  { margin: 4px 0 0; font-size: 13px; opacity: 0.85; color: #fff; }

/* Notice */
.ssp-notice {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    display: flex; align-items: center; gap: 8px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Layout */
.ssp-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 0 10px;
}
@media (max-width: 960px) { .ssp-content { grid-template-columns: 1fr; } }

/* Card */
.ssp-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    margin-bottom: 20px;
}
.ssp-card h3 {
    margin: 0 0 20px;
    font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    color: #374151;
    display: flex; align-items: center; gap: 8px;
}
.ssp-card h3 .dashicons { color: #f43f5e; }

/* Fields */
.ssp-field { margin-bottom: 20px; }
.ssp-field label { display: block; font-size: 13px; font-weight: 600; color: #4b5563; margin-bottom: 8px; }

/* Toggle */
.ssp-toggle-label { display: flex !important; align-items: center; justify-content: space-between; }
.ssp-toggle { position: relative; display: inline-block; width: 48px; height: 26px; }
.ssp-toggle input { opacity: 0; width: 0; height: 0; }
.ssp-slider {
    position: absolute; inset: 0;
    background: #d1d5db; border-radius: 26px; cursor: pointer; transition: .3s;
}
.ssp-slider::before {
    content: "";
    position: absolute;
    height: 20px; width: 20px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: .3s;
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.ssp-toggle input:checked + .ssp-slider { background: linear-gradient(135deg,#f43f5e,#a855f7); }
.ssp-toggle input:checked + .ssp-slider::before { transform: translateX(22px); }

/* Color */
.ssp-color-row { display: flex; align-items: center; gap: 12px; }
.ssp-color-input { width: 48px; height: 40px; border: 2px solid #e5e7eb; border-radius: 8px; padding: 2px; cursor: pointer; background: none; }
.ssp-color-hex { font-family: monospace; font-size: 14px; color: #374151; font-weight: 600; }

/* Badge */
.ssp-selected-badge {
    background: linear-gradient(135deg,#f43f5e,#a855f7,#6366f1);
    color: #fff; padding: 10px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 600;
}

/* Save button */
.ssp-save-btn {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg,#f43f5e,#a855f7);
    color: #fff; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(244,63,94,.4);
}
.ssp-save-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(244,63,94,.5); }
.ssp-save-btn:active { transform: translateY(0); }

/* Preview */
.ssp-preview-card .ssp-live-preview {
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    height: 170px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.ssp-live-preview .ssp-svg { width: 90px; height: 90px; }

/* Section title */
.ssp-section-title {
    font-size: 18px; font-weight: 700; color: #1f2937;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

/* Grid */
.ssp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
}

/* Item card */
.ssp-item {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.ssp-item:hover {
    border-color: #f43f5e;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(244,63,94,.18);
}
.ssp-item.ssp-active {
    border-color: #f43f5e;
    box-shadow: 0 0 0 3px rgba(244,63,94,.18), 0 8px 24px rgba(244,63,94,.18);
}

.ssp-item-preview {
    height: 130px;
    display: flex; align-items: center; justify-content: center;
    background: #f9fafb; padding: 14px;
    overflow: hidden;
}
.ssp-item-preview .ssp-svg { width: 75px; height: 75px; }

.ssp-item-footer {
    padding: 9px 12px;
    display: flex; align-items: center; gap: 6px;
    border-top: 1px solid #f3f4f6;
}
.ssp-item-num {
    background: #f3f4f6; color: #6b7280;
    font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
    font-family: monospace;
}
.ssp-item-name {
    flex: 1; font-size: 11px; font-weight: 600; color: #374151;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ssp-check { color: #f43f5e; font-size: 18px; opacity: 0; transition: opacity .2s; }
.ssp-item.ssp-active .ssp-check { opacity: 1; }
.ssp-item.ssp-active .ssp-item-num {
    background: linear-gradient(135deg,#f43f5e,#a855f7);
    color: #fff;
}
