
/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Floating background blobs */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: blobFloat 20s ease-in-out infinite;
}
.bg-blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #3b82f6, #6366f1);
    top: -200px; left: -100px;
    animation-delay: 0s;
}
.bg-blob-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #8b5cf6, #ec4899);
    bottom: -150px; right: -100px;
    animation-delay: -7s;
}
.bg-blob-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #06b6d4, #3b82f6);
    top: 50%; left: 50%;
    animation-delay: -14s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 40px) scale(1.02); }
}

/* Floating geometric shapes */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}
.geo-shape-1 {
    width: 60px; height: 60px;
    border: 3px solid #3b82f6;
    border-radius: 12px;
    top: 15%; right: 8%;
    animation: geoSpin 25s linear infinite, geoFloat 8s ease-in-out infinite;
}
.geo-shape-2 {
    width: 40px; height: 40px;
    border: 3px solid #8b5cf6;
    border-radius: 50%;
    top: 40%; left: 5%;
    animation: geoSpin 18s linear infinite reverse, geoFloat 6s ease-in-out infinite;
    animation-delay: -3s;
}
.geo-shape-3 {
    width: 0; height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid rgba(236, 72, 153, 0.3);
    bottom: 20%; right: 12%;
    animation: geoFloat 10s ease-in-out infinite;
    animation-delay: -5s;
}
.geo-shape-4 {
    width: 50px; height: 50px;
    border: 3px solid #06b6d4;
    transform: rotate(45deg);
    top: 65%; left: 10%;
    animation: geoSpin 22s linear infinite, geoFloat 9s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes geoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes geoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Animated gradient text */
.gradient-text {
    background: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899, #06b6d4, #3b82f6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism card effect */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(59, 130, 246, 0.1);
}

/* Creative table glass */
.glass-table {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

/* Card hover effect */
.bg-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

/* Circular chart styles */
.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke: url(#circleGradient);
    animation: progress 1.5s ease-out forwards;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}

@keyframes progress {
    0% {
        stroke-dasharray: 0, 100;
    }
}

.percentage {
    fill: #e2e8f0;
    font-family: sans-serif;
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: bold;
}

/* Table row hover effect */
tbody tr {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.08);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

tbody tr:hover td {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Watchlist styles */
.watchlist-tracker {
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --radius: 0.75rem;
}

/* Pulse animation for important items */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Glowing status badges */
.status-compliant {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
    animation: glowPulse 3s ease-in-out infinite;
}
.status-in-progress {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
    animation: glowPulse 2s ease-in-out infinite;
}
.status-overdue {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
    animation: glowPulse 1.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(59, 130, 246, 0.15); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
}

/* Custom shadow for cards */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Staggered card entrance */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-animate {
    animation: cardEntrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}
.card-animate:nth-child(1) { animation-delay: 0.1s; }
.card-animate:nth-child(2) { animation-delay: 0.2s; }
.card-animate:nth-child(3) { animation-delay: 0.3s; }

/* Creative button style */
.btn-creative {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-creative::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-creative:hover::before {
    left: 100%;
}
.btn-creative:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Search input creative */
.search-creative {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    transition: all 0.3s ease;
}
.search-creative::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.search-creative:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* Table styling for dark mode */
.dark-table th {
    color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dark-table td {
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dark-table td:first-child {
    color: #f1f5f9 !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* Decorative line */
.deco-line {
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, transparent);
    border-radius: 2px;
}

/* Particle canvas */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Ensure content above blobs */
main, .content-z {
    position: relative;
    z-index: 1;
}

/* Action icon hover */
.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.action-icon:hover {
    transform: scale(1.15);
}
.action-icon.view:hover { background: rgba(59, 130, 246, 0.15); }
.action-icon.edit:hover { background: rgba(245, 158, 11, 0.15); }
.action-icon.delete:hover { background: rgba(239, 68, 68, 0.15); }

/* Deadline items */
.deadline-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}
.deadline-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}
.deadline-item.border-blue-500 { border-left-color: #3b82f6; }
.deadline-item.border-yellow-500 { border-left-color: #f59e0b; }

/* Update dot animation */
@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.8); opacity: 0.5; }
}
.update-dot {
    animation: dotPulse 2s ease-in-out infinite;
}