/* Stakeholder Dashboard Custom Styles */

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Loading animation */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Table styles */
table th {
    position: sticky;
    top: 0;
    background: #f9fafb;
    z-index: 1;
}

/* Transition utilities */
.transition-smooth {
    transition: all 0.2s ease-in-out;
}

/* Focus styles for accessibility */
input:focus,
button:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

/* Status badge styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

/* Card hover effect */
.card-hover {
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.card-hover:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(2px);
}

/* Progress bar animation */
.progress-bar-animated {
    animation: progressWidth 0.5s ease-out forwards;
}

@keyframes progressWidth {
    from { width: 0; }
}

/* Print styles */
@media print {
    nav, .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    .shadow-sm, .shadow {
        box-shadow: none !important;
    }
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.875rem;
    }

    .hide-mobile {
        display: none;
    }
}
