/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    background-color: #ffffff;
    padding: 30px 35px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    text-align: center;
    border-top: 5px solid #d70727;
}

h1 {
    color: #d70727;
    font-size: 28px;
    margin-bottom: 25px;
}

form input[type="url"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

form input[type="url"]:focus {
    border-color: #d70727;
    outline: none;
}

form button {
    padding: 12px 25px;
    background-color: #d70727;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #b3051f;
}

.result {
    margin-top: 30px;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e6ffe6;
    border-radius: 8px;
}

.result p {
    font-size: 18px;
    font-weight: 500;
    color: #444;
}

.short-url-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

a#short-url {
    font-size: 16px;
    font-weight: bold;
    color: #65a765;
    text-decoration: none;
    background-color: #e6ffe6;
    padding: 10px 16px;
    border-radius: 6px;
    display: inline-block;
    word-break: break-all;
}

a#short-url:hover {
    text-decoration: underline;
}

#copy-btn {
    background-color: #27272b;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

#copy-btn:hover {
    background-color: #b3051f;
}

/* Responsive layout */
@media (max-width: 480px) {
    .short-url-box {
        flex-direction: column;
        align-items: stretch;
    }

    #copy-btn {
        width: 100%;
    }

    a#short-url {
        text-align: center;
        width: 100%;
    }
}
