
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --light: #f8fafc;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light);
    color: #334155;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark {
    background-color: var(--dark);
    color: #e2e8f0;
}

.glass-effect {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-effect {
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-input {
    display: none;
}

.dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(248, 250, 252, 0.5);
}

.dark .dropzone {
    background-color: rgba(15, 23, 42, 0.5);
    border-color: #334155;
}

.dropzone.active {
    border-color: var(--primary);
    background-color: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

.image-preview {
    height: 120px;
    width: 120px;
    object-fit: cover;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.dark .image-preview {
    border-color: #334155;
}

.image-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    width: 20px;
    height: 20px;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: var(--light);
}

.dark #particles-js {
    background: var(--dark);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.btn-animate {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.modal-enter {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-focus:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
    border-color: var(--primary);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.image-container {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(0, 0, 0, 0.1);
}

.image-container::-webkit-scrollbar {
    height: 6px;
}

.image-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.image-container::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.dark .progress-container {
    background-color: #334155;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark);
    color: var(--light);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.aspect-btn {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #e2e8f0;
    color: #334155;
}

.dark .aspect-btn {
    background-color: #334155;
    color: #e2e8f0;
}

.aspect-btn.active {
    background-color: var(--primary);
    color: white;
}

.aspect-btn:hover {
    background-color: #cbd5e1;
}

.dark .aspect-btn:hover {
    background-color: #475569;
}

.fab {
    position: fixed;
    bottom: 1.5rem;
    right: 5rem;
    z-index: 40;
    transition: all 0.3s ease;
    background-color: var(--primary);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.fab:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.nav-container {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dark .nav-container {
    background-color: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    color: #475569;
    font-weight: 500;
    border-radius: 0.5rem;
}

.dark .nav-link {
    color: #94a3b8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.dark .nav-link:hover {
    color: var(--primary);
}

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    background-color: #ffffff;
    display: none;
}

#mobile-menu.show {
    display: block;
    max-height: 500px;
    opacity: 1;
}

.dark #mobile-menu {
    background-color: #1e293b;
}

#mobile-menu a {
    transition: all 0.3s ease;
    color: #475569;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.dark #mobile-menu a {
    color: #94a3b8;
}

#mobile-menu a:hover {
    color: var(--primary);
    background-color: rgba(14, 165, 233, 0.1);
}

#mobile-menu-button i {
    transition: transform 0.3s ease;
}

#mobile-menu-button.rotate i {
    transform: rotate(90deg);
}

.footer-container {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    color: #475569;
}

.dark .footer-container {
    background-color: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.footer-link {
    transition: color 0.3s ease;
    color: #64748b;
}

.dark .footer-link {
    color: #94a3b8;
}

.footer-link:hover {
    color: var(--primary);
}

.watermark-position-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: #e2e8f0;
    color: #334155;
    font-size: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.dark .watermark-position-btn {
    background-color: #334155;
    color: #e2e8f0;
}

.watermark-position-btn.active {
    background-color: var(--primary);
    color: white;
}

.watermark-position-btn:hover {
    background-color: #cbd5e1;
}

.dark .watermark-position-btn:hover {
    background-color: #475569;
}

#watermarkTextOverlay {
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

#watermarkTextContent {
    padding: 10px;
    word-break: break-word;
    max-width: 90%;
    text-align: center;
}

@media (max-width: 768px) {
    .content-container {
        margin: 0;
    }
    
    .header-section {
        padding: 1rem;
    }
    
    .fab {
        right: 4rem;
        bottom: 1rem;
    }
    
    .dark-mode-toggle {
        bottom: 1rem;
        right: 1rem;
    }
}

.custom-radio {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    transition: all 0.3s ease;
}

.dark .custom-radio {
    border-color: #475569;
}

input[type="radio"]:checked + label .custom-radio {
    border-color: var(--primary);
    background-color: var(--primary);
    box-shadow: inset 0 0 0 4px white;
}

.dark input[type="radio"]:checked + label .custom-radio {
    box-shadow: inset 0 0 0 4px #0f172a;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

input[type="range"] {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
}

.dark input[type="range"] {
    background: #334155;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 100%;
    height: 40px;
    border-radius: 0.5rem;
    cursor: pointer;
    background: transparent;
}

input[type="color"]::-webkit-color-swatch {
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
}

.dark input[type="color"]::-webkit-color-swatch {
    border-color: #475569;
}

.section-header {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 2px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230ea5e9' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.watermark-modal {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,250,252,0.9));
    border: 1px solid rgba(255,255,255,0.2);
}
#watermarkModal{
    overflow: auto !important;
}
.dark .watermark-modal {
    background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(30,41,59,0.9));
    border: 1px solid rgba(255,255,255,0.1);
}
.help-modal {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.95));
    border: 1px solid rgba(255,255,255,0.2);
}

.dark .help-modal {
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,41,59,0.95));
    border: 1px solid rgba(255,255,255,0.1);
}

.success-modal {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    border: 1px solid rgba(255,255,255,0.2);
}

.dark .success-modal {
    background: linear-gradient(135deg, rgba(15,23,42,0.98), rgba(30,41,59,0.98));
    border: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
    .container-principal {
        width: 90%;
        max-width: 1200px;
        margin: 2rem auto;
    }
}

@media (max-width: 767px) {
    .container-principal {
        width: 100%;
        margin: 0;
        padding: 0 1rem;
    }
}
