:root {
    --si-primary: #921A40;
    --si-secondary: #F4D9D0;
    --si-background: #FFFFFF;
    --si-text: #000000;
    --si-accent: #921A40;
    --si-light-accent: rgba(244, 217, 208, 0.3);

    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--si-text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.si-progress-graph {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
}

.si-progress-graph h2 {
    text-align: center;
    color: var(--si-primary);
    margin-bottom: 30px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.si-progress-graph h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--si-secondary);
    border-radius: 2px;
}

.si-tool {
    background: var(--si-background);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(146, 26, 64, 0.1);
    margin-bottom: 20px;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.si-tool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--si-primary) 0%, var(--secondary) 100%);
}

.si-graph-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
}

.si-graph {
    display: flex;
    height: 250px;
    min-width: 500px;
    border-left: 2px solid var(--si-primary);
    border-bottom: 2px solid var(--si-primary);
    position: relative;
    margin-left: 50px;
    background-color: var(--si-light-accent);
}

.si-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 250px;
    position: absolute;
    left: -50px;
    width: 40px;
    text-align: right;
    font-size: 0.95em;
    color: var(--si-text);
    font-weight: 500;
}

.si-y-axis span {
    position: relative;
    padding-right: 10px;
}

.si-y-axis span::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 1px;
    background-color: var(--si-primary);
    opacity: 0.5;
}

.si-x-axis {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    margin-left: 50px;
    font-size: 0.95em;
    color: var(--si-text);
    min-width: 500px;
    font-weight: 500;
}

.si-week-marker {
    width: 100%;
    text-align: center;
    position: relative;
}

.si-week-marker::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    width: 1px;
    height: 8px;
    background-color: var(--si-primary);
    opacity: 0.5;
}

.si-data-point {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: var(--si-primary);
    border-radius: 50%;
    transform: translate(-50%, 50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    border: 3px solid var(--si-background);
    box-shadow: 0 2px 8px rgba(146, 26, 64, 0.3);
}

.si-data-point:hover {
    background-color: var(--si-primary);
    transform: translate(-50%, 50%) scale(1.5);
    box-shadow: 0 4px 12px rgba(146, 26, 64, 0.4);
}

.si-line {
    position: absolute;
    height: 3px;
    background-color: var(--si-primary);
    transform-origin: left center;
    z-index: 1;
    opacity: 0.8;
}

.si-tooltip {
    position: absolute;
    background: var(--si-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
    white-space: nowrap;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(146, 26, 64, 0.3);
}

.si-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--si-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .si-tool {
        padding: 25px;
        width: 95%;
    }
    
    .si-graph {
        height: 200px;
        margin-left: 40px;
        min-width: 400px;
    }
    
    .si-y-axis {
        height: 200px;
        left: -40px;
        width: 35px;
    }
    
    .si-x-axis {
        margin-left: 40px;
        min-width: 400px;
    }
}

@media (max-width: 480px) {
    .si-tool {
        padding: 20px 15px;
    }
    
    .si-graph {
        height: 180px;
        margin-left: 30px;
        min-width: 300px;
    }
    
    .si-y-axis {
        height: 180px;
        left: -30px;
        width: 25px;
        font-size: 0.85em;
    }
    
    .si-x-axis {
        margin-left: 30px;
        min-width: 300px;
        font-size: 0.85em;
    }
    
    .si-data-point {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }
}

/* Custom scrollbar for graph container */
.si-graph-container::-webkit-scrollbar {
    height: 8px;
}

.si-graph-container::-webkit-scrollbar-track {
    background: var(--si-light-accent);
    border-radius: 4px;
}

.si-graph-container::-webkit-scrollbar-thumb {
    background-color: var(--si-primary);
    border-radius: 4px;
}