/* Modern Watermark Tool Styles */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom Slider Styles */
.slider {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.slider::-webkit-slider-track {
    background: linear-gradient(to right, #dbeafe, #c7d2fe);
    height: 8px;
    border-radius: 4px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.slider::-moz-range-track {
    background: linear-gradient(to right, #dbeafe, #c7d2fe);
    height: 8px;
    border-radius: 4px;
    border: none;
}

.slider::-moz-range-thumb {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

/* Custom Radio Button Styles */
input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

input[type="radio"]:checked {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

/* Custom Input Styles */
input[type="text"], input[type="color"] {
    transition: all 0.2s ease;
}

input[type="text"]:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

/* Dropzone Hover Effects */
#dropzone:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

/* Button Hover Effects */
button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Feedback Animation */
#feedback {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
}

#feedback.show {
    transform: translateX(0);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid {
        gap: 1rem;
    }
    
    .space-y-6 > * + * {
        margin-top: 1rem;
    }
}

/* Legacy styles for compatibility */
.ant-input,
.ant-select,
.ant-slider {
    width: 100%;
}

.ant-input-number {
    width: 100%;
}

.ant-form-item {
    margin-bottom: 16px;
}

.form-container {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-container .form-item {
    margin-bottom: 16px;
}

.form-container .form-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.form-container .form-item input,
.form-container .form-item select,
.form-container .form-item .ant-slider {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.form-container .form-item .ant-slider {
    margin-top: 8px;
}

.form-container .form-item .flex {
    align-items: center;
}

.form-container .form-item .flex span {
    margin-left: 8px;
    color: #a0aec0;
}

.form-buttons {
    text-align: right;
}

.form-buttons button {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.color-picker {
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
}

.form-row .form-item {
    margin-bottom: 16px;
}

.footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    text-align: center;
    color: #6c757d;
}

.dropzone-info {
    margin-top: 8px;
    font-size: 14px;
    color: #6c757d;
}

.hidden {
    display: none;
}

.fixed {
    position: fixed;
}

.bottom-4 {
    bottom: 1rem;
}

.right-4 {
    right: 1rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

#feedback {
    transition: opacity 0.3s ease-in-out;
}

.link-a{
    text-decoration: underline;
    line-height: 45px;
    margin-left: 8px;
}