/* Reprint Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

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

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

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.reprint-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.reprint-photo-item {
    position: relative;
}

.reprint-photo-item input[type="checkbox"] {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1;
}

.reprint-photo-item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    transition: all 0.3s;
}

.reprint-photo-item input:checked + label {
    border-color: var(--primary);
    background: #f0f8f0;
}

.reprint-photo-item label img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.reprint-photo-item label span {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-reprint {
    background: #ff9800;
    color: white;
    margin-top: 1rem;
}

.btn-reprint:hover:not(:disabled) {
    background: #f57c00;
}
