@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #070707;
    color: #121222;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
    padding: 90px 20px 50px 20px;
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
    animation: fadeIn 1.5s ease-in-out;
}

.link-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.autohar-link {
    flex: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #333333;
    background: #1E1E1E;
    color: #E0E0E0;
    outline: none;
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar {
    background-color: #090909;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.navbar .nav-links {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.navbar .nav-links a {
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
}

.navbar .nav-links a:hover {
    background-color: #ddd;
    color: black;
}

.navbar .logo {
    width: 50px;
    height: 50px;
    background-image: url('https://media.discordapp.net/attachments/1274648579008368660/1334081981964615760/Png_1.png?ex=679b3c2a&is=6799eaaa&hm=90f55780ceab97e98203d82b01808b0d16ec6e7b9b9bea374a4183330753047d&=&format=webp&quality=lossless&width=336&height=336');
    background-size: cover;
    background-position: center;
}

.autohar-link:hover,
.autohar-link:focus {
    background: #292929;
    box-shadow: 0 0 6px rgba(255, 152, 0, 0.5);
}

.copy-button {
    padding: 10px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    background: #FF9800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.copy-button:hover {
    background: #FFC107;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.form select {
    padding: 15px 20px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 8px;
    outline: none;
    background: #121212;
    color: #e0e0e0;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: breathe 3s ease-in-out infinite;
    appearance: none;
}

.form select:hover {
    background: #1f1f1f;
    color: #ffffff;
}

.form select:focus {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.form select {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNMiAxLjYzMmwxLjQxNCAxLjQxMy04IDgtNi40MTQtNi40MTR6bTAtMS4xNDJsOC0xMS45NDRsNi40MTQgNi40MTRsLTggOGwtMS40MTQtMS40MTN6IiBmaWxsPSIjZDFkMWQxIi8+PC9zdmc+');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.create-btn {
    margin: 0px;
    width: 100%;
    max-width: 100%;
}

button {
    display: inline-block;
    margin: 10px;
    padding: 15px 30px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #ffffff;
    background-color: #000000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

button:hover {
    background-color: #424242;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.toggle-button {
    background: #FFFFFF;
    color: #000000;
}

.toggle-button:hover {
    color: #FFFFFF;
    background: #000000;
}

.container {
    display: block;
    text-align: center;
    padding: 60px;
    border-radius: 16px;
    border: 1px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    max-width: 700px;
    width: calc(50% - 15px);
    margin-bottom: 0;
    animation: slideInUp 1s ease forwards, breathe 3s ease-in-out infinite;
}

.logo {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #aaa4a4;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.description {
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.8;
    color: #bdbdbd;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.form input {
    padding: 15px 20px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 8px;
    outline: none;
    background: #121212;
    color: #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: breathe 3s ease-in-out infinite;
}

.form input::placeholder {
    color: #757575;
    font-weight: 400;
}

.form input:focus {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.form input:hover {
    color: #000000;
}

.form button {
    padding: 15px;
    font-size: 1rem;
    border: none;
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: breathe 3s ease-in-out infinite;
}

.form button:hover {
    background: linear-gradient(90deg, #616161, #424242);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.footer {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #9e9e9e;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

.footer a {
    color: #64b5f6;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.copy-button {
    animation: pulse 1.5s infinite;
}

.container {
    animation: float 5s ease-in-out infinite;
    margin-bottom: 0 !important;
}

.form select {
    animation: pulse-light 3s infinite;
}

.footer a:hover {
    color: #bbdefb;
    text-shadow: 0 0 8px rgba(100, 181, 246, 0.9);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-light {

    0%,
    100% {
        background-color: #121212;
    }

    50% {
        background-color: #1f1f1f;
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Loader styles */
.loader {
    width: 100%;
    height: 15px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    position: relative;
    margin: 20px 0;
    display: none;
    overflow: hidden;
}

.loader.active {
    display: block;
}

.loader::before {
    content: "";
    position: absolute;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,1), rgba(255,255,255,0.8));
    width: 0%;
    height: 100%;
    border-radius: 10px;
    animation: load 3.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.5);
}

@keyframes load {
    0% {
        width: 0%;
        left: 0;
    }
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 0%;
        left: 100%;
    }
}