:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --border: #e2e8f0;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--background);
    display: flex;
    flex-direction: column;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    height: 64px;
}

.main-content {
    flex: 1;
    padding-top: 84px;
    /* 64px header height + 20px spacing */
    padding-bottom: 20px;
    min-height: calc(100vh - 144px);
}

.footer {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    margin-top: auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    color: var(--primary);
}

.gradient-border {
    position: relative;
    padding: 1px;
    border-radius: 1rem;
}

.gradient-border>div {
    background: white;
    border-radius: 1rem;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-dots:after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60% {
        content: '...';
    }

    80%,
    100% {
        content: '';
    }
}

.btn-primary {
    background: var(--primary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
    background: var(--primary-dark);
}

.input-field {
    transition: all 0.2s ease;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
    .fixed-header {
        height: 56px;
    }

    .main-content {
        padding-top: 76px;
        /* 56px header height + 20px spacing */
        padding-bottom: 20px;
    }

    .footer {
        height: 64px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 100% !important;
    }
}

.disease-tag {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.disease-tag:hover {
    background: var(--primary-light/5);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.1);
}

.disease-tag:active {
    transform: translateY(0);
}

.disease-tag i {
    font-size: 0.75rem;
    opacity: 0.8;
}

.nav-item {
    @apply flex items-center px-4 py-2 text-sm font-medium text-gray-600 rounded-lg transition-colors whitespace-nowrap;
}

.nav-item:hover {
    color: var(--primary);
    background: var(--primary-light/10);
}

.nav-item.active {
    color: var(--primary);
    background: var(--primary-light/10);
}

/* Feature Sections */
.feature-section {
    @apply hidden;
}

.feature-section.active {
    @apply block;
}

/* Visualization Styles */
.chart-container {
    @apply bg-white rounded-xl p-6 shadow-sm;
    height: 400px;
    border: 1px solid var(--border);
}

/* Comparison Styles */
.comparison-grid {
    @apply grid grid-cols-1 md:grid-cols-2 gap-6;
}

/* Favorites Styles */
.favorite-item {
    @apply flex items-center justify-between p-4 bg-white rounded-xl shadow-sm hover:shadow-md transition-shadow;
}

/* Report Styles */
.report-card {
    @apply bg-white rounded-xl p-6 shadow-sm hover:shadow-md transition-shadow;
}

.delete-btn {
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.delete-btn:hover {
    transform: scale(1);
}

.disease-tag:hover {
    @apply bg-blue-100;
}

.disease-tag {
    @apply flex items-center px-4 py-2 rounded-lg transition-all duration-200 cursor-pointer;
}

.delete-btn {
    transition: all 0.2s ease;
}

.disease-tag:hover {
    @apply bg-blue-100;
}

.disease-tag:hover .delete-btn {
    opacity: 1;
}

/* Update chart colors */
.chart-container canvas {
    --chart-primary: var(--primary);
}

/* Update beta tag colors */
.beta-tag {
    @apply ml-2 px-2 py-0.5 text-xs font-medium rounded-full;
    background: var(--primary-light/10);
    color: var(--primary);
}

/* Update loading animation colors */
.loading-pulse {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    color: var(--primary);
}

/* Update tooltip colors */
.tooltip {
    @apply invisible absolute text-white text-xs rounded py-1 px-2 -mt-8;
    background: var(--primary);
    transition: opacity 0.2s;
}

/* Update modal colors */
.modal-content {
    border: 1px solid var(--border);
    background: var(--surface);
}

.modal-header {
    border-bottom: 1px solid var(--border);
}

/* Update footer colors */
.footer {
    border-top: 1px solid var(--border);
}

.footer a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--primary);
}

/* Update icon colors */
.text-blue-500,
.text-blue-600 {
    color: var(--primary) !important;
}

.bg-blue-50 {
    background-color: var(--primary-light/10) !important;
}

.text-blue-700 {
    color: var(--primary-dark) !important;
}

/* Logo styling */
.brand-logo {
    width: 32px;
    height: 32px;
}

.brand-logo svg {
    width: 100%;
    height: 100%;
}

.brand-logo path {
    fill: var(--primary);
}

.brand-logo:hover path {
    fill: var(--primary-dark);
}