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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #380D75 0%, #2E0B5C 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 500px;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
    margin-bottom: 15px;
}

/* GitLab Branding */
.branding {
    margin-top: 20px;
    text-align: center;
}

.branding-text {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 12px;
    font-weight: 500;
    opacity: 0.9;
}

.duo-logo-form {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.duo-logo-form:hover {
    opacity: 1;
}

.form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.form-card.hidden {
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.branding.hidden {
    display: none;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f7fafc;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

.result-container {
    display: none;
    text-align: center;
}

.result-container.visible {
    display: block;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-wrapper {
    background: white;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

#agentCard {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn, .reset-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn {
    background: linear-gradient(135deg, #FC6D26 0%, #FCA326 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(252, 109, 38, 0.4);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 109, 38, 0.6);
}

.reset-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.reset-btn:hover {
    background: #667eea;
    color: white;
}

/* Canvas for card generation */
#cardCanvas {
    display: none;
}

/* GitLab Branding */
.branding {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.branding-text {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 12px;
    font-weight: 500;
}

.gitlab-logomark {
    display: block;
    margin: 0 auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.gitlab-logomark:hover {
    opacity: 1;
}

/* Share Section */
.share-section {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.share-text {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.share-btn svg {
    flex-shrink: 0;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.share-btn:active {
    transform: translateY(0);
}

.share-x {
    background: #000000;
}

.share-x:hover {
    background: #1a1a1a;
}

.share-bluesky {
    background: #0085ff;
}

.share-bluesky:hover {
    background: #0070dd;
}

.share-linkedin {
    background: #0077b5;
}

.share-linkedin:hover {
    background: #006399;
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .duo-logo-form {
        max-width: 200px;
    }
    
    .form-card {
        padding: 10px 10px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .download-btn, .reset-btn {
        width: 100%;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}
