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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298); 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    color: #fff;
    animation: fadeIn 1s ease-in-out;
}

.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 100px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 1s ease forwards;
    transform: translateY(20px);
    opacity: 0;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: none;
    margin-bottom: 18px;
    font-size: 1rem;
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: background-color 0.3s ease, transform 0.2s;
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input[type="text"]:focus {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

button {
    width: 100%;
    padding: 14px;
    background: #4b79a1;
    color: #ffffff; 
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease, transform 0.2s;
}

button:hover {
    background: #283c86; 
    transform: translateY(-2px);
}

.output-wrapper {
    position: relative;
    width: 100%;
    margin-top: 15px;
}

#outputURL {
    width: 100%;
    padding: 14px 50px 14px 16px; 
    background-color: rgba(255, 255, 255, 0.2); 
}

#copyBtn {
    position: absolute;
    top: 40%;
    right: 0;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #ffffff; 
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    width: auto;
    padding: 0 8px; 
    display: none;
}

#copyBtn.visible {
    display: block; 
}

#copyBtn:hover {
    color: #aee1f9; 
}

#copyMessage {
    display: none;
    margin-top: 10px;
    color: #aee1f9; 
    font-weight: bold;
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.footer {
    text-align: center;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 20px;
}