/* ClimateComply - Custom Styles */

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

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

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes progress-fill {
    from { width: 0; }
}

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

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

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

.animate-progress {
    animation: progress-fill 1s ease-out;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

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

/* Progress bar styles */
.progress-bar {
    transition: width 0.8s ease-out;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

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

.status-complete {
    background-color: #dcfce7;
    color: #166534;
}

.status-in-progress {
    background-color: #fef3c7;
    color: #92400e;
}

.status-not-started {
    background-color: #f3f4f6;
    color: #4b5563;
}

/* Priority badge styles */
.priority-high {
    background-color: #fee2e2;
    color: #991b1b;
}

.priority-medium {
    background-color: #fef3c7;
    color: #92400e;
}

.priority-low {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Gauge chart container */
.gauge-container {
    position: relative;
    width: 200px;
    height: 120px;
    margin: 0 auto;
}

/* Upload dropzone */
.dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: #0ea5e9;
    background-color: #f0f9ff;
}

.dropzone.dragover {
    transform: scale(1.02);
}

/* Timeline connector */
.timeline-connector {
    position: absolute;
    left: 24px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #e2e8f0, transparent);
}

/* Report section toggle */
.section-toggle {
    transition: all 0.3s ease;
}

.section-toggle.collapsed .section-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.section-toggle.expanded .section-content {
    max-height: 2000px;
    opacity: 1;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background-color: #10b981;
    color: white;
}

.toast-info {
    background-color: #0ea5e9;
    color: white;
}

/* Navigation active state */
nav a.active {
    color: #0284c7;
    font-weight: 500;
}

/* Countdown timer styling */
.countdown {
    font-variant-numeric: tabular-nums;
}

/* Chart.js tooltip custom styles */
.chartjs-tooltip {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    color: white;
    opacity: 1;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, 0);
    transition: all 0.1s ease;
}

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background-color: #f8fafc;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.data-table tr:hover td {
    background-color: #f8fafc;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e2e8f0;
        padding: 8px 0;
        z-index: 50;
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.75rem;
    }
}

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

    .print-break {
        page-break-before: always;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
