
:root {
    --primary-color: #38a169; /* Green */
    --primary-light: #48bb78;
    --primary-dark: #2f855a;
    --secondary-color: #3182ce; /* Blue */
    --secondary-light: #4299e1;
    --secondary-dark: #2c5282;
    --background-light: #f7fafc;
    --text-dark: #2d3748;
    --text-light: #f7fafc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2338a169' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.secondary-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.card {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.input-field {
    transition: border 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e2e8f0;
}

.input-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.2);
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(1px);
}

.risk-category {
    transition: all 0.5s ease;
    transform-origin: left;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.hide {
    display: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: rgba(56, 161, 105, 0.1);
}

tr:hover {
    background-color: rgba(56, 161, 105, 0.05);
}

.chart-container {
    position: relative;
    height: 60px;
    width: 100%;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
}

.chart-section {
    position: absolute;
    height: 100%;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.chart-marker {
    position: absolute;
    height: 120%;
    width: 3px;
    background-color: #111;
    top: -10%;
    transform: translateX(-50%);
    z-index: 10;
    transition: left 1s ease-in-out;
}

.chart-marker::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: #111;
    border-radius: 50%;
}

.gender-selector {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gender-selector.selected {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}