/* Custom styles for Succession Readiness Scorecard */

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.2s ease-in-out;
}

/* Custom radio button styling */
input[type="radio"]:checked + div {
    background-color: #008080;
    color: white;
}

input[type="radio"]:checked + div .text-elevate-teal {
    color: white !important;
}

/* Form validation styles */
input:invalid {
    border-color: #EF4444;
}

input:valid {
    border-color: #10B981;
}

/* Loading animation for form submission */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #008080;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spinner 0.75s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Progress bar animations */
.progress-bar {
    animation: fillProgress 1s ease-in-out;
}

@keyframes fillProgress {
    from {
        width: 0%;
    }
}

/* Hover effects for cards */
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 128, 128, 0.1);
}

/* Print styles for results */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid-mobile-stack > * {
        grid-column: 1 / -1;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #008080;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #008080;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #006666;
}

/* Table responsive behavior */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Chart container improvements */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Animation delays for staggered effects */
.animate-delay-100 {
    animation-delay: 100ms;
}

.animate-delay-200 {
    animation-delay: 200ms;
}

.animate-delay-300 {
    animation-delay: 300ms;
}

/* Pulse animation for call-to-action buttons */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 128, 128, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 128, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 128, 128, 0);
    }
}
