/* Styling for toggle switches */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: transform 0.3s ease;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #F9004D;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Inline image layout */
.image-grid-container {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.image-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.image-grid-container img {
    max-width: 120px;
    max-height: 120px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
}

.image-grid-container input[type="file"] {
    text-align: center;
    font-size: 14px;
    cursor: pointer;
}

/* General container styles for light background */
.switch-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr 50px;
    align-items: center;
    gap: 15px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.switch-wrapper label {
    color: #333;
    font-size: 16px;
    font-weight: bold;
    text-align: right;
    margin-right: 10px;
}

/* Button styling */
button {
    background-color: #F9004D;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

button:hover {
    background-color: #cc003a;
}

button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Email form styling */
#email-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    border: 1px solid #ddd;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#email-form input,
#email-form button {
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
}

/* Responsive layout */
@media screen and (max-width: 768px) {
    .switch-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .image-grid-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .image-grid-container img {
        max-width: 100px;
        max-height: 100px;
    }
}

/* Accordion styling */
.accordion-button {
    background-color: #F9004D;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.accordion-button::after {
    content: '▼';
    position: absolute;
    right: 15px;
    font-size: 14px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.accordion-button.active::after {
    transform: rotate(180deg);
}

.accordion-button:hover,
.accordion-button.active {
    background-color: #cc003a;
}

.accordion-content {
    display: none;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #ddd;
}

/* Image preview container */
.image-preview-container {
    width: 100%;
    max-width: 250px;
    height: 250px;
    overflow: hidden;
    margin: 10px auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

/* Crop button */
.crop-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.crop-btn:hover {
    background-color: #45a049;
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual Notification */
.notification {
    padding: 15px 20px;
    color: #fff;
    background-color: #323232;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    animation: slideIn 0.5s ease-out, fadeOut 0.5s ease-in 4s forwards;
}

/* Success and Error Notifications */
.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #F44336;
}

/* Slide In Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Fade Out Animation */
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}