/* ============================================
   AI Insights Tab Styling
   ============================================ */

.ai-insights-container {
    padding: 0;
}

.ai-insights-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

/* AI Card Gradient Header */
.ai-card-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.ai-card-gradient .card-body {
    padding: 2rem;
}

/* Match Score Circle */
.ai-score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ai-score-circle:hover {
    transform: scale(1.05);
}

.ai-score-circle.excellent {
    border: 6px solid #10b981;
}

.ai-score-circle.good {
    border: 6px solid #3b82f6;
}

.ai-score-circle.moderate {
    border: 6px solid #f59e0b;
}

.ai-score-circle.weak {
    border: 6px solid #ef4444;
}

.ai-score-circle .ai-score-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
}

.ai-score-circle .ai-score-value small {
    font-size: 1.5rem;
}

.ai-score-circle .ai-score-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Small Score Display */
.ai-score-small {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.ai-score-small .ai-score-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.ai-score-small .ai-score-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

/* Badge Styles */
.badge-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Card Headers with Subtle Backgrounds */
.bg-success-subtle {
    background-color: #d1fae5;
    color: #065f46;
}

.bg-warning-subtle {
    background-color: #fef3c7;
    color: #92400e;
}

.bg-danger-subtle {
    background-color: #fee2e2;
    color: #991b1b;
}

.bg-info-subtle {
    background-color: #dbeafe;
    color: #1e40af;
}

.bg-primary-subtle {
    background-color: #e0e7ff;
    color: #3730a3;
}

/* Skills Progress Bars */
.progress {
    background-color: #e5e7eb;
    border-radius: 4px;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Competency Score Circles */
.competency-score {
    padding: 1rem;
}

.competency-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: conic-gradient(
        #3b82f6 0% calc(var(--score) * 1%), 
        #e5e7eb calc(var(--score) * 1%) 100%
    );
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.competency-circle:hover {
    transform: scale(1.05);
}

.competency-circle::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: white;
}

.competency-value {
    position: relative;
    z-index: 1;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.competency-value::after {
    content: '%';
    font-size: 1rem;
    margin-left: 2px;
}

/* Strengths & Concerns Lists */
.list-unstyled li {
    border-left: 3px solid transparent;
    padding-left: 0.5rem;
    transition: all 0.2s ease;
}

.list-unstyled li:hover {
    background-color: #f9fafb;
    border-left-color: currentColor;
}

/* Red Flag Alerts */
.alert {
    border-radius: 8px;
}

.alert-danger {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Card Hover Effects */
.card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Loading State */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ai-score-circle {
        width: 100px;
        height: 100px;
    }

    .ai-score-circle .ai-score-value {
        font-size: 1.75rem;
    }

    .ai-score-circle .ai-score-value small {
        font-size: 1rem;
    }

    .competency-circle {
        width: 80px;
        height: 80px;
    }

    .competency-value {
        font-size: 1.5rem;
    }

    .badge-lg {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }

    .ai-card-gradient .card-body {
        padding: 1rem;
    }
}

/* Animation for Cards on Load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

/* Border Utilities */
.border-danger {
    border-color: #f87171 !important;
    border-width: 2px !important;
}

/* Text Utilities */
.text-success {
    color: #10b981 !important;
}

.text-warning {
    color: #f59e0b !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-info {
    color: #3b82f6 !important;
}

.text-primary {
    color: #6366f1 !important;
}
