/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to right, #1c1f26, #0e1015);
    color: #fff;
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    text-align: center;
    padding: 30px 20px;
    background: #0e1015;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #3ab4f2;
}

.header p {
    color: #aaa;
}

.container {
    flex-grow: 1;
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #20232a;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

input[type="url"], input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #3ab4f2;
    background: #16191e;
    color: #fff;
    box-sizing: border-box;
}

input[type="url"]::placeholder,
input[type="text"]::placeholder {
    color: #bbb;
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background: #3ab4f2;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    background: #1e90ff;
    transform: scale(1.02);
}

/* Result Section */
.result {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

.short-url-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.short-url-box input {
    flex: 1;
    padding: 10px;
    border: none;
    background: #16191e;
    color: #fff;
    border-radius: 5px;
    box-sizing: border-box;
}

.copy-btn {
    padding: 10px 15px;
    border: none;
    background: #3ab4f2;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 100px;
    text-align: center;
}

.copy-btn:hover {
    background: #1e90ff;
}

/* Aligning reCAPTCHA */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: #0e1015;
    font-size: 0.9rem;
    color: #aaa;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
