/* FotoLivros IA - Public Styles */
/* Mobile-first responsive design */

/* Base styles for all devices */
* {
    box-sizing: border-box;
}

/* Service Choice Layout */
.fotolivros-service-choice-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.fotolivros-layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.fotolivros-left-column {
    flex: 1;
}

.fotolivros-right-column {
    flex: 1;
    background-color: #F2EFEB;
    padding: 32px;
}

/* Desktop layout - two columns side by side */
@media (min-width: 768px) {
    .fotolivros-layout-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 96px;
    }
    
    .fotolivros-left-column {
        flex: 0 0 30%;
    }
    
    .fotolivros-right-column {
        flex: 1;
    }
}

/* Photo Review Container */
.fotolivros-photo-review-container {
    /*max-width: 1200px;*/
    margin: 0;
    padding: 0px;
}


.fotolivros-photo-review-container .fotolivros-right-column {
    background-color: #fff;
    padding: 0;
}

/* CSS Variables for theming */
:root {
    --primary-color: #0073aa;
    --primary-hover: #005a87;
    --secondary-color: #f0f0f0;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --border-color: #ddd;
    --success-color: #28a745;
    --success-hover: #218838;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-strong: 0 6px 12px rgba(0,0,0,0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Category-specific colors */
.category-familia { --category-color: #e91e63; }
.category-viagens { --category-color: #2196f3; }
.category-aniversarios { --category-color: #ff9800; }
.category-eventos { --category-color: #9c27b0; }
.category-pets { --category-color: #4caf50; }
.category-outras { --category-color: #607d8b; }

.fotolivros-upload-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.fotolivros-drop-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.fotolivros-drop-area:hover,
.fotolivros-drop-area.drag-over {
    border-color: #0073aa;
    background: #f0f8ff;
}

.drop-area-content h3 {
    margin: 10px 0;
    color: #333;
}

.drop-area-content p {
    margin: 5px 0;
    color: #666;
}

.drop-area-content .dashicons {
    font-size: 48px;
    color: #0073aa;
    margin-bottom: 10px;
}

.file-info {
    font-size: 12px;
    color: #999;
}

.fotolivros-upload-controls {
    margin: 20px 0;
    text-align: center;
}

.fotolivros-progress-container {
    margin: 20px 0;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 5px;
    background: #fff;
}

.file-item.file-uploading {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.file-item.file-completed {
    background: #d4edda;
    border-color: #c3e6cb;
}

.file-item.file-error {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.file-name {
    flex: 1;
    font-weight: bold;
}

.file-size {
    margin: 0 10px;
    color: #666;
    font-size: 12px;
}

.file-status {
    margin-left: 10px;
    font-size: 12px;
    color: #666;
}

.progress-bar {
    width: 100px;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-left: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #0073aa;
    transition: width 0.3s ease;
}

.fotolivros-message {
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
}

.fotolivros-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fotolivros-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.fotolivros-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Gallery Styles */
.fotolivros-gallery-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.fotolivros-filter-container {
    margin-bottom: 30px;
    text-align: center;
}

.fotolivros-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.fotolivros-gallery {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.fotolivros-gallery[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.fotolivros-gallery[data-columns="3"] {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.fotolivros-gallery[data-columns="4"] {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.fotolivros-gallery[data-columns="5"] {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.fotolivros-photo-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: #fff;
}

.fotolivros-photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.fotolivros-photo-item.selected {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.3);
}

.photo-thumbnail {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
}

.photo-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-thumbnail:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-thumbnail:hover .photo-overlay {
    opacity: 1;
}

.photo-actions {
    display: flex;
    gap: 10px;
}

.photo-actions button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.photo-actions button:hover {
    background: #0073aa;
    color: #fff;
}

.photo-info {
    padding: 15px;
}

.photo-info h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.photo-info p {
    margin: 3px 0;
    font-size: 12px;
    color: #666;
}

.fotolivros-selected-actions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
}

.selected-count {
    font-weight: bold;
    color: #0073aa;
}

.selected-actions {
    display: flex;
    gap: 10px;
}

/* Modal Styles */
.fotolivros-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0,0,0,0.8);
}

#modal-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.modal-info {
    padding: 20px;
}

.modal-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.modal-info p {
    margin: 5px 0;
    color: #666;
}

/* Categories Styles */
.fotolivros-categories-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

.fotolivros-categories-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.fotolivros-categories-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.fotolivros-categories-grid[data-columns="3"] {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.fotolivros-categories-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.fotolivros-category-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.fotolivros-category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 48px;
    color: #0073aa;
    margin-bottom: 15px;
}

.fotolivros-category-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.category-count {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.category-btn {
    margin-top: 10px;
}

/* Enhanced mobile-first responsive design */

/* Mobile styles (default) */
.fotolivros-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.fotolivros-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.fotolivros-filter-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.filter-btn {
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
}

.fotolivros-selected-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    box-shadow: var(--shadow-strong);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.fotolivros-selected-actions.show {
    transform: translateY(0);
}

.selected-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.selected-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.selected-actions .button {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius);
}

/* Photo item mobile styles */
.photo-checkbox {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.photo-select {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.fotolivros-photo-item.selected .checkbox-label {
    display: flex;
    background: var(--primary-color);
}

/* Status badges */
.status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: bold;
}

.status-badge.completed {
    background: var(--success-color);
}

.status-badge.processing {
    background: var(--warning-color);
}

.status-badge.failed {
    background: var(--error-color);
}

.status-badge.pending {
    background: var(--text-lighter);
}

/* Progress bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-bar.error {
    background: var(--error-color);
}

/* Category tags */
.photo-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: var(--category-color, var(--secondary-color));
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.photo-confidence {
    font-size: 10px;
    color: var(--text-lighter);
}

/* Touch-friendly tap targets */
.photo-actions button {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

/* Filter toggle for mobile */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    width: 100%;
    justify-content: center;
    margin-bottom: 15px;
}

.filter-content {
    display: none;
}

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

.filter-section {
    margin-bottom: 20px;
}

.filter-section h4 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 14px;
}

/* Tablet styles */
@media (min-width: 768px) {
    .fotolivros-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .fotolivros-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .fotolivros-filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .filter-btn {
        flex: 0 0 auto;
        min-width: 120px;
    }
    
    .fotolivros-selected-actions {
        position: fixed;
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        background: white;
        color: var(--text-color);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 15px 20px;
        box-shadow: var(--shadow-medium);
        max-width: 400px;
    }
    
    .selected-info {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .selected-actions {
        flex-direction: row;
        width: auto;
    }
    
    .filter-toggle {
        display: none;
    }
    
    .filter-content {
        display: block;
    }
    
    .filter-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .fotolivros-gallery[data-columns="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fotolivros-gallery[data-columns="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fotolivros-gallery[data-columns="4"] {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .fotolivros-gallery[data-columns="5"] {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .fotolivros-categories-grid[data-columns="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fotolivros-categories-grid[data-columns="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fotolivros-categories-grid[data-columns="4"] {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large desktop styles */
@media (min-width: 1200px) {
    .fotolivros-gallery {
        gap: 25px;
    }
    
    .fotolivros-categories-grid {
        gap: 25px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .photo-thumbnail img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.filter-btn:focus,
.photo-actions button:focus,
.category-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.lazy-load {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Print styles */
@media print {
    .fotolivros-selected-actions,
    .photo-actions,
    .filter-toggle,
    .fotolivros-filter-buttons {
        display: none;
    }
    
    .fotolivros-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .photo-overlay {
        display: none;
    }
}

/* Photo Selection Grid */
.fotolivros-photo-grid {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.grid-header h3 {
    margin: 0;
    color: var(--text-color);
}

.grid-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selection-count {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.photo-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.photo-grid-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.photo-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.photo-grid-item.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-grid-item.selected .photo-selection-overlay {
    opacity: 1;
}

.photo-selection-check {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
}

.photo-grid-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
}

.grid-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Mobile Responsive for Photo Grid */
@media (max-width: 768px) {
    .photo-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .grid-controls {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .photo-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Album Configuration Modal */
#album-config-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-config-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.modal-header h2 {
    margin: 0;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

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

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.album-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.album-info p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--text-light);
}

.album-info strong {
    color: var(--text-color);
}

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

.modal-footer .button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.modal-footer .button-secondary {
    background: #f8f9fa;
    color: var(--text-color);
    border: 1px solid #ddd;
}

.modal-footer .button-secondary:hover {
    background: #e9ecef;
}

.modal-footer .button-primary {
    background: var(--primary-color);
    color: white;
}

.modal-footer .button-primary:hover {
    background: var(--primary-hover);
}

.modal-footer .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .album-config-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Product Selection Styles */
.product-selection-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #f9f9f9;
}

.product-option {
    margin-bottom: 15px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-option:last-child {
    margin-bottom: 0;
}

.product-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.product-label {
    display: block;
    cursor: pointer;
    background: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-label:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.product-option input[type="radio"]:checked + .product-label {
    border-color: var(--primary-color);
    background: #f0f8ff;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/*.product-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}*/

.product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.product-no-image {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    text-align: center;
    flex-shrink: 0;
}

.product-details {
    flex: 1;
    min-width: 0;
}

.product-details h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.product-price {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.product-description {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.product-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-attributes .attribute {
    display: inline-block;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #495057;
}

.no-products-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-products-message p {
    margin: 0 0 10px 0;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

/* Mobile responsiveness for product selection */
@media (max-width: 768px) {
    .product-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-image,
    .product-no-image {
        width: 100%;
        height: 120px;
        align-self: center;
    }
    
    .product-selection-container {
        max-height: 300px;
    }
    
    .product-attributes {
        gap: 4px;
    }
    
    .product-attributes .attribute {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Preview Modal Styles */
.preview-modal {
    z-index: 10001; /* Higher than config modal */
}

.preview-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: 900px;
}

.preview-modal-content {
    display: flex;
    flex-direction: column;
    height: 80vh;
}

.preview-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.preview-info {
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.preview-info h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 24px;
}

.preview-info .subtitle {
    margin: 0 0 15px 0;
    color: #666;
    font-style: italic;
}

.preview-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.preview-stats .stat {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    color: #495057;
}

.preview-pages-container h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.preview-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.preview-page {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-page .page-header {
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    padding: 5px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 12px;
    color: #495057;
}

.page-layout {
    display: grid;
    gap: 5px;
    min-height: 120px;
}

/* Different layout styles */
.page-layout-layout_1,
.page-layout-layout_2 {
    grid-template-columns: repeat(3, 1fr);
}

.page-layout-layout_4,
.page-layout-layout_9 {
    grid-template-columns: repeat(2, 1fr);
}

.page-layout-layout_8 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.page-layout-layout_3 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.page-layout-layout_7,
.page-layout-layout_10 {
    grid-template-columns: 1fr;
}

.preview-photo {
    position: relative;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.preview-photo img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
}

.preview-photo .photo-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 5px;
    font-size: 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Mobile responsive for preview */
@media (max-width: 768px) {
    .preview-modal .modal-content {
        width: 95vw;
        height: 95vh;
        margin: 10px;
    }
    
    .preview-pages-grid {
        grid-template-columns: 1fr;
        max-height: 400px;
    }
    
    .preview-stats {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .preview-stats .stat {
        width: 100%;
        text-align: center;
    }
    
    .preview-photo img {
        height: 80px;
    }
}

/* PDF Download and Print Buttons */
.fotolivros-success .button {
    display: inline-block;
    padding: 12px 24px;
    margin: 5px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.fotolivros-success .button-primary {
    background: var(--success-color);
    color: white;
}

.fotolivros-success .button-primary:hover {
    background: var(--success-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.fotolivros-success .button-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.fotolivros-success .button-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* Success message with download links */
.fotolivros-success {
    position: relative;
    padding: 20px;
    border-left: 4px solid var(--success-color);
    background: #f8fff9;
}

.fotolivros-success strong {
    color: var(--success-color);
}

/* Enhanced message styling */
.fotolivros-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    animation: fadeInUp 0.5s ease;
}

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

/* Mobile responsive buttons */
@media (max-width: 480px) {
    .fotolivros-success .button {
        display: block;
        width: 100%;
        margin: 8px 0;
        text-align: center;
    }
}

/* =============================================================================
   NEW WORKFLOW STYLES - Service Choice, Photo Review, Album Preview
   ============================================================================= */

/* Service Choice Container */
.fotolivros-service-choice-container {
   /* max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;*/
    margin:0;
    padding:0;
    width: 100%;
}

.fotolivros-product-info {
    text-align: left;
    margin-bottom: 30px;
}

.fotolivros-product-info h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.product-details {
    margin-bottom: 15px;
}

.product-size {
    display: block;
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.product-description {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Workflow Steps */
.fotolivros-workflow-steps {
    /*background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;*/
}

.fotolivros-workflow-steps h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.fotolivros-workflow-steps ol {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}

.fotolivros-workflow-steps li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Form Sections */
.fotolivros-form-section {
    margin-bottom: 25px;
}

.fotolivros-form-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.required {
    color: #e74c3c;
}

.fotolivros-input,
.fotolivros-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.fotolivros-input:focus,
.fotolivros-textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.fotolivros-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Service Choice Options */
.fotolivros-service-choice {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fotolivros-service-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.fotolivros-service-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fotolivros-service-option:hover {
    border-color: #007cba;
    background: #f8f9fa;
}

.fotolivros-service-option input[type="radio"] {
    margin: 2px 0 0 0;
    flex-shrink: 0;
}

.option-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

/* Upload Section */
.fotolivros-upload-section {
    margin-top: 30px;
}

.fotolivros-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.fotolivros-upload-area:hover,
.fotolivros-upload-area.drag-over {
    border-color: #007cba;
    background: #f0f8ff;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.upload-content p {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
}

.upload-info {
    font-size: 12px !important;
    color: #999 !important;
    margin-top: 15px !important;
}

/* Buttons */
.fotolivros-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    line-height: 1.4;
}

.fotolivros-btn-primary {
    background: #000;
    color: #fff;
}

.fotolivros-btn-primary:hover {
    background: #333;
}

.fotolivros-btn-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.fotolivros-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #333;
}

.fotolivros-btn-danger {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 16px;
}

.fotolivros-btn-danger:hover {
    background: #c0392b;
}

.fotolivros-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Photo Review Styles */
.fotolivros-photo-review-container {
    /*max-width: 1200px;*/
    margin: 0;
    padding: 0px;
}

.fotolivros-review-header {
    margin-bottom: 30px;
}

.fotolivros-review-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.product-info {
    margin-bottom: 15px;
}

.product-name {
    display: block;
    font-weight: 600;
    color: #333;
}

.review-description,
.review-instructions,
.photos-per-page-info,
.manual-mode-info {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0 0 10px 0;
}

.manual-mode-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 6px;
    color: #856404;
}

/* Review Actions */
.fotolivros-review-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #F2EFEB;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.review-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selected-count {
    font-weight: 600;
    color: #333;
}

.review-action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fotolivros-btn-danger {
    background-color: transparent!important;
    color: red!important;
}

/* Photo Grid - New Style for Review Mode */
.fotolivros-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.fotolivros-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.fotolivros-photo-item:hover {
    border-color: #007cba;
}

.photo-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
}

.photo-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.photo-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pricing Info */
.fotolivros-pricing-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.pricing-breakdown h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.pricing-total {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 16px;
}

/* Album Preview Styles */
.fotolivros-album-preview-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.fotolivros-preview-header {
    text-align: center;
    margin-bottom: 30px;
}

.fotolivros-preview-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.fotolivros-pageflip-container {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fotolivros-flipbook {
    width: 90%;
    height: 450px;
    position: relative;
    perspective: 1000px;
}

/* Book Viewer Layout */
.fotolivros-album-preview-container {
 /*   max-width: 1200px;*/
    width:100%;
    margin: 0;
    padding: 0;
}

.fotolivros-preview-header {
    text-align: center;
    margin-bottom: 40px;
}

.fotolivros-preview-header h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.preview-instructions {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Book Viewer Container */
.fotolivros-book-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    gap: 30px;
}

/* Navigation Buttons */
.nav-btn {
    background: #007cba;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    background: #005a87;
    transform: scale(1.1);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.nav-arrow {
    font-weight: bold;
}

/* Book Container */
.fotolivros-book-container {
    flex: 1;
    max-width: 800px;
    position: relative;
}

.fotolivros-book-spread {
    display: flex;
    background: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow: hidden;
    min-height: 500px;
    position: relative;
}

/* Book Pages */
.book-page {
    flex: 1;
    background: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.book-page-left {
    border-right: 2px solid #ddd;
}

.book-page-right {
    border-left: 2px solid #ddd;
}

/* Book Spine */
.book-spine {
    width: 4px;
    background: linear-gradient(to bottom, #ccc, #999, #ccc);
    position: relative;
    z-index: 1;
}

.book-spine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.3);
}

/* Page Content */
.page-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    justify-content: center;
}

.page-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 140px;
}

.page-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Page Indicator */
.page-indicator {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Preview Actions */
.fotolivros-preview-actions {
    margin-top: 50px;
    text-align: center;
}

.action-buttons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.fotolivros-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fotolivros-btn-primary {
    background: #28a745;
    color: white;
}

.fotolivros-btn-primary:hover {
    background: #218838;
}

.fotolivros-btn-secondary {
    background: #6c757d;
    color: white;
}

.fotolivros-btn-secondary:hover {
    background: #5a6268;
}

.fotolivros-btn-danger {
    background: #dc3545;
    color: white;
}

.fotolivros-btn-danger:hover {
    background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fotolivros-book-viewer {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .fotolivros-book-spread {
        flex-direction: column;
        min-height: 600px;
    }
    
    .book-spine {
        height: 4px;
        width: 100%;
        background: linear-gradient(to right, #ccc, #999, #ccc);
    }
    
    .book-spine::before {
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 100%;
        height: 1px;
    }
    
    .book-page-left {
        border-right: none;
        border-bottom: 2px solid #ddd;
    }
    
    .book-page-right {
        border-left: none;
        border-top: 2px solid #ddd;
    }
    
    .action-buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .fotolivros-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Legacy flipbook styles - keeping for compatibility */
.fotolivros-flipbook .page {
    width: 100%;
    height: 100%;
  /*  position: absolute;
    top: 0;
    left: 0; */
    background: #fff;
    border-radius: 4px;
    display: none;
}

.fotolivros-flipbook .page.active {
    display: block;
}

/*.page-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    box-sizing: border-box;
}*/

.page-image {
    flex: 1;
    min-width: 200px;
    height: 180px;
    border-radius: 4px;
    overflow: hidden;
}

.page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flipbook-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.flipbook-btn {
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.flipbook-btn:hover {
    background: rgba(0,0,0,0.9);
}

.flipbook-btn:disabled {
    background: rgba(0,0,0,0.3);
    cursor: not-allowed;
}

.fotolivros-preview-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Help Icon */
.fotolivros-help-icon {
    background: #007cba;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    margin-left: 5px;
}

/* Progress and Results - Enhanced */
.fotolivros-service-progress,
.fotolivros-service-results {
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fotolivros-service-choice-container,
    .fotolivros-photo-review-container,
    .fotolivros-album-preview-container {
        padding: 15px;
    }
    
    .fotolivros-review-actions {
        flex-direction: column;
        text-align: center;
    }
    
    .fotolivros-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .fotolivros-preview-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fotolivros-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .review-action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .review-action-buttons .fotolivros-btn {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .fotolivros-product-info h2 {
        font-size: 22px;
    }
    
    .fotolivros-review-header h2 {
        font-size: 22px;
    }
    
    .fotolivros-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .fotolivros-upload-area {
        padding: 25px 15px;
    }
    
    .upload-content h4 {
        font-size: 16px;
    }
}