/**
 * Laser Preset Database - Frontend Styles
 * Modern, responsive design for shortcode display
 * Version: 1.3.15
 */

/* ========== Container ========== */
.lpd-frontend-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ========== Compact Page Title (inside filter container) ========== */
.lpd-page-title {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-image-slice: 1;
}

.lpd-page-title h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    line-height: 1.2;
}

.lpd-page-title h1::before {
    content: '🎯';
    font-size: 28px;
    -webkit-text-fill-color: initial;
}

/* Responsive Title */
@media (max-width: 768px) {
    .lpd-page-title h1 {
        font-size: 24px;
    }
    
    .lpd-page-title h1::before {
        font-size: 22px;
    }
}

/* ========== Filters ========== */
.lpd-frontend-filters {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lpd-filter-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.lpd-filter-search {
    flex: 1 1 250px;
    min-width: 200px;
}

.lpd-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

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

.lpd-filter-selects {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    flex: 2 1 auto;
}

.lpd-filter-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 0;
    flex: 1 1 0;
}

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

.lpd-filter-select:hover {
    border-color: #cbd5e1;
}

/* ========== Presets Grid ========== */
.lpd-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

/* ========== Preset Card ========== */
.lpd-preset-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lpd-preset-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

/* ========== Preset Header ========== */
.lpd-preset-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.lpd-preset-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.lpd-preset-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lpd-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}

.lpd-meta-item svg {
    flex-shrink: 0;
}

.lpd-meta-laser {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.lpd-meta-mode {
    background: #dbeafe;
    color: #1e40af;
}

.lpd-meta-category {
    background: #fef3c7;
    color: #92400e;
}

/* ========== Steps ========== */
.lpd-preset-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lpd-step-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #3b82f6;
}

.lpd-step-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpd-step-params {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lpd-param {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #475569;
}

.lpd-param strong {
    color: #1e293b;
    font-weight: 600;
}

.lpd-preset-extra-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.lpd-param-block {
    display: block;
    width: 100%;
    white-space: pre-line;
}

/* ========== No Presets ========== */
.lpd-no-presets {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.lpd-no-presets p {
    margin: 0;
    font-size: 16px;
    color: #64748b;
}

/* ========== Loading ========== */
.lpd-loading {
    text-align: center;
    padding: 40px 20px;
}

.lpd-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f1f5f9;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: lpd-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes lpd-spin {
    to {
        transform: rotate(360deg);
    }
}

.lpd-loading p {
    margin: 0;
    font-size: 15px;
    color: #64748b;
}

/* ========================================
   TABLE VIEW STYLES (display="table")
   ======================================== */

.lpd-table-mode .lpd-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.lpd-frontend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lpd-frontend-table thead {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
}

.lpd-frontend-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpd-frontend-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.lpd-frontend-table tbody tr:hover {
    background: #f8fafc;
}

.lpd-frontend-table tbody tr:last-child {
    border-bottom: none;
}

.lpd-frontend-table td {
    padding: 16px 12px;
    vertical-align: middle;
}

.lpd-frontend-table .lpd-preset-name strong {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.lpd-actions-cell {
    white-space: nowrap;
}

/* ========== Badges ========== */
.lpd-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.lpd-badge-success {
    background: #dcfce7;
    color: #166534;
}

.lpd-badge-default {
    background: #f1f5f9;
    color: #64748b;
}

.lpd-badge-process {
    background: #dbeafe;
    color: #1e40af;
}

.lpd-badge-kind {
    background: #f3f4f6;
    color: #374151;
}

/* Laser Type Badges */
.lpd-laser-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.lpd-laser-ir {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.lpd-laser-diode {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.lpd-laser-co2 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.lpd-badge-kind-ir {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

.lpd-badge-kind-diode {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.lpd-badge-kind-co2 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

/* ========== View Button ========== */
.lpd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lpd-btn-view {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.lpd-btn-view:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ========================================
   MODAL STYLES
   ======================================== */

.lpd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: lpd-fadeIn 0.3s ease;
}

@keyframes lpd-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lpd-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: lpd-slideUp 0.3s ease;
}

@keyframes lpd-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lpd-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpd-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

.lpd-modal-body {
    padding: 0;
    overflow-y: auto;
    max-height: 90vh;
}

/* ========== Preset Detail (Modal Content) ========== */
.lpd-preset-detail {
    padding: 32px;
}

.lpd-detail-title {
    margin: 0 0 24px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    padding-right: 48px;
}

.lpd-detail-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.lpd-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.lpd-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lpd-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpd-detail-value {
    font-size: 15px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Steps in Modal */
.lpd-detail-steps {
    margin-top: 24px;
}

.lpd-steps-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.lpd-steps-count {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
}

.lpd-step-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.lpd-step-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.lpd-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.lpd-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.lpd-step-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.lpd-step-params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding: 20px;
}

.lpd-param-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.lpd-param-box:hover {
    background: #f1f5f9;
}

.lpd-param-box.lpd-param-primary {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
}

.lpd-param-icon {
    font-size: 20px;
    line-height: 1;
}

.lpd-param-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lpd-param-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lpd-param-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.lpd-param-value small {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

/* ========== Modal Loading ========== */
.lpd-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #64748b;
}

.lpd-modal-loading .lpd-spinner {
    margin-bottom: 16px;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .lpd-frontend-container {
        padding: 16px;
    }
    
    .lpd-filter-row {
        flex-direction: column;
    }
    
    .lpd-filter-search,
    .lpd-filter-select {
        width: 100%;
        min-width: 100%;
    }
    
    .lpd-filter-selects {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .lpd-presets-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .lpd-preset-card {
        padding: 20px;
    }
    
    .lpd-preset-title {
        font-size: 18px;
    }
    
    .lpd-step-params {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Table responsive */
    .lpd-frontend-table {
        font-size: 13px;
    }
    
    .lpd-frontend-table th,
    .lpd-frontend-table td {
        padding: 12px 8px;
    }
    
    .lpd-frontend-table thead th:nth-child(5),
    .lpd-frontend-table thead th:nth-child(6),
    .lpd-frontend-table tbody td:nth-child(5),
    .lpd-frontend-table tbody td:nth-child(6) {
        display: none;
    }
    
    /* Modal responsive */
    .lpd-modal-content {
        max-width: 100%;
        max-height: 95vh;
        margin: 10px;
        border-radius: 12px;
    }
    
    .lpd-preset-detail {
        padding: 20px;
    }
    
    .lpd-detail-title {
        font-size: 22px;
        padding-right: 40px;
    }
    
    .lpd-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .lpd-step-params-grid {
        grid-template-columns: 1fr 1fr;
        padding: 16px;
    }
    
    .lpd-param-box {
        padding: 12px;
    }
    
    .lpd-param-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .lpd-frontend-filters {
        padding: 16px;
    }
    
    .lpd-preset-card {
        padding: 16px;
    }
    
    .lpd-preset-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Table stack on mobile */
    .lpd-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .lpd-frontend-table {
        min-width: 600px;
    }
    
    /* Modal on mobile */
    .lpd-modal-overlay {
        padding: 10px;
    }
    
    .lpd-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .lpd-step-params-grid {
        grid-template-columns: 1fr;
    }
}



/* ========== Frontend Pagination v1.3.16 ========== */
.lpd-frontend-pagination {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lpd-frontend-pagination .lpd-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.lpd-frontend-pagination .lpd-pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.lpd-frontend-pagination .lpd-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Page Buttons */
.lpd-frontend-pagination .lpd-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lpd-frontend-pagination .lpd-pagination-btn:hover:not(.lpd-disabled) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.lpd-frontend-pagination .lpd-pagination-btn.lpd-disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.lpd-frontend-pagination .lpd-arrow {
    font-size: 18px;
    font-weight: bold;
}

/* Page Numbers */
.lpd-frontend-pagination .lpd-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lpd-frontend-pagination .lpd-page-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #333;
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lpd-frontend-pagination .lpd-page-number:hover:not(.lpd-current) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.15);
}

.lpd-frontend-pagination .lpd-page-number.lpd-current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: default;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.lpd-frontend-pagination .lpd-pagination-dots {
    color: #999;
    padding: 0 8px;
    font-weight: bold;
}

/* Loading Overlay for Pagination */
.lpd-frontend-container .lpd-loading {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.lpd-frontend-container .lpd-loading.lpd-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .lpd-frontend-pagination .lpd-pagination-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .lpd-frontend-pagination .lpd-pagination-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .lpd-frontend-pagination .lpd-pagination-numbers {
        order: -1;
        margin-bottom: 12px;
    }
    
    .lpd-frontend-pagination .lpd-pagination-btn {
        width: 100%;
        justify-content: center;
    }
    
    .lpd-frontend-pagination .lpd-page-number {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}


/* v1.4.1: Preset Image Display */
.lpd-preset-image {
    margin-top: 12px;
    padding: 8px;
    text-align: center;
}

.lpd-preset-result-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
}

.lpd-detail-image {
    margin: 16px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lpd-detail-image h3 {
    margin: 0 0 12px 0;
    font-size: 1em;
    color: #ccc;
}

.lpd-detail-image-wrapper {
    text-align: center;
}

.lpd-detail-image-wrapper .lpd-preset-result-image {
    max-height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .lpd-preset-result-image {
        max-height: 200px;
    }
    .lpd-detail-image-wrapper .lpd-preset-result-image {
        max-height: 250px;
    }
}


/* v1.4.1: Submit Preset Button */
.lpd-page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.lpd-submit-preset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    white-space: nowrap;
}

.lpd-submit-preset-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #9333ea);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.5);
    color: #fff !important;
    text-decoration: none !important;
}

.lpd-submit-icon {
    font-size: 16px;
}

@media (max-width: 768px) {
    .lpd-page-title {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lpd-submit-preset-btn {
        text-align: center;
        justify-content: center;
        padding: 12px 16px;
    }
}



/* ========================================
   v1.4.3: SUBMIT PRESET MODAL
   ======================================== */

/* Submit button as button (not link) */
button.lpd-submit-preset-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Modal Overlay */
.lpd-submit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lpd-submit-modal-overlay.lpd-modal-visible {
    opacity: 1;
}

/* Modal Content */
.lpd-submit-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
}
.lpd-submit-modal-overlay.lpd-modal-visible .lpd-submit-modal-content {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.lpd-submit-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8fafc, #fff);
    border-radius: 16px 16px 0 0;
}
.lpd-submit-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

/* v1.4.12: Close Button - Touch-friendly (min 48x48px) */
.lpd-submit-modal-close {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-appearance: none;
    z-index: 10;
    position: relative;
}
.lpd-submit-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.lpd-submit-modal-close:active {
    background: #cbd5e1;
    color: #0f172a;
    transform: scale(0.9);
}

/* Modal Body (scrollable) */
.lpd-submit-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

/* Override form container inside modal */
.lpd-submit-modal-body .lpd-submit-form-container {
    max-width: 100%;
    padding: 0 28px 28px;
}
.lpd-submit-modal-body .lpd-submit-message {
    margin-top: 20px;
}

/* Toast Notification */
.lpd-submit-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999999;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lpd-submit-toast-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
}
.lpd-submit-toast.lpd-toast-visible {
    transform: translateX(0);
}
.lpd-toast-icon {
    font-size: 20px;
}

/* ========== Mobile Submit Modal ========== */
@media (max-width: 768px) {
    .lpd-submit-modal-overlay {
        padding: 0;
        align-items: flex-start; /* v1.4.13: Start from top for full screen */
    }
    
    .lpd-submit-modal-content {
        max-width: 100%;
        max-height: 100vh; /* v1.4.13: Full viewport height */
        min-height: 100vh; /* v1.4.13: Ensure full screen */
        border-radius: 0; /* v1.4.13: No rounded corners on mobile full screen */
        transform: translateY(30px);
        box-shadow: none;
    }
    .lpd-submit-modal-overlay.lpd-modal-visible .lpd-submit-modal-content {
        transform: translateY(0);
    }
    
    .lpd-submit-modal-header {
        padding: 16px 20px;
        border-radius: 0;
        position: sticky; /* v1.4.13: Header stays visible while scrolling */
        top: 0;
        z-index: 10;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .lpd-submit-modal-header h2 {
        font-size: 18px;
        padding-right: 50px; /* v1.4.14: Room for smaller close button (40px + 10px) */
    }
    
    /* v1.4.14: Close button - FIXED position on mobile, kleiner (44px) met meer ruimte */
    .lpd-submit-modal-close {
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 1000001 !important; /* Above everything in modal */
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 24px !important;
        line-height: 1;
        background: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    .lpd-submit-modal-close:active {
        background: #e2e8f0;
        transform: scale(0.85);
    }
    
    .lpd-submit-modal-body {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
        flex: 1;
    }
    
    .lpd-submit-modal-body .lpd-submit-form-container {
        padding: 0 16px 16px;
    }
    
    /* v1.4.13: Form inputs minimum 16px to prevent iOS auto-zoom */
    .lpd-submit-modal-body input[type="text"],
    .lpd-submit-modal-body input[type="email"],
    .lpd-submit-modal-body input[type="number"],
    .lpd-submit-modal-body textarea,
    .lpd-submit-modal-body select {
        font-size: 16px !important;
        -webkit-appearance: none;
    }
    
    /* v1.4.14: iOS Safe Area - Submit button boven home indicator */
    .lpd-submit-btn-primary,
    .lpd-preset-form button[type="submit"] {
        margin-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    }
    
    .lpd-submit-actions {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }
    
    /* v1.4.14: Modal content - iOS safe area bottom padding */
    .lpd-submit-modal-content {
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 20px)) !important;
    }
    
    .lpd-submit-modal-body .lpd-submit-form-container {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 16px));
    }
    
    .lpd-submit-toast {
        top: auto;
        bottom: 24px;
        right: 16px;
        left: 16px;
        max-width: 100%;
    }
}



/* ============================================
   v1.4.8: 50/50 LAYOUT CONTAINER - FLEXBOX
   ============================================ */

.lpd-layout-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    animation: lpd-fadeInUp 0.6s ease;
    min-height: 400px;
}

/* ============================================
   v1.4.8: IMAGE COLUMN (LEFT 50%)
   ============================================ */

.lpd-image-column {
    flex: 1;
    display: flex;
    min-width: 0;
}

.lpd-image-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

.lpd-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    pointer-events: none;
    z-index: 1;
}

.lpd-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 0;
}

/* ============================================
   v1.4.8: INFO COLUMN (RIGHT 50%)
   ============================================ */

.lpd-info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* ============================================
   v1.4.8: INFO CARDS - EQUAL HEIGHT
   ============================================ */

.lpd-info-card {
    flex: 1;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #667eea;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 100px;
}

.lpd-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lpd-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.15);
}

.lpd-info-card:hover::before {
    opacity: 1;
}

/* Card specific border colors */
.lpd-card-type {
    border-left-color: #667eea;
}

.lpd-card-mode {
    border-left-color: #764ba2;
}

.lpd-card-category {
    border-left-color: #f093fb;
}

/* Card Icons */
.lpd-card-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.lpd-info-card:hover .lpd-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Card Content */
.lpd-card-content {
    flex: 1;
    min-width: 0;
}

.lpd-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #667eea;
    margin: 0 0 8px 0;
    opacity: 0.8;
}

.lpd-card-value {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Animation keyframes */
@keyframes lpd-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   v1.4.10: PLACEHOLDER AFBEELDING
   ============================================ */

.lpd-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.lpd-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        ) !important;
    pointer-events: none;
    z-index: 1;
}

.lpd-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 2;
    position: relative;
    padding: 40px;
    text-align: center;
}

.lpd-placeholder-icon {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.9);
    stroke-width: 1.5;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    animation: lpd-placeholderPulse 2s ease-in-out infinite;
}

.lpd-placeholder-text {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
}

/* Pulse animation */
@keyframes lpd-placeholderPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ============================================
   v1.4.10: RESPONSIVE - TABLET (768px)
   ============================================ */

@media (max-width: 768px) {
    .lpd-layout-container {
        flex-direction: column;
        gap: 24px;
        min-height: auto;
    }
    
    .lpd-image-column {
        width: 100%;
    }
    
    .lpd-image-container {
        height: 400px;
    }
    
    .lpd-info-column {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .lpd-info-card {
        min-height: 120px;
    }
    
    .lpd-card-category {
        grid-column: 1 / -1;
    }
    
    .lpd-placeholder-icon {
        width: 60px;
        height: 60px;
    }
    
    .lpd-placeholder-text {
        font-size: 14px;
    }
}

/* ============================================
   v1.4.10: RESPONSIVE - MOBILE (<480px)
   ============================================ */

@media (max-width: 480px) {
    .lpd-layout-container {
        gap: 20px;
    }
    
    .lpd-image-container {
        height: 300px;
        border-radius: 12px;
    }
    
    .lpd-info-column {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .lpd-info-card {
        padding: 20px;
        min-height: 100px;
    }
    
    .lpd-card-category {
        grid-column: auto;
    }
    
    .lpd-card-icon {
        font-size: 28px;
    }
    
    .lpd-card-label {
        font-size: 10px;
    }
    
    .lpd-card-value {
        font-size: 16px;
    }
    
    .lpd-placeholder-icon {
        width: 50px;
        height: 50px;
    }
    
    .lpd-placeholder-text {
        font-size: 13px;
    }
    
    .lpd-placeholder-content {
        padding: 24px;
        gap: 12px;
    }
}
