/* File: static/css/style.css */
/* Author: blksmn */
/* Last Updated: 2025-07-12 10:45:00 */

.wallet-green {
    color: #22c55e;
}

.bg-wallet-green {
    background-color: #22c55e;
}

.hover-wallet-green:hover {
    background-color: #16a34a;
}

/* Score level indicators */
.score-perfect {
    color: #10b981;
}

.score-green-up {
    color: #059669;
}

.score-orange-up {
    color: #d97706;
}

.score-orange-bar {
    color: #f59e0b;
}

.score-orange-down {
    color: #dc2626;
}

.score-red-down {
    color: #dc2626;
}

.score-red-x {
    color: #b91c1c;
}

.score-no-data {
    color: #6b7280;
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Form enhancements */
.form-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Image display fixes for logos and icons */
.logo-container {
    overflow: visible;
}

.logo-container img {
    object-fit: contain !important;
    max-width: 100%;
    max-height: 100%;
    background: white;
    padding: 4px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ================================================================
   BASIC METRIC STRUCTURE - CLEANED OF CONFLICTS
   ================================================================ */

/* Remove all conflicting metric icon rules - tooltips-styled.css handles this */

/* Basic grid structure only - specifics handled in template CSS */
.metrics-grid {
    display: grid;
    width: 100%;
}

/* ================================================================
   TOOLTIP TRIGGER ELEMENTS - MINIMAL SETUP
   ================================================================ */

.metric-trigger {
    position: relative;
    outline: none;
    cursor: pointer;
}

.metric-trigger[tabindex="0"] {
    cursor: pointer;
}

/* ================================================================
   BASIC RESPONSIVE UTILITIES
   ================================================================ */

/* Prevent image scaling issues on mobile */
@media (max-width: 640px) {
    .logo-container,
    .metric-icon {
        position: relative;
    }

    .logo-container img,
    .metric-icon img {
        object-fit: contain !important;
        object-position: center;
    }
}

/* ================================================================
   LAYOUT FIXES - BASIC ONLY
   ================================================================ */

/* Additional spacing fixes for metric containers */
.company-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
}

@media (min-width: 768px) {
    .company-metrics {
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .company-metrics {
        gap: 20px;
        justify-content: flex-start;
    }
}

/* ================================================================
   ACCESSIBILITY SUPPORT
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wallet-green {
        color: #15803d;
    }
    
    .bg-wallet-green {
        background-color: #15803d;
    }
}
/* CRITICAL FIX: FontAwesome CSS Override Issue (Session 44) */
/* Problem: FontAwesome .fas class sets display: inline-block which overrides .hidden class */
/* Root Cause: Same CSS specificity but FontAwesome loads after Tailwind */
/* Solution: Use !important to force .hidden to override FontAwesome display rules */

/* UPDATED FIX: Target FontAwesome icons specifically to preserve responsive classes */
.fas.hidden,
.far.hidden,
.fab.hidden {
    display: none !important;
}
