@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #00F5FF #23232D;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #23232D;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(#00F5FF, #FF4DFE);
    border-radius: 8px;
}

/* Body */
body {
    font: 14px 'Inter', sans-serif;
    color: #F0F0F5;
    background: url(images/cosmos.webp) no-repeat center center fixed, #0F0F1F;
    background-size: cover;
    min-height: 98vh;
}

/* Links */
a {
    color: #F0F0F5;
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: #00F5FF;
}

/* Input Container */
.input-container {
    position: relative;
    display: inline-block;
}
.input-container input {
    padding-right: 21px; /* Space for the link */
}
.input-container .copy-link {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #00F5FF, #FF4DFE);
    color: #FFF;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s;
}
.input-container .copy-link:hover {
    transform: translateY(-50%) translateY(-2px);
}

/* Main Container, Footer, Alerts, Fieldsets */
#wrap, #footer, .alert-error, .fieldset, .fieldsets {
    margin: 8px auto;
    width: 1000px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(35,35,45,0.3), rgba(20,20,30,0.3));
    border-radius: 12px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    animation: fadeIn 0.4s ease forwards;
}
#wrap:hover, #footer:hover, .alert-error:hover, .fieldset:hover, .fieldsets:hover {
    transform: translateY(-2px);
}
#footer, .alert-error { animation-delay: 0.2s; }
.alert-error, .fieldset, .fieldsets { padding: 12px; width: 900px; }

/* Headings */
h1 {
    font-size: 2em;
    font-weight: 600;
    background: linear-gradient(90deg, #00F5FF, #FF4DFE);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
#header h2 {
    font-size: 1em;
    color: #C0C8D0;
}

/* Limite */
#limite {
    font-size: 0.9em;
    float: right;
    color: #A0B0C0;
}

/* Menu */
#menu {
    align-items: center;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(50,50,60,0.3), rgba(30,30,40,0.3));
    backdrop-filter: blur(10px);
    padding: 15px 16px;
    margin: 12px 0;
}
#menu ul {
    display: flex;
    list-style: none;
}
#menu ul li {
    margin-right: 16px;
    opacity: 0;
    animation: slideIn 0.3s ease forwards;
}
#menu ul li:nth-child(1) { animation-delay: 0.1s; }
#menu ul li:nth-child(2) { animation-delay: 0.2s; }
#menu ul li:nth-child(3) { animation-delay: 0.3s; }
#menu ul li:nth-child(4) { animation-delay: 0.4s; }
#menu ul li a {
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}
#menu ul li a:hover {
    background: rgba(0,245,255,0.3);
}

/* Content */
#content {
    padding: 12px 0;
}

/* Inputs */
input, textarea, .resize_elements, .preview_elements {
    background: rgba(40,40,50,0.4);
    color: #F0F0F5;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px;
    margin: 4px 0;
    transition: border-color 0.3s;
}
input:focus, textarea:focus {
    border-color: #00F5FF;
}

/* Buttons */
button, input[type="submit"] {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(90deg, #00F5FF, #FF4DFE);
    color: #FFF;
    font-weight: 600;
    transition: all 0.3s;
}
button:hover, input[type="submit"]:hover {
    transform: translateY(-2px);
}

/* Checkboxes */
input[type="checkbox"] {
    accent-color: #00F5FF;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Fallback */
@supports not (backdrop-filter: blur(10px)) {
    #wrap, #menu, #footer, .alert-error, .fieldset, .fieldsets, input, textarea {
        background: rgba(35,35,45,0.5);
    }
}