/**
 * PhotoLab Uploader - New Design
 * Clean, modern, mobile-first
 */

/* Container */
.photolab-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Headings */
.photolab-container h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* Section Spacing */
.photolab-options-section,
.photolab-upload-section,
.photolab-images-section,
.photolab-summary-section {
    margin-bottom: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ================== OPTIONS SECTION ================== */
.photolab-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.option-group {
    display: flex;
    flex-direction: column;
}

.option-group label {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #555 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

#photolab-uploader-container .photolab-select,
#photolab-uploader-container .photolab-input,
.photolab-container .photolab-select,
.photolab-container .photolab-input,
.photolab-modal .photolab-select,
.photolab-modal .photolab-input,
select.photolab-select,
input.photolab-input {
    padding: 12px 15px !important;
    font-size: 1rem !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #333 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

#photolab-uploader-container select.photolab-select,
.photolab-container select.photolab-select,
.photolab-modal select.photolab-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}

#photolab-uploader-container .photolab-select:hover,
#photolab-uploader-container .photolab-input:hover,
.photolab-container .photolab-select:hover,
.photolab-container .photolab-input:hover,
select.photolab-select:hover,
input.photolab-input:hover {
    border-color: #ccc !important;
}

#photolab-uploader-container .photolab-select:focus,
#photolab-uploader-container .photolab-input:focus,
.photolab-container .photolab-select:focus,
.photolab-container .photolab-input:focus,
select.photolab-select:focus,
input.photolab-input:focus {
    outline: none !important;
    border-color: #4a90d9 !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1) !important;
}

/* Price Cards */
.photolab-price-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.price-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.price-card.highlight {
    background: #fff3cd;
    border-color: #ffc107;
}

.price-card.discount {
    background: #d4edda;
    border-color: #28a745;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.price-card.highlight .price-value {
    color: #856404;
}

.price-card.discount .price-value {
    color: #155724;
}

.price-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.photolab-tip {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px 15px;
    border-radius: 0 8px 8px 0;
    margin: 0;
    font-size: 0.9rem;
    color: #1565c0;
}

/* ================== UPLOAD SECTION ================== */
.photolab-dropzone {
    border: 3px dashed #d0d0d0;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}

.photolab-dropzone:hover,
.photolab-dropzone.dragover {
    border-color: #4a90d9;
    background: linear-gradient(135deg, #e8f4fd 0%, #d4ebfc 100%);
}

.dropzone-icon {
    margin-bottom: 15px;
    color: #888;
}

.photolab-dropzone:hover .dropzone-icon,
.photolab-dropzone.dragover .dropzone-icon {
    color: #4a90d9;
}

.dropzone-text {
    font-size: 1.2rem;
    color: #555;
    margin: 0 0 10px 0;
}

.dropzone-info {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

/* Progress Bar */
.photolab-progress {
    margin-top: 20px;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90d9, #63b3ed);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

/* Progress bar a summary szekcióban - fehér szöveg a jobb olvashatóságért */
.photolab-summary .photolab-progress {
    margin-top: 15px;
}

.photolab-summary .progress-bar {
    background: rgba(255,255,255,0.3);
    height: 10px;
}

.photolab-summary .progress-fill {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

.photolab-summary .progress-text {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ================== IMAGES SECTION ================== */
.photolab-images-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

/* Bulk Actions - STRONG OVERRIDE */
.bulk-actions {
    display: flex !important;
    gap: 10px !important;
}

#photolab-uploader-container .bulk-actions button,
.photolab-container .bulk-actions button,
.bulk-actions .photolab-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* Image Grid - NEW */
.photolab-images-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Image Card */
.image-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.2s;
}

.image-card:hover {
    border-color: #4a90d9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-card.selected {
    border-color: #4a90d9;
    background: #f8fbfe;
}

.image-card.custom-settings {
    border-color: #ffc107;
}

/* Checkbox - STRONG OVERRIDE */
.image-checkbox {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 10 !important;
}

#photolab-uploader-container .image-checkbox input,
.photolab-container .image-checkbox input,
.image-card .image-checkbox input,
input[type="checkbox"].photolab-checkbox {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #ccc !important;
    border-radius: 4px !important;
    background: #fff !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
}

/* Custom Badge */
.custom-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #333;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 10;
}

/* Image Preview */
.image-preview {
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 100%;
    display: block;
}

.fit-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.fit-badge.perfect {
    background: #d4edda;
    color: #155724;
}

.fit-badge.crop {
    background: #fff3cd;
    color: #856404;
}

.fit-badge.border {
    background: #e2e3e5;
    color: #383d41;
}

/* Status badge outside image */
.image-status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 10px;
    text-align: center;
    border-left: 4px solid;
}

.image-status-badge.perfect {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.image-status-badge.crop {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.image-status-badge.border {
    background: #e2e3e5;
    color: #383d41;
    border-left-color: #6c757d;
}

.image-status-badge.custom-crop {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
    font-weight: 700;
}

.image-status-badge.quality-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #fd7e14;
}

.image-status-badge.quality-poor {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
    font-weight: 700;
}

.image-card.has-custom-crop {
    border: 3px solid #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.reset-crop-btn {
    background: #ffc107 !important;
    color: #212529 !important;
}

.reset-crop-btn:hover {
    background: #e0a800 !important;
}

/* Image Info */
.image-info {
    padding: 12px;
}

.image-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-settings {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.setting-tag {
    background: #e9ecef;
    color: #495057;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Quantity Controls - STRONG OVERRIDE */
.image-quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin-bottom: 8px !important;
}

#photolab-uploader-container .qty-btn,
.photolab-container .qty-btn,
.image-card .qty-btn,
button.qty-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    border: none !important;
    background: #e9ecef !important;
    color: #495057 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    transition: all 0.2s !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    text-transform: none !important;
}

#photolab-uploader-container .qty-btn:hover,
.photolab-container .qty-btn:hover,
.image-card .qty-btn:hover,
button.qty-btn:hover {
    background: #4a90d9 !important;
    color: #fff !important;
}

#photolab-uploader-container .qty-input,
.photolab-container .qty-input,
.image-card .qty-input,
input.qty-input {
    width: 50px !important;
    height: 28px !important;
    text-align: center !important;
    border: 2px solid #e9ecef !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 0 5px !important;
    margin: 0 !important;
    background: #fff !important;
    color: #333 !important;
}

#photolab-uploader-container .qty-input:focus,
.photolab-container .qty-input:focus,
input.qty-input:focus {
    outline: none !important;
    border-color: #4a90d9 !important;
}

/* Image Price */
.image-price {
    text-align: center !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #28a745 !important;
}

/* Image Actions - STRONG OVERRIDE */
.image-actions {
    display: flex !important;
    border-top: 1px solid #e9ecef !important;
}

#photolab-uploader-container .action-btn,
.photolab-container .action-btn,
.image-card .action-btn,
button.action-btn {
    flex: 1 !important;
    padding: 10px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    transition: all 0.2s !important;
    margin: 0 !important;
    border-radius: 0 !important;
    min-height: auto !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

#photolab-uploader-container .action-btn:hover,
.photolab-container .action-btn:hover,
.image-card .action-btn:hover,
button.action-btn:hover {
    background: #f0f0f0 !important;
}

#photolab-uploader-container .action-btn.delete-btn:hover,
.photolab-container .action-btn.delete-btn:hover,
.image-card .action-btn.delete-btn:hover,
button.action-btn.delete-btn:hover {
    background: #fee !important;
}

/* ================== SUMMARY SECTION ================== */
.photolab-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
}

.photolab-summary h3 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

/* Combo breakdown styles */
.summary-combos {
    margin-bottom: 15px;
}

.combo-row {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.combo-row.discounted {
    background: rgba(76, 175, 80, 0.25);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.combo-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.combo-info strong {
    font-size: 1rem;
}

.combo-discount {
    background: #4caf50;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.combo-details {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.combo-subtotal {
    font-weight: 600;
    min-width: 90px;
    text-align: right;
}

.combo-empty {
    text-align: center;
    opacity: 0.7;
    padding: 10px;
}

.summary-details {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.summary-row.total-row {
    border-bottom: none;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid rgba(255,255,255,0.3);
    font-size: 1.1rem;
}

.summary-row.final-total {
    font-size: 1.3rem;
}

/* ================== BUTTONS - STRONG OVERRIDE ================== */
/* Using !important and specific selectors to override theme styles */

#photolab-uploader-container .photolab-btn,
.photolab-container .photolab-btn,
.photolab-modal .photolab-btn,
button.photolab-btn,
a.photolab-btn,
input.photolab-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
}

#photolab-uploader-container .photolab-btn-primary,
.photolab-container .photolab-btn-primary,
.photolab-modal .photolab-btn-primary,
button.photolab-btn-primary,
a.photolab-btn-primary {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%) !important;
    color: #fff !important;
}

#photolab-uploader-container .photolab-btn-primary:hover,
.photolab-container .photolab-btn-primary:hover,
.photolab-modal .photolab-btn-primary:hover,
button.photolab-btn-primary:hover,
a.photolab-btn-primary:hover {
    background: linear-gradient(135deg, #357abd 0%, #2868a3 100%) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}

#photolab-uploader-container .photolab-btn-primary:disabled,
.photolab-container .photolab-btn-primary:disabled,
button.photolab-btn-primary:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    color: #666 !important;
}

#photolab-uploader-container .photolab-btn-secondary,
.photolab-container .photolab-btn-secondary,
.photolab-modal .photolab-btn-secondary,
button.photolab-btn-secondary {
    background: #e9ecef !important;
    color: #495057 !important;
}

#photolab-uploader-container .photolab-btn-secondary:hover,
.photolab-container .photolab-btn-secondary:hover,
.photolab-modal .photolab-btn-secondary:hover,
button.photolab-btn-secondary:hover {
    background: #dee2e6 !important;
    color: #333 !important;
}

#photolab-uploader-container .photolab-btn-warning,
.photolab-container .photolab-btn-warning,
.photolab-modal .photolab-btn-warning,
button.photolab-btn-warning {
    background: #ffc107 !important;
    color: #333 !important;
}

#photolab-uploader-container .photolab-btn-warning:hover,
.photolab-container .photolab-btn-warning:hover,
.photolab-modal .photolab-btn-warning:hover,
button.photolab-btn-warning:hover {
    background: #e0a800 !important;
    color: #000 !important;
}

#photolab-uploader-container .photolab-btn-danger,
.photolab-container .photolab-btn-danger,
.photolab-modal .photolab-btn-danger,
button.photolab-btn-danger {
    background: #dc3545 !important;
    color: #fff !important;
}

#photolab-uploader-container .photolab-btn-danger:hover,
.photolab-container .photolab-btn-danger:hover,
.photolab-modal .photolab-btn-danger:hover,
button.photolab-btn-danger:hover {
    background: #c82333 !important;
    color: #fff !important;
}

#photolab-uploader-container .photolab-btn-small,
.photolab-container .photolab-btn-small,
button.photolab-btn-small {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
}

#photolab-uploader-container .photolab-btn-large,
.photolab-container .photolab-btn-large,
button.photolab-btn-large {
    padding: 16px 32px !important;
    font-size: 1.1rem !important;
    width: 100% !important;
}

/* ================== MODALS ================== */
.photolab-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.photolab-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.photolab-modal-small {
    max-width: 500px;
}

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

.modal-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 1.2rem !important;
    color: #333 !important;
    background: transparent !important;
}

/* Modal Close Button - STRONG OVERRIDE */
#photolab-uploader-container .modal-close,
.photolab-modal .modal-close,
.photolab-modal-content .modal-close,
button.modal-close {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    color: #888 !important;
    padding: 5px !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

#photolab-uploader-container .modal-close:hover,
.photolab-modal .modal-close:hover,
.photolab-modal-content .modal-close:hover,
button.modal-close:hover {
    color: #333 !important;
    background: none !important;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

/* Crop Modal */
.crop-container {
    max-height: 60vh;
    overflow: hidden;
}

.crop-container img {
    max-width: 100%;
    display: block;
}

.crop-info {
    margin-top: 15px;
    text-align: center;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.crop-info p {
    margin: 0;
}

.crop-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#crop-rotate,
#crop-reset {
    font-size: 14px;
    padding: 8px 16px;
}

.crop-quality-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 15px;
    color: #856404;
    font-size: 13px;
    max-width: 400px;
    text-align: left;
}

.crop-quality-warning.severe {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.crop-quality-warning .warning-icon {
    margin-right: 5px;
}

/* Edit Modal */
.warning-text {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #856404;
}

.edit-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .photolab-container {
        padding: 15px;
    }
    
    .photolab-options-section,
    .photolab-upload-section,
    .photolab-images-section,
    .photolab-summary-section {
        padding: 20px;
    }
    
    .photolab-options-grid {
        grid-template-columns: 1fr;
    }
    
    .photolab-price-cards {
        grid-template-columns: 1fr;
    }
    
    .price-card {
        padding: 15px;
    }
    
    .price-value {
        font-size: 1.4rem;
    }
    
    .photolab-images-grid-new {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .photolab-dropzone {
        padding: 30px 15px;
    }
    
    .dropzone-text {
        font-size: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .photolab-btn {
        width: 100%;
    }
    
    /* Bulk actions mobilra */
    .photolab-images-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    .bulk-actions {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }
    
    #photolab-uploader-container .bulk-actions button,
    .photolab-container .bulk-actions button,
    .bulk-actions .photolab-btn {
        flex: 1 1 auto !important;
        min-width: calc(50% - 5px) !important;
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .photolab-images-grid-new {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .image-info {
        padding: 10px;
    }
    
    .image-name {
        font-size: 0.75rem;
    }
    
    .setting-tag {
        font-size: 0.65rem;
        padding: 2px 5px;
    }
    
    .image-price {
        font-size: 0.95rem;
    }
    
    /* Bulk actions még kisebb képernyőn */
    #photolab-uploader-container .bulk-actions button,
    .photolab-container .bulk-actions button,
    .bulk-actions .photolab-btn {
        min-width: 100% !important;
        font-size: 0.75rem !important;
        padding: 8px 10px !important;
    }
}

/* Error state */
.photolab-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* ================== FILL MODE HELP ================== */
.fill-mode-help {
    cursor: pointer;
    font-size: 1rem;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.2s;
}

.fill-mode-help:hover {
    transform: scale(1.2);
}

/* Fill Mode Modal Content */
.fill-mode-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.fill-mode-modal-content h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.fill-mode-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 700px) {
    .fill-mode-comparison {
        grid-template-columns: 1fr;
    }
}

.fill-mode-option {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    background: #fff;
}

.fill-option {
    border-color: #ff9800;
}

.fit-option {
    border-color: #2196f3;
}

.option-header {
    padding: 12px 15px;
    text-align: center;
    font-size: 1rem;
}

.fill-header {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.fit-header {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.option-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #f5f5f5;
}

.demo-original, .demo-result {
    text-align: center;
}

.demo-original span, .demo-result span {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
}

.demo-image {
    width: 70px;
    height: 45px;
    background: linear-gradient(45deg, #4caf50, #8bc34a);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.demo-arrow {
    font-size: 1.5rem;
    color: #667eea;
}

.demo-frame {
    width: 55px;
    height: 80px;
    border: 2px solid #333;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fill-result {
    background: linear-gradient(45deg, #4caf50, #8bc34a);
}

.fit-result {
    background: white;
    flex-direction: column;
}

.demo-image-result {
    font-size: 1rem;
}

.fill-img {
    color: white;
}

.fit-img {
    background: linear-gradient(45deg, #4caf50, #8bc34a);
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.crop-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: repeating-linear-gradient(
        180deg,
        #ff5722,
        #ff5722 3px,
        transparent 3px,
        transparent 6px
    );
}

.crop-indicator.left { left: -6px; }
.crop-indicator.right { right: -6px; }

.white-bar {
    width: 100%;
    height: 18px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #999;
}

.option-desc {
    padding: 12px 15px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    border-top: 1px solid #eee;
}

.option-pros-cons {
    list-style: none;
    padding: 0 15px 10px;
    margin: 0;
}

.option-pros-cons li {
    padding: 4px 0;
    font-size: 0.85rem;
}

.option-pros-cons .pro { color: #2e7d32; }
.option-pros-cons .con { color: #c62828; }

.option-recommend {
    padding: 10px 15px;
    background: #f5f5f5;
    font-size: 0.8rem;
    color: #5d4037;
    border-top: 1px solid #e0e0e0;
}

/* Summary Section */
.fill-mode-summary {
    background: #fff8e1;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffe082;
}

.fill-mode-summary h3 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #f57f17;
    border: none;
    padding: 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

@media (max-width: 500px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

.summary-item {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.summary-icon {
    font-size: 1.3rem;
}

.fill-color { color: #ff9800; }
.fit-color { color: #2196f3; }

.summary-tip {
    margin: 0;
    font-size: 0.85rem;
    color: #5d4037;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #ffe082;
}

/* ================== CROP FUNCTION GUIDE ================== */
.crop-function-guide {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #a5d6a7;
}

.crop-function-guide h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: #2e7d32;
    border: none;
    padding: 0;
}

.crop-intro {
    font-size: 0.9rem;
    color: #33691e;
    margin-bottom: 20px;
    line-height: 1.5;
}

.crop-steps {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .crop-steps {
        flex-direction: column;
    }
}

.crop-step {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    font-size: 0.9rem;
    color: #2e7d32;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.8rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

.crop-example {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.crop-example-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.example-before, .example-after {
    text-align: center;
}

.example-before span, .example-after span {
    display: block;
    font-size: 0.75rem;
    margin-top: 5px;
    color: #666;
}

.example-img {
    width: 80px;
    height: 50px;
    background: linear-gradient(135deg, #81d4fa, #4fc3f7);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 2px solid #29b6f6;
}

.example-img.cropped {
    width: 50px;
    height: 70px;
}

.face-icon {
    font-size: 1.2rem;
}

.face-icon.secondary {
    opacity: 0.9;
}

.face-icon.cut {
    opacity: 0.3;
    position: relative;
}

.face-icon.cut::after {
    content: "✂️";
    position: absolute;
    font-size: 0.6rem;
}

.face-icon.small {
    font-size: 0.9rem;
}

.example-arrow {
    font-size: 1.2rem;
    color: #667eea;
}

.example-after.bad span {
    color: #c62828;
}

.example-after.good span {
    color: #2e7d32;
}

.crop-tip {
    margin: 0;
    font-size: 0.85rem;
    color: #33691e;
    background: #f1f8e9;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 3px solid #4caf50;
}

/* ================== HELP PANEL ================== */
.photolab-help-section {
    margin-top: 20px;
    text-align: center;
}

.photolab-help-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 25px !important;
    border-radius: 25px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.photolab-help-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.photolab-help-btn.active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

.photolab-help-panel {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Help Tabs */
.help-tabs {
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    gap: 0;
}

.help-tab {
    flex: 1;
    padding: 15px 20px !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    border-radius: 0 !important;
}

.help-tab:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

.help-tab.active {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    font-weight: 600 !important;
}

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

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

/* Guide Styles */
.guide-section {
    margin-bottom: 25px;
}

.guide-section h4 {
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guide-step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.step-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Fill Mode Help */
.fill-modes-help {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.fill-mode-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.fill-mode-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.fill-mode-box p {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.fill-mode-when {
    background: #e8f5e9;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #2e7d32;
}

/* Discount Example */
.discount-example {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.discount-row {
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.discount-row.good {
    background: #c8e6c9;
    color: #2e7d32;
}

.discount-row.bad {
    background: #ffcdd2;
    color: #c62828;
}

.small-note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Legend Grid */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
}

.help-icon {
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 600;
    background: #e0e0e0;
}

.help-badge-green {
    background: #c8e6c9 !important;
    color: #2e7d32 !important;
}

.help-badge-orange {
    background: #ffe0b2 !important;
    color: #e65100 !important;
}

.help-badge-blue {
    background: #bbdefb !important;
    color: #1565c0 !important;
}

.help-badge-red {
    background: #ffcdd2 !important;
    color: #c62828 !important;
}

.help-border-yellow {
    border: 3px solid #ffc107 !important;
    padding: 3px 10px !important;
    background: #fff !important;
}

.help-text {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

/* FAQ Styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    font-weight: 600;
    color: #333;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    cursor: default;
}

.faq-answer {
    padding: 15px 20px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .section-header-with-help {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .help-tabs {
        flex-direction: column;
    }
    
    .help-tab {
        text-align: left !important;
    }
    
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    .fill-modes-help {
        grid-template-columns: 1fr;
    }
    
    .guide-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
}
