body { font-family: 'Inter', sans-serif; background-color: #f3f4f6; }
.cropper-view-box, .cropper-face { border-radius: 0.375rem; }
.modal { 
    display: flex; /* Ensure it's a flex container */
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; /* Take full viewport height */
    overflow-y: auto; /* Allows the *entire modal overlay* to scroll if the modal-content is too tall to fit even with max-height */
    background-color: rgba(0,0,0,0.6); 
    justify-content: center; /* Centers horizontally */
    align-items: flex-start; /* NEW: Align content to the top instead of center */
    padding-top: 20px; /* NEW: Add vertical padding from the top */
    padding-bottom: 20px; /* NEW: Add vertical padding from the bottom */
    box-sizing: border-box; /* Ensures padding is included in the height calculation */
}
.modal-content { 
    background-color: #fefefe; 
    margin: auto; /* Keeps horizontal centering, vertical centering is handled by the modal padding and align-items */
    padding: 1.5rem; 
    border-radius: 0.5rem; 
    width: 95%; 
    max-width: 1000px; 
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); 
    position: relative; 
    /* Tailwind classes: flex flex-col max-h-[95vh] overflow-y-auto */
}
#modal-cropper-image-container { 
    position: relative; 
    /* height: 60vh; <-- THIS WAS REMOVED IN PREVIOUS STEPS AND SHOULD NOT BE HERE */
    display: flex; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden; 
    background-color: #e9e9e9; 
    border-radius: 0.375rem; 
}
#modal-cropper-image { display: block; max-width: 100%; max-height: 100%; transition: filter 0.1s; }
.draggable-text-overlay { /* Changed from ID to class for multiple layers */
    position: absolute;
    cursor: move;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    user-select: none;
    z-index: 10;
    white-space: nowrap;
    border: 1px dashed transparent; /* For selection indication */
    transform-origin: center center; /* Ensure rotation is around center */
    display: flex; /* To align text and lock icon */
    align-items: center;
    gap: 5px; /* Space between text and icon */
}
.draggable-text-overlay.active-layer {
    border: 1px dashed #4F46E5; /* Highlight active layer */
    box-shadow: 0 0 5px rgba(79, 70, 229, 0.5);
}
.draggable-text-overlay .lock-icon {
    cursor: pointer;
    font-size: 0.8em; /* Smaller lock icon */
    margin-left: 5px; /* Space from text */
}
.draggable-text-overlay .lock-icon.locked {
    color: #EF4444; /* Red for locked */
}
.draggable-text-overlay .lock-icon.unlocked {
    color: #22C55E; /* Green for unlocked */
}
/* Custom styles for filter sliders and their values */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4F46E5;
    cursor: pointer;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4F46E5;
    margin-top: -6px; /* Adjust thumb position */
}
input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4F46E5;
    cursor: pointer;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4F46E5;
}
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
}
input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
}

/* Drag and Drop styles */
.drag-over {
    border-color: #4F46E5 !important;
    background-color: #EEF2FF !important;
}
.share-buttons-container {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.share-button {
    width: 32px; /* Fixed width for circular button */
    height: 32px; /* Fixed height for circular button */
    border-radius: 50%; /* Make it circular */
    background-color: transparent; /* No background color */
    border: 1px solid #ccc; /* Subtle border */
    color: #4B5563; /* Default icon color (gray-700) */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem; /* Icon size */
    transition: background-color 0.2s, transform 0.1s, border-color 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.share-button:hover {
    transform: translateY(-1px);
    background-color: #E5E7EB; /* Light gray on hover */
    border-color: #9CA3AF; /* Darker border on hover */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
/* Remove specific colors for platforms */
.share-button.facebook, .share-button.twitter, .share-button.linkedin, .share-button.pinterest {
    background-color: transparent;
    color: #4B5563; /* Keep default gray */
}
.share-button.facebook:hover, .share-button.twitter:hover, .share-button.linkedin:hover, .share-button.pinterest:hover {
    background-color: #E5E7EB; /* Keep default gray hover */
}