.set-completion-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dialog-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
    from { 
        transform: translateY(30px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.dialog-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.9;
}

.dialog-content h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.5px;
}

.dialog-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.dialog-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
}

.dialog-content .score-display {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    border: 2px solid rgba(52, 152, 219, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.dialog-content .score-display:hover {
    transform: translateY(-5px);
}

.dialog-content .score-display .score {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.dialog-content .score-display .score-label {
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dialog-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.dialog-buttons button {
    padding: 1rem 1.8rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
}

.dialog-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #5da6ff);
    color: white;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.dialog-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.4);
}

.dialog-buttons .btn-secondary {
    background: #ffffff;
    color: #2c3e50;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dialog-buttons .btn-secondary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Success state */
.dialog-content.success {
    border: 2px solid rgba(76, 175, 80, 0.2);
}

.dialog-content.success h3 {
    color: #2e7d32;
}

.dialog-content.success .score-display {
    border-color: rgba(76, 175, 80, 0.2);
    background: linear-gradient(145deg, #ffffff, #f1f8e9);
}

.dialog-content.success .score {
    color: #2e7d32;
}

/* Failure state */
.dialog-content.failure {
    border: 2px solid rgba(244, 67, 54, 0.2);
}

.dialog-content.failure h3 {
    color: #d32f2f;
}

.dialog-content.failure .score-display {
    border-color: rgba(244, 67, 54, 0.2);
    background: linear-gradient(145deg, #ffffff, #ffebee);
}

.dialog-content.failure .score {
    color: #d32f2f;
}

/* Add icons to buttons */
.dialog-buttons .btn-primary::before {
    content: '→';
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
}

.dialog-buttons .btn-secondary::before {
    content: '↺';
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .dialog-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .dialog-content h3 {
        font-size: 1.8rem;
    }
    
    .dialog-content .score-display .score {
        font-size: 3rem;
    }
    
    .dialog-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dialog-buttons button {
        width: 100%;
        min-width: 100%;
        padding: 1rem 1.5rem;
    }
}

.set-info {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.set-info span {
    font-weight: 600;
    color: var(--primary-color);
}

.quiz-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.quiz-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
}

.quiz-meta .category {
    background-color: #e3f2fd;
    color: #1976d2;
}

.quiz-meta .difficulty {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.quiz-meta .timer {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.social-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.facebook { background-color: #1877f2; }
.twitter { background-color: #1da1f2; }
.whatsapp { background-color: #25d366; }
.telegram { 
    background-color: #0088cc;
    position: relative;
    overflow: hidden;
}

.telegram::before {
    content: '✈️';
    font-size: 1.2rem;
    margin-right: 8px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.option-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-item:hover {
    background: #e9ecef;
    transform: translateX(10px);
}

.option-item.selected {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.option-item.selected::before {
    content: '✓';
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.option-item.correct {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.option-item.correct::before {
    content: '✓';
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.option-item.incorrect {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.option-item.incorrect::before {
    content: '✗';
    color: #f44336;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
} 