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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #F7F9FC 0%, #E8F0FE 100%);
    color: #222222;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.logo {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    height: 120px;
}

.logo-text {
    font-size: 48px;
    font-weight: 700;
    color: #1A73E8;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #666666;
    margin-bottom: 40px;
}

.card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.input-group {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #222222;
    margin-bottom: 12px;
    text-align: left;
}

.url-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    background: #F7F9FC;
}

.url-input:focus {
    border-color: #1A73E8;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.url-input::placeholder {
    color: #999999;
}

.generate-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
    background: #25D366;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.generate-btn:hover {
    background: #20BD5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.generate-btn:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.features {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666666;
    font-size: 14px;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
}

.footer {
    margin-top: 32px;
    color: #999999;
    font-size: 14px;
}

/* Result section */
.result {
    display: none;
    margin-top: 32px;
}

.result.active {
    display: block;
}

.result-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.result-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #F7F9FC;
}

.result-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-title {
    flex: 1;
}

.result-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 8px;
    line-height: 1.3;
}

.result-subtitle {
    font-size: 14px;
    color: #666666;
    margin-bottom: 16px;
}

.result-content {
    background: #F7F9FC;
    border-radius: 12px;
    padding: 24px;
    font-size: 16px;
    line-height: 1.8;
    color: #222222;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.result-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.copy-btn, .new-btn {
    flex: 1;
    min-width: 150px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn {
    background: #1A73E8;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.copy-btn:hover {
    background: #1557B0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
}

.new-btn {
    background: #F7F9FC;
    color: #222222;
    border: 2px solid #E0E0E0;
}

.new-btn:hover {
    background: #FFFFFF;
    border-color: #1A73E8;
    color: #1A73E8;
}

/* Loading state */
.loading {
    display: none;
    margin-top: 20px;
}

.loading.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid #F7F9FC;
    border-top: 4px solid #1A73E8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .logo-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .logo-text {
        font-size: 36px;
    }

    .subtitle {
        font-size: 16px;
    }

    .card {
        padding: 32px 24px;
    }

    .result-card {
        padding: 24px 20px;
    }

    .result-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .result-image {
        width: 100px;
        height: 100px;
    }

    .result-title h2 {
        font-size: 20px;
    }

    .result-content {
        font-size: 14px;
        padding: 20px;
    }

    .url-input {
        font-size: 14px;
        padding: 14px 16px;
    }

    .generate-btn {
        font-size: 14px;
        padding: 14px 24px;
    }

    .features {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .logo-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .logo-text {
        font-size: 32px;
    }

    .card {
        padding: 24px 20px;
    }

    .result-actions {
        flex-direction: column;
    }

    .copy-btn, .new-btn {
        width: 100%;
    }
}

/* Login Styles */
.login-card {
    max-width: 400px;
    margin: 0 auto;
}

.error-message {
    background: #FFE6E6;
    color: #D32F2F;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
    border: 1px solid #FFCDD2;
}

.logout-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #FFFFFF;
    color: #666666;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logout-btn:hover {
    background: #F5F5F5;
    border-color: #BDBDBD;
}

.user-greeting {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #FFFFFF;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #666666;
}

.user-greeting strong {
    color: #1A73E8;
}
