body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3748;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.shortener-box, .verification-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

.logo, .shield-icon {
    margin-bottom: 1.5rem;
    color: #6366f1;
}

.link-icon, .shield-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

h1 {
    color: #1a202c;
    margin: 0 0 2rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
}

input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #2d3748;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.shorten-btn {
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.shorten-btn:disabled,
.copy-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.shorten-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.shorten-btn:hover .arrow-icon {
    transform: translateX(4px);
}

.result {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.status-message {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    text-align: left;
}

.status-message.error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.status-message.success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.status-message.info {
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.check-icon {
    color: #10b981;
}

.shortened-url {
    display: flex;
    gap: 0.5rem;
}

.copy-btn {
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: #4f46e5;
}

.copy-btn.copied {
    background: #10b981;
}

.hidden {
    display: none;
}

/* Verification Page Styles */
.verification-box {
    text-align: center;
}

.verification-box h1 {
    margin-bottom: 1rem;
}

.verification-box p {
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.progress-container {
    width: 100%;
    padding: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #4f46e5);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Error Page Styles */
.error-container {
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.error-container h1 {
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-container p {
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.home-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #6366f1;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.home-button:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #6366f1;
}

.footer p {
    margin: 0;
}

@media (max-width: 640px) {
    .shortener-box, .verification-box {
        padding: 1.5rem;
    }

    .shortened-url {
        flex-direction: column;
    }

    .copy-btn {
        justify-content: center;
    }
}