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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    margin-bottom: 2rem;
}

.back-link {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.8;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.code-entry-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

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

.code-entry-section h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.code-entry-section p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.code-form {
    margin-bottom: 2rem;
}

.code-input-group {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#codeInput {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#codeInput::placeholder {
    color: #999;
    letter-spacing: normal;
}

.submit-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.submit-btn:hover {
    transform: translateX(2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.code-info {
    color: #666;
    font-size: 0.9rem;
}

.code-info i {
    color: #667eea;
    margin-right: 0.5rem;
}

/* Choice Section Styles */
.choice-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

.choice-section h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.choice-section p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.choice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.choice-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.choice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.choice-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.choice-card.guest .choice-icon {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.choice-card.register .choice-icon {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.choice-card h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.choice-card p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.choice-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    text-decoration: none;
}

.guest-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.guest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.register-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Guest Email Section */
.guest-email-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

.guest-email-section h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.guest-email-section p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.guest-email-form {
    max-width: 400px;
    margin: 0 auto;
}

/* Value Selection Section */
.value-selection-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

.selection-header {
    text-align: center;
    margin-bottom: 2rem;
}

.selection-header h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.selection-header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.progress-info {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 500;
}

.values-container {
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 0.5rem;
}

.value-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.value-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.value-item.selected {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.value-item.selected .value-content h4,
.value-item.selected .value-content p {
    color: white;
}

.value-item.selected .value-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.value-checkbox {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-item.selected .value-checkbox {
    opacity: 1;
}

.value-checkbox i {
    color: white;
    font-size: 1.2rem;
}

.selection-actions {
    text-align: center;
}

.complete-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.complete-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.complete-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Comparison Results Section */
.comparison-results-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

.comparison-results-section h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.venn-diagram {
    margin: 2rem 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-results {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.comparison-results h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.venn-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.venn-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.venn-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.venn-section h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.venn-section.creator-only h4 {
    color: #667eea;
}

.venn-section.overlapping h4 {
    color: #28a745;
}

.venn-section.recipient-only h4 {
    color: #dc3545;
}

.venn-section ul {
    list-style: none;
    padding: 0;
}

.venn-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.venn-section li:last-child {
    border-bottom: none;
}

.comparison-note {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.comparison-note p {
    color: #856404;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.comparison-note p:last-child {
    margin-bottom: 0;
}

.value-update-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.choice-card.update-values {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
}

.choice-card.update-values .choice-icon {
    background: #ffc107;
    color: #856404;
}

.logout-btn {
    background: #6c757d;
    color: white;
}

.logout-btn:hover {
    background: #5a6268;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Success Message Styles */
.success-message {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.success-message h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.success-message p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .code-entry-section {
        padding: 2rem 1.5rem;
    }

    .code-entry-section h1 {
        font-size: 2rem;
    }

    .code-input-group {
        flex-direction: column;
        border-radius: 15px;
    }

    #codeInput {
        padding: 1rem;
        text-align: center;
    }

    .submit-btn {
        padding: 0.75rem;
    }

    .preview-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        max-height: 300px;
    }

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

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

@media (max-width: 480px) {
    .code-entry-section {
        padding: 1.5rem 1rem;
    }

    .code-entry-section h1 {
        font-size: 1.8rem;
    }

    .code-entry-section p {
        font-size: 1rem;
    }
} 