/* Custom Styles for AI/DX Diagnosis System */

* {
    font-family: 'Noto Sans JP', sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

/* Answer option styling */
.answer-option {
    width: 100%;
    padding: 1rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.answer-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #60a5fa;
    transform: translateX(4px);
}

.answer-option.selected {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.3), rgba(168, 85, 247, 0.3));
    border-color: #60a5fa;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Report card styling */
.report-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.report-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.report-card h3 i {
    margin-right: 0.75rem;
    color: #60a5fa;
}

/* Score circle */
.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #3b82f6 0%,
        #8b5cf6 var(--score-percent, 0%),
        rgba(255, 255, 255, 0.1) var(--score-percent, 0%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    border-radius: 50%;
}

.score-circle .score-value {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Level badge */
.level-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
}

.level-1 {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.level-2 {
    background: rgba(249, 115, 22, 0.3);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.5);
}

.level-3 {
    background: rgba(234, 179, 8, 0.3);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.5);
}

.level-4 {
    background: rgba(34, 197, 94, 0.3);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.level-5 {
    background: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

/* Progress bars in report */
.category-progress {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.category-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.shake {
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

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

/* Recommendation cards */
.recommendation-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(96, 165, 250, 0.5);
    transform: translateY(-2px);
}

/* Step indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
}

.step-indicator.active {
    background: linear-gradient(to right, #3b82f6, #9333ea);
    color: white;
}

.step-indicator.completed {
    background: #22c55e;
    color: white;
}

.step-indicator.pending {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

/* Print styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .report-card {
        background: white !important;
        border: 1px solid #e5e7eb !important;
        box-shadow: none !important;
    }
    
    .no-print {
        display: none !important;
    }
}

/* Subsidy card styling */
.subsidy-card {
    padding: 1rem;
    background: linear-gradient(to right, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 0.5rem;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.subsidy-card h4 {
    color: #4ade80;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subsidy-card p {
    color: #bfdbfe;
    font-size: 0.875rem;
}

/* Industry trends card */
.trend-card {
    padding: 1rem;
    background: linear-gradient(to right, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 0.5rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Action step card */
.action-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border-left: 4px solid #3b82f6;
}

.action-step-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .score-circle {
        width: 140px;
        height: 140px;
    }
    
    .score-circle::before {
        width: 115px;
        height: 115px;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* Button hover effects */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Select dropdown styling for dark background */
select option {
    background-color: #1e293b;
    color: white;
}
