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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #e0f2ff, #a3d8f4, #6bb9e0);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

input {
    width: 90%;
    padding: 15px;
    background-color: #ffffff;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
    border-radius: 8px;
    font-size: 18px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border: 2px solid #3b82f6;
}

input::placeholder {
    color: #1e3a8a;
}

button {
    width: 90%;
    padding: 15px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2563eb;
}

#clear-btn {
    background-color: #ff4d4d;
    color: white;
}

#clear-btn:hover {
    background-color: #ff1a1a;
}

#shortened-url {
    width: 90%;
    padding: 15px;
    background-color: #ffffff;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
    border-radius: 8px;
    font-size: 18px;
    margin-bottom: 20px;
    cursor: pointer;
}

#shortened-url[readonly] {
    background-color: #e0f2ff;
}

#message-container {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    padding: 10px;
    text-align: center;
}

.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border-radius: 5px;
}

.error-message {
    background-color: #f44336;
    color: white;
    padding: 10px;
    border-radius: 5px;
}
