body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Blood Type Button Styles */
.blood-type-btn {
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border: 2px solid #4b5563;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.blood-type-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.blood-type-btn:hover::before {
    width: 300px;
    height: 300px;
}

.blood-type-btn:hover {
    transform: translateY(-2px);
    border-color: #60a5fa;
    box-shadow: 0 10px 25px -5px rgba(96, 165, 250, 0.3);
}

.blood-type-btn:active {
    transform: translateY(0);
}

.blood-type-btn.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #60a5fa;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5), 0 0 0 3px rgba(96, 165, 250, 0.2);
    transform: scale(1.05);
}

.blood-type-btn.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    animation: checkmark 0.3s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* Matrix Cell Styles */
.matrix-cell {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.matrix-cell:hover {
    transform: scale(1.05);
    z-index: 10;
}

.matrix-cell.safe {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.matrix-cell.safe:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.5);
}

.matrix-cell.unsafe {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.matrix-cell.unsafe:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

.matrix-cell::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 1rem;
    background: #1f2937;
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 20;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.matrix-cell:hover::after {
    opacity: 1;
}

/* Result animations */
.result-safe {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.2) 100%);
    border: 2px solid #22c55e;
    animation: slideIn 0.4s ease-out;
}

.result-unsafe {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border: 2px solid #ef4444;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info card styles */
.info-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.info-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #60a5fa;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 0.5rem 0;
    color: #d1d5db;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card li::before {
    content: '→';
    color: #60a5fa;
    font-weight: bold;
}

/* Pulse animation for important elements */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Light mode support */
[data-theme="light"] body {
    background: linear-gradient(135deg, #e8f0f7 0%, #f0f5fa 100%);
}

[data-theme="light"] .blood-type-btn {
    color: #1f2937;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    border-color: #d1d5db;
}

[data-theme="light"] .blood-type-btn:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .blood-type-btn.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5), 0 0 0 3px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .matrix-cell.safe {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
}

[data-theme="light"] .matrix-cell.safe:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.6);
}

[data-theme="light"] .matrix-cell.unsafe {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

[data-theme="light"] .matrix-cell.unsafe:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
}

[data-theme="light"] .matrix-cell::after {
    background: #1f2937;
    color: #fff;
}

[data-theme="light"] .result-safe {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.15) 100%);
    border-color: #22c55e;
}

[data-theme="light"] .result-unsafe {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    border-color: #ef4444;
}

[data-theme="light"] .info-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(209, 213, 219, 0.8);
}

[data-theme="light"] .info-card h4 {
    color: #2563eb;
}

[data-theme="light"] .info-card li {
    color: #4b5563;
}

[data-theme="light"] .info-card li::before {
    color: #2563eb;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3 {
    color: #1f2937 !important;
}

[data-theme="light"] p,
[data-theme="light"] .text-gray-400,
[data-theme="light"] .text-gray-300,
[data-theme="light"] .text-gray-200 {
    color: #4b5563 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blood-type-btn {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .matrix-cell {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}
