/* Overview Card Styles */
.overview-card {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    perspective: 1000px;
    position: relative;
    z-index: 30;
}

.overview-card-inner {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 8px;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.overview-card:hover .overview-card-inner {
    transform: rotateY(0deg) rotateX(0deg);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.overview-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 2px solid #f3f4f6;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.card-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF7B00, #FFA500);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 123, 0, 0.3);
}

.card-info {
    flex: 1;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.overview-card-content {
    padding: 25px;
    background: white;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.metric-card {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #FF7B00;
}

.metric-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 22px;
    font-weight: 700;
    color: #FF7B00;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-section {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #fed7aa;
}

.insight-header {
    margin-bottom: 10px;
}

.insight-badge {
    display: inline-block;
    padding: 4px 10px;
    background: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #FF7B00;
    box-shadow: 0 2px 8px rgba(255, 123, 0, 0.15);
}

.insight-text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.performance-bar {
    position: relative;
    height: 40px;
    background: #f3f4f6;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 5px;
}

.performance-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #FF7B00, #FFA500);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    transition: width 1s ease;
    box-shadow: 0 2px 10px rgba(255, 123, 0, 0.3);
}

.performance-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.overview-card-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-top: 2px solid #f3f4f6;
    border-radius: 0 0 12px 12px;
}

.footer-badge {
    flex: 1;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: #4b5563;
    transition: all 0.3s ease;
}

.footer-badge:hover {
    background: #FF7B00;
    color: white;
    border-color: #FF7B00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 123, 0, 0.3);
}

/* Animation on page load */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: rotateY(-30deg) rotateX(10deg) translateZ(-100px);
    }
    to {
        opacity: 1;
        transform: rotateY(-5deg) rotateX(2deg) translateZ(0);
    }
}

.overview-card-inner {
    animation: cardEntrance 0.8s ease-out;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-card-inner {
        transform: none;
    }
    
    .overview-card:hover .overview-card-inner {
        transform: none;
    }
    
    .footer-badge {
        font-size: 10px;
        padding: 6px 8px;
    }
}