/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Full-Screen Container */
#photo-capture-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    background: #fff;
    color: #fff;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* Camera Section */
#camera-container {
    position: relative;
    width: 100%;
    height: 50%;
    background: #fff;
}

#camera {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


#take-photo {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: #ff5722;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#take-photo i {
    font-size: 24px;
}

#take-photo:hover {
    background: #e64a19;
}

/* Photo Previews */
#photo-previews {
    display: flex;
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
    background: #fff;
    max-height: 20%;
    box-sizing: border-box;
}

.photo-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview img {
    width: 60px;
    height: 60px;
    border: 2px solid #fff;
    border-radius: 5px;
    object-fit: cover;
}

.photo-preview .remove-photo {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.photo-preview .remove-photo:hover {
    background: darkred;
}

/* Form Section */
#photo-product-form {
    padding: 15px;
    background: #fff;
    color: rgba(0, 0, 0, 0.9);
    width: 100%;
    box-sizing: border-box;
}

#photo-product-form .form-group {
    margin-bottom: 10px;
}

#photo-product-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

#photo-product-form input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

#photo-product-form button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    background: #28a745;
    color: #fff;
    cursor: pointer;
}

#photo-product-form button:hover {
    background: #218838;
}





