/* Frontend Editor Styles - Modern & Clean */

.selfbooth-frontend-editor,
.selfbooth-my-templates {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.tombol-action {
    padding: 10px 20px;
    background: #343434;
    color: #fff;
    border-radius: 10px;
    border: 1px solid #000;
}

.tombol-action:hover {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

/* Header */
.editor-header,
.templates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.editor-header h2,
.templates-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.user-info {
    color: #6b7280;
    font-size: 14px;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-create-category {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-create-category:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-create-category .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Category Modal */
.category-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    max-width: 500px;
    margin: 100px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 10000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.modal-body {
    padding: 24px;
}

.modal-body .form-field {
    margin: 0;
}

.modal-body .form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.modal-body .form-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
}

/* Categories Section */
.categories-section {
    margin-bottom: 32px;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.category-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 40px;
    height: 40px;
    background: #dbeafe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #1e40af;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-name {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-count {
    font-size: 13px;
    color: #6b7280;
}

.btn-delete-category {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #9ca3af;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-delete-category:hover {
    background: #fef2f2;
    color: #ef4444;
}

.btn-delete-category .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Category Filter */
.templates-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.templates-filters label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.category-filter-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
}

.category-filter-select:hover {
    border-color: #9ca3af;
}

.category-filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Editor Layout - Two Column */
.template-form {
    background: #fff;
}

.editor-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Left Sidebar - Settings */
.editor-sidebar {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

/* Sidebar Tabs */
.sidebar-tabs {
    display: flex;
    gap: 8px;
    background: #f9fafb;
    padding: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
    color: #374151;
    background: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    border-color: #db2777;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.tab-btn.active:hover {
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
    transform: translateY(-1px);
}

.tab-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Tab Content Wrapper */
.tab-content-wrapper {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.settings-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.section-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Form Fields */
.form-field {
    margin-bottom: 16px;
}

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

.form-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
    font-size: 13px;
}

.form-field input[type="text"],
.form-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-field input[type="text"]:focus,
.form-field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Frame Controls */
.frame-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* License List */
.license-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: #f3f4f6;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 13px;
    color: #374151;
}

/* Right Column - Canvas Area */
.editor-canvas-area {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.canvas-controls {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 8px;
}

.btn-zoom {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    /* Padding diperkecil agar proporsional dengan font 12px */
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #374151;
}

.btn-zoom:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.btn-zoom:active {
    background: #e5e7eb;
}

/* BAGIAN PENTING: Mengatur ukuran ikon Dashicons ke 12px */
.btn-zoom .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    /* Memastikan ikon benar-benar rata tengah */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mengatur teks 78% menjadi 12px */
.zoom-level {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    min-width: 40px;
    /* Diperkecil sedikit karena teks lebih kecil */
    text-align: center;
    user-select: none;
}

.canvas-container {
    flex: 1;
    padding: 24px;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: calc(100vh - 300px);
    min-height: 400px;
}

.canvas-wrapper {
    display: inline-block;
    transition: transform 0.2s ease;
    transform-origin: center center;
}

#sb-editor-canvas {
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    cursor: default;
    display: block;
}

@media (min-width: 1400px) {
    .editor-canvas-area {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
    }

    .canvas-container {
        max-height: calc(100vh - 200px);
    }
}

/* Slots Container */
.slots-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 380px);
    overflow-y: auto;
    padding-right: 4px;
}

.slots-container::-webkit-scrollbar {
    width: 6px;
}

.slots-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.slots-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.slots-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Slot Item */
.slot-item {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.slot-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.slot-item-selected {
    background: #eff6ff;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.slot-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slot-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.slot-item-delete {
    color: #ef4444;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.slot-item-delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Slot Inputs */
.slot-item-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slot-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.slot-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slot-input-group label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slot-input-group input[type="number"],
.slot-input-group select {
    width: 100%;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s;
}

.slot-input-group input[type="number"]:focus,
.slot-input-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Rotation Input */
.rotation-input-wrapper {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 8px;
    align-items: center;
}

.slot-rotation-input {
    text-align: center;
    font-weight: 600;
}

.slot-rotation-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.slot-rotation-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.slot-rotation-slider::-webkit-slider-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.slot-rotation-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Buttons */
.btn-primary {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-secondary .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.btn-text {
    background: none;
    color: #ef4444;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-text:hover {
    background: #fee2e2;
    color: #dc2626;
}

.btn-add-slot {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-add-slot:hover {
    background: #059669;
}

.btn-add-slot .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px;
}

.save-status {
    font-size: 14px;
    font-weight: 500;
    margin-left: auto;
}

.save-status .saving {
    color: #3b82f6;
}

.save-status .success {
    color: #10b981;
}

.save-status .error {
    color: #ef4444;
}

/* My Templates Grid - Modern & Minimal */

.no-templates {
    text-align: center;
    padding: 80px 20px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
}

.no-templates p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 24px;
    font-weight: 500;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.template-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 8px 16px -4px rgba(0, 0, 0, 0.03);
    border-color: #d1d5db;
}

/* Template Preview */
.template-preview {
    position: relative;
    width: 100%;
    background: #f3f4f6;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    /* Fixed aspect ratio for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-preview.landscape {
    height: 240px;
}

.template-preview.square {
    height: 280px;
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.template-card:hover .template-preview img {
    transform: scale(1.02);
}

.no-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
    gap: 12px;
}

.no-preview .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.no-preview-text {
    font-size: 14px;
    font-weight: 500;
}

/* Remove Action Overlay since buttons are now visible below */
.template-actions-overlay {
    display: none;
}

.btn-card-action {
    height: 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    padding: 0 12px;
}

.btn-card-action.btn-edit {
    flex: 2;
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.btn-card-action.duplicate-template,
.btn-card-action.delete-template {
    flex: 0 0 44px;
    padding: 0;
}

.btn-card-action .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Spinning animation for duplicate button loading */
.btn-duplicate .dashicons-update {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Template Info */
.template-info {
    padding: 16px;
    flex-grow: 1;
}

.template-card-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px 16px;
    border-top: 1px solid #f1f5f9;
}

.btn-card-action.btn-edit:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-card-action.btn-duplicate:hover {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #16a34a;
}

.btn-card-action.btn-delete:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.template-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Template Category Badge */
.template-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #dbeafe;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #1e40af;
}

.template-category .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.template-category .category-name {
    line-height: 1;
}

.template-booth {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: #f3f4f6;
    border-radius: 6px;
}

.template-booth .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.template-booth .booth-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.template-booth.no-booth {
    background: #fef3c7;
}

.template-booth.no-booth .booth-name {
    color: #92400e;
    font-style: italic;
}

.booth-count {
    background: #3b82f6;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.template-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.template-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.template-date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Pagination - Modern & Minimal */
.templates-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
    padding: 24px 0;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.page-btn:hover:not(.disabled) {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.page-number:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.page-number.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    cursor: default;
    pointer-events: none;
}

.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .editor-layout {
        grid-template-columns: 340px 1fr;
        gap: 16px;
    }

    .editor-sidebar {
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }

    .editor-sidebar {
        order: 2;
    }

    .editor-canvas-area {
        order: 1;
        min-height: 400px;
    }
}

@media (max-width: 768px) {

    .selfbooth-frontend-editor,
    .selfbooth-my-templates {
        padding: 12px;
    }

    .editor-header,
    .templates-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    .editor-header h2,
    .templates-header h2 {
        font-size: 20px;
    }

    .settings-section {
        padding: 16px;
    }

    .editor-canvas-area {
        padding: 16px;
    }

    .form-actions {
        flex-direction: column;
        padding: 16px;
    }

    .form-actions button {
        width: 100%;
    }

    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    .template-card {
        border-radius: 8px;
    }

    .template-info {
        padding: 12px;
    }

    .template-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    /* Pagination responsive */
    .templates-pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 32px;
        padding: 16px 0;
    }

    .page-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .page-number {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .btn-add-slot {
        width: 100%;
        justify-content: center;
    }

    .slot-input-row {
        grid-template-columns: 1fr;
    }
}

/* Custom WP Media Library Sidebar - Simplified */

/* Hide unnecessary fields in attachment details */
.media-modal .attachment-details .setting[data-setting="alt"],
.media-modal .attachment-details .setting[data-setting="title"],
.media-modal .attachment-details .setting[data-setting="caption"],
.media-modal .attachment-details .setting[data-setting="description"],
.media-modal .attachment-details .setting[data-setting="url"],
.media-modal .attachment-details .setting[data-setting="alt-text-description"],
.media-modal .attachment-details .compat-item,
.media-modal .attachment-details .attachment-info .filename,
.media-modal .attachment-details .attachment-info .file-size,
.media-modal .attachment-details .attachment-info .dimensions,
.media-modal .attachment-details .attachment-info .edit-attachment,
.media-modal .attachment-details .attachment-info .copy-to-clipboard-container {
    display: none !important;
}

/* Keep only upload date and delete button visible */
.media-modal .attachment-details .attachment-info .uploaded {
    display: block !important;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.media-modal .attachment-details .actions {
    display: block !important;
}

.media-modal .attachment-details .actions .delete-attachment {
    display: inline-block !important;
    color: #dc3232;
    text-decoration: none;
    font-size: 13px;
}

.media-modal .attachment-details .actions .delete-attachment:hover {
    color: #a00;
}

/* Simplify attachment details header */
.media-modal .attachment-details .attachment-info {
    padding: 16px;
}

/* Hide "Learn how to describe..." link and all description paragraphs */
.media-modal .attachment-details .setting .description,
.media-modal .attachment-details #alt-text-description,
.media-modal .attachment-details p.description {
    display: none !important;
}

/* Make sidebar cleaner */
.media-modal .attachment-details {
    padding: 0;
}

.media-modal .attachment-details .details {
    padding: 16px;
}