@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --white: #ffffff;
    --light-gray: #f5f5f7;
    --mid-gray: #d2d2d7;
    --dark-gray: #6e6e73;
    --black: #1d1d1f;
    --blue: #0071e3;
    --green: #2ecc71;
    --red: #ff3b30;
    --yellow: #ffcc00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 80px; /* Account for fixed header */
}

.font-geist-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Transitions */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Fixed Nav Styles */
nav {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--blue);
    transition: width 0.3s ease, left 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
    left: 0;
}

/* Hover effects */
.hover\:bg-gray-100:hover {
    background-color: var(--light-gray);
}

.hover\:text-blue-600:hover {
    color: var(--blue);
}

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

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--mid-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gray);
}

/* Custom shadow effects */
.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hover effect for cards */
.rounded-xl {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rounded-xl:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Table styling */
table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

table th, table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Chart tooltips */
.chart-tooltip {
    background: rgba(255, 255, 255, 0.95);
    color: var(--black);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive image */
img {
    max-width: 100%;
    height: auto;
}

/* Add elegant animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle blue border accent */
.border-accent {
    border-color: var(--blue);
    border-width: 2px;
}

/* Button styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--blue);
    color: white;
}

.btn-primary:hover {
    background-color: #0062c3;
    transform: translateY(-1px);
}

/* Improve card contrast */
.bg-gray-50 {
    background-color: var(--light-gray);
}

.bg-white {
    background-color: var(--white);
}

/* Active nav link style */
nav a.active {
    color: var(--blue);
    font-weight: 500;
}

/* Gradient background for investment assessment */
.bg-gradient-to-br {
    background: linear-gradient(135deg, #f0f7ff 0%, #e1f0ff 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        scroll-padding-top: 64px;
    }
    
    .py-16 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .h-80 {
        height: 240px;
    }
    
    .h-96 {
        height: 320px;
    }
}
