:root {
    --primary-color: #16a34a;
    /* Green from image */
    --primary-hover: #15803d;
    --bg-color: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --input-bg: #f8fafc;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 480px;
    /* Mobile-focused width */
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 1.5em;
    width: auto;
    margin-right: 0.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Input Group */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

input[type="url"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--input-bg);
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.2s;
}

input[type="url"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

button {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    /* Rounded pill shape like image */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: var(--primary-hover);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Result Area */
.result {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--input-bg);
    border-radius: 8px;
    display: none;
}

.result.visible {
    display: block;
}

.short-url {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    word-break: break-all;
}

.copy-btn {
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    width: auto;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background-color: var(--input-bg);
}

/* Redirect Page Specifics */
.loader-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    /* Lighter green for dots */
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

.dot:nth-child(3) {
    animation-delay: 0s;
    background-color: #047857;
    /* Darker green for last dot */
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.redirect-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.redirect-card p {
    font-size: 0.9rem;
}

.destination-url {
    display: none;
    /* Hide actual URL for cleaner look, or style subtly */
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}