/* ZenMantra DISC Assessment Plugin Styles */

.zenmantra-disc-quiz {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Enhanced Security Styles */
.zenmantra-disc-quiz * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.zenmantra-disc-quiz {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

/* Disable highlighting */
.zenmantra-disc-quiz::selection,
.zenmantra-disc-quiz *::selection {
    background: transparent !important;
}

.zenmantra-disc-quiz::-moz-selection,
.zenmantra-disc-quiz *::-moz-selection {
    background: transparent !important;
}

/* Hide scrollbars to prevent inspection */
.zenmantra-disc-quiz::-webkit-scrollbar {
    display: none;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-shadow {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.progress-dot.answered {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

.progress-dot.current {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.zenmantra-watermark {
    position: fixed;
    bottom: 10px;
    right: 10px;
    opacity: 0.3;
    font-size: 12px;
    color: #666;
    pointer-events: none;
}

.question-card {
    transition: all 0.3s ease;
    border-left: 4px solid #e5e7eb;
}

.question-card.current {
    border-left-color: #3b82f6;
    background-color: #f8fafc;
}

.likert-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.likert-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    min-height: 60px;
    min-width: 60px;
}

.likert-option:hover {
    background-color: #e0e7ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.likert-option:active {
    transform: translateY(0);
    background-color: #c7d2fe;
}

.likert-option input[type="radio"] {
    margin-bottom: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    transform: scale(1.2);
}

.likert-label {
    font-size: 0.75rem;
    text-align: center;
    color: #6b7280;
}

.results-section {
    display: none;
}

.type-card {
    border-left: 4px solid;
    transition: transform 0.2s;
}

.type-card:hover {
    transform: translateY(-2px);
}

.type-d { border-left-color: #ef4444; }
.type-i { border-left-color: #f59e0b; }
.type-s { border-left-color: #10b981; }
.type-c { border-left-color: #3b82f6; }

.score-bar {
    height: 20px;
    border-radius: 10px;
    transition: width 0.8s ease;
}

.score-d { background-color: #ef4444; }
.score-i { background-color: #f59e0b; }
.score-s { background-color: #10b981; }
.score-c { background-color: #3b82f6; }

/* Enhanced Click Sensitivity */
.progress-dot {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.progress-dot:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.progress-dot:active {
    transform: scale(0.95);
}

/* Animation classes for enhanced feedback */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes completed {
    0% { transform: scale(1); background-color: #e0e7ff; }
    50% { transform: scale(1.1); background-color: #10b981; }
    100% { transform: scale(1); background-color: #e0e7ff; }
}

@keyframes highlight {
    0% { background-color: transparent; }
    50% { background-color: #dbeafe; }
    100% { background-color: transparent; }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.completed {
    animation: completed 0.3s ease-in-out;
}

.highlight {
    animation: highlight 1s ease-in-out;
}

.clicking {
    transform: scale(0.9);
    background-color: #3b82f6;
    color: white;
}

.touch-active {
    background-color: #c7d2fe;
    transform: scale(0.98);
}

.selected {
    background-color: #dbeafe;
    border: 2px solid #3b82f6;
}

/* Improved focus states */
input[type="radio"]:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.likert-option:focus-within {
    background-color: #dbeafe;
    box-shadow: 0 0 0 2px #3b82f6;
}

/* Better disabled states */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Larger click areas for mobile */
@media (max-width: 768px) {
    .likert-option {
        min-height: 70px;
        min-width: 70px;
        padding: 1rem 0.75rem;
    }
    
    .progress-dot {
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
    }
    
    .likert-option input[type="radio"] {
        width: 20px;
        height: 20px;
        transform: scale(1.3);
    }
}

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {
    .likert-scale {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .likert-option {
        min-height: 80px;
        min-width: 80px;
        padding: 1.25rem 1rem;
        margin: 4px;
        flex: 0 0 auto;
    }
    
    .likert-option input[type="radio"] {
        width: 22px;
        height: 22px;
        transform: scale(1.4);
    }
    
    .likert-label {
        font-size: 0.7rem;
        line-height: 1.2;
        font-weight: 500;
    }
    
    .progress-dot {
        min-width: 48px;
        min-height: 48px;
        font-size: 14px;
        font-weight: bold;
    }
    
    button {
        min-height: 56px;
        font-size: 16px;
        padding: 16px 32px;
    }
}

/* Interactive element base styles */
.interactive-element {
    position: relative;
    overflow: hidden;
}

.interactive-element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    pointer-events: none;
}

.interactive-element:active::before {
    width: 100%;
    height: 100%;
}

/* Button press animation */
.button-pressed {
    transform: scale(0.98);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Enhanced focus indicators */
.likert-option:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
    background-color: #dbeafe;
}

.progress-dot:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
    background-color: #dbeafe;
    color: #1e40af;
}

/* Smooth transitions for all interactions */
* {
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3);
}
