costco-grocery-list/frontend/src/styles/ImageUploadModal.css
2026-01-01 22:55:39 -08:00

204 lines
3.2 KiB
CSS

.image-upload-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
animation: fadeIn 0.2s ease-out;
}
.image-upload-modal {
background: white;
padding: 2em;
border-radius: 12px;
max-width: 500px;
width: 90%;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
animation: slideUp 0.3s ease-out;
}
.image-upload-modal h2 {
margin: 0 0 0.5em 0;
font-size: 1.5em;
color: #333;
}
.image-upload-subtitle {
margin: 0 0 1.5em 0;
color: #666;
font-size: 0.95em;
}
.image-upload-content {
margin: 1.5em 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 1em;
}
.image-upload-options {
display: flex;
flex-direction: column;
gap: 1em;
width: 100%;
margin: 1em 0;
}
.image-upload-option-btn {
padding: 1.2em;
border: 2px solid #ddd;
border-radius: 8px;
background: white;
font-size: 1.1em;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5em;
}
.image-upload-option-btn:hover {
border-color: #007bff;
background: #f8f9fa;
transform: translateY(-2px);
box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}
.image-upload-option-btn.camera {
color: #007bff;
}
.image-upload-option-btn.gallery {
color: #28a745;
}
.image-upload-button {
display: inline-block;
padding: 0.8em 1.5em;
background: #007bff;
color: white;
border-radius: 6px;
cursor: pointer;
font-size: 1em;
transition: background 0.2s;
}
.image-upload-button:hover {
background: #0056b3;
}
.modal-image-preview {
position: relative;
width: 200px;
height: 200px;
border: 2px solid #ddd;
border-radius: 8px;
overflow: hidden;
}
.modal-image-preview img {
width: 100%;
height: 100%;
object-fit: cover;
}
.modal-remove-image {
position: absolute;
top: 8px;
right: 8px;
background: rgba(255, 0, 0, 0.8);
color: white;
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
font-size: 1.5em;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
padding: 0;
}
.modal-remove-image:hover {
background: rgba(255, 0, 0, 1);
}
.image-upload-actions {
display: flex;
gap: 1em;
margin-top: 1.5em;
}
.image-upload-cancel,
.image-upload-skip,
.image-upload-confirm {
flex: 1;
padding: 0.8em;
border: none;
border-radius: 6px;
font-size: 1em;
cursor: pointer;
transition: all 0.2s;
}
.image-upload-cancel {
background: #dc3545;
color: white;
}
.image-upload-cancel:hover {
background: #c82333;
}
.image-upload-skip {
background: #f0f0f0;
color: #333;
}
.image-upload-skip:hover {
background: #e0e0e0;
}
.image-upload-confirm {
background: #28a745;
color: white;
}
.image-upload-confirm:hover:not(:disabled) {
background: #218838;
}
.image-upload-confirm:disabled {
background: #ccc;
cursor: not-allowed;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideUp {
from {
transform: translateY(30px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}