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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

header p {
    color: #718096;
    font-size: 1.1rem;
}

.url-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

input[type="url"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background: #357abd;
}

.result {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result.hidden {
    display: none;
}

.result h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.shortened-url {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.shortened-url input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8fafc;
}

.stats {
    display: flex;
    justify-content: space-between;
    color: #718096;
}

.stats a {
    color: #4a90e2;
    text-decoration: none;
}

.stats a:hover {
    text-decoration: underline;
}

/* Styles for the stats page */
.stats-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.stat-item {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #2d3748;
}

.stat-item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.stat-item a {
    color: #4a90e2;
    text-decoration: none;
    word-break: break-all;
}

.stat-item a:hover {
    text-decoration: underline;
}

.stat-item span {
    color: #718096;
}

footer {
    margin-top: 2rem;
    text-align: center;
}

footer .back-link {
    color: #4a90e2;
    text-decoration: none;
    font-size: 1rem;
}

footer .back-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .url-form {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
}

.logo {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #007bff; /* Blue color */
    text-align: center;
    margin-bottom: 1rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover .logo {
    opacity: 0.8;
    transition: opacity 0.2s;
}
