:root {
    --primary-main: #0F62FE;
    --primary-hover: #0043CE;
    --primary-light: #E0EAFF;
    --secondary-main: #00B37E;
    --secondary-light: #E6F4F1;
    --secondary-dark: #027A56;
    --neutral-bg: #FFFFFF;
    --neutral-surface: #F8F9FA;
    --neutral-border: #E2E8F0;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--neutral-bg);
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero-bg {
    background: radial-gradient(1200px 500px at 50% -20%, rgba(15,98,254,0.12), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #FFFFFF 100%);
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1758691463610-3c2ecf5fb3fa?crop=entropy&cs=srgb&fm=jpg&q=85');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
}

.search-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: #0F62FE;
    box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.1);
    outline: none;
}

.drug-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
}

.drug-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.16);
}

.btn-primary {
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0F62FE;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.glass-strong {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 10px;
    background: #EFF6FF;
    color: #1D4ED8;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

.stagger-children > * {
    opacity: 0;
    animation: slideUp 0.5s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

.react-admin body,
body.react-admin {
    background: #F8FAFC;
}

body.react-admin .row {
    max-width: 1280px;
}

body.react-admin table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
}

body.react-admin table th,
body.react-admin table td {
    border-bottom: 1px solid #E2E8F0;
    padding: 10px 12px;
}

body.react-admin .button {
    border-radius: 10px;
}