:root {
    --primary-color: #7436d8;
    --primary-hover: #6229c5;
    --bg-color: #F9FAFB;
    --text-primary: #1F2937;
    --card-border: #E5E7EB;
}

body {
    background-color: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.test-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--card-border);
    margin-bottom: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 0.5rem;
    margin: 1rem 0;
    background-color: #E5E7EB;
    border-radius: 1rem;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 1rem;
    transition: width 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-option {
    width: 100%;
    text-align: left;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--card-border);
    background-color: white;
    color: var(--text-primary);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.btn-option:hover {
    background-color: #F3F4F6;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(116, 54, 216, 0.2);
}

.btn-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.test-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 0.375rem;
}

.test-stat {
    text-align: center;
}

.test-stat .value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.test-stat .label {
    font-size: 0.875rem;
    color: #6B7280;
}

.type-card {
    background: linear-gradient(135deg, #7436d8, #9747FF);
    border-radius: 1rem;
    padding: 20px;
    position: relative;
    overflow: hidden;
    color: white;
}

.type-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.type-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.alignment-grid-preview {
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.mini-cell {
    padding: 1rem;
    text-align: center;
    border-radius: 0.375rem;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alignment-name {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.alignment-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.alignment-description {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
}

.alignment-description p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.trait-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    margin: 0.25rem;
}

.dimension-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    margin: 8px 0;
    position: relative;
    overflow: hidden;
}

.dimension-bar .fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.dimension-item {
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
}

.dimension-item:last-child {
    margin-bottom: 0;
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dimension-name {
    font-weight: 500;
    color: white;
    font-size: 1rem;
}

.dimension-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    line-height: 1.5;
}

.dimension-score {
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.floating-dots {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

#shareCard {
    display: none;
}

.text-primary {
    color: var(--primary-color) !important;
}

.question-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.alignment-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .app-container {
        padding: 1rem 0.5rem;
    }

    .test-card {
        padding: 1rem;
    }

    .test-info {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-option {
        padding: 0.75rem;
    }

    .mini-grid {
        gap: 0.25rem;
    }

    .mini-cell {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .alignment-name {
        font-size: 2rem;
    }
}

