/* InsightsOps - Custom Styles */

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Base card style */
.card-base {
    background: white;
    border-radius: 20px;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Card hover effect */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 58, 26, 0.08);
}

/* Hero KPI card - green gradient */
.hero-kpi-card {
    background: linear-gradient(135deg, #3a7a3a 0%, #4a8c4a 50%, #6b9f6b 100%);
    color: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(74, 140, 74, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(74, 140, 74, 0.35);
}

/* Score colors */
.score-high { color: #3a7a3a; }
.score-medium { color: #ca8a04; }
.score-low { color: #dc2626; }

.score-bg-high { background-color: #f2f7f2; }
.score-bg-medium { background-color: #fefce8; }
.score-bg-low { background-color: #fef2f2; }

/* Table row hover */
.table-row-hover:hover {
    background-color: #f2f7f2;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 250px;
}

/* Sidebar transition for mobile */
#sidebar.sidebar-open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 30;
}

/* Landing page gradient */
.hero-gradient {
    background: linear-gradient(135deg, #2d5f2d 0%, #1a3a1a 50%, #0f220f 100%);
}

/* Feature card icon bg */
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stacked progress bar */
.stacked-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e7eb;
}
.stacked-bar > div {
    height: 100%;
    transition: width 0.3s ease;
}

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

/* Focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4a8c4a;
    box-shadow: 0 0 0 3px rgba(74, 140, 74, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f2f7f2;
}
::-webkit-scrollbar-thumb {
    background: #c3dbc3;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #96c096;
}
