* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0f0f15;
    min-height: 100vh;
    padding: 20px;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 1050px;
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
    overflow: hidden;
}

header {
    background: transparent;
    color: #e0e0e0;
    padding: 30px 40px;
    text-align: center;
}

header h1 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.main-content {
    padding: 30px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #e0e0e0;
    font-weight: 600;
}

.input-section {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

.button-groups-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.button-group-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.button-group-wrapper label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    letter-spacing: 0.5px;
    text-align: left;
}

.button-group {
    display: flex;
    width: 300px;
    min-width: 300px;
    border: 1px solid #3a3a4a;
    border-radius: 4px;
    overflow: hidden;
}

.option-button {
    flex: 1;
    padding: 12px 20px;
    background: #2a2a3a;
    color: #888;
    border: none;
    border-right: 1px solid #3a3a4a;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
    position: relative;
}

.option-button:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.option-button:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-right: none;
}

.option-button:not(:first-child):not(:last-child) {
    border-radius: 0;
}

.option-button:hover {
    background: #3a3a4a;
    color: #e0e0e0;
}

.option-button.active {
    background: linear-gradient(135deg, #6b46c1 0%, #9333ea 100%);
    color: white;
    z-index: 1;
    position: relative;
}

.output-section {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.output-card {
    background: #0f0f15;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid #2a2a3a;
    width: 100%;
    max-width: 400px;
}

.output-label {
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.5px;
}

.points-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 5px;
    width: 100%;
}


.point-value {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 4px;
    background: transparent;
    color: #666;
    border: 2px solid #3a3a4a;
    transition: color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.point-value.highlighted {
    background: transparent;
    color: white;
    border: 2px solid #9333ea;
}

.duration-value {
    color: #e0e0e0;
    font-size: 1.1rem;
    text-align: left;
    line-height: 1.5;
    min-height: 3em;
    width: 100%;
}

@media (max-width: 1024px) {
    .container {
        width: 100%;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
    }
    
    .input-section {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .output-section {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .button-group {
        width: 100%;
        min-width: 0;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.4rem;
    }

    .main-content {
        padding: 30px 20px;
    }

    .button-groups-container {
        gap: 30px;
    }
    
    .button-group-wrapper {
        align-items: center;
    }
    
    .button-group-wrapper label {
        text-align: center;
    }
    
    .button-group {
        width: 100%;
    }

    .output-card {
        padding: 20px;
    }

    .duration-value {
        text-align: left;
    }

    .points-container {
        gap: 10px;
    }

    .point-value {
        font-size: 1.2rem;
        padding: 10px 16px;
        min-width: 50px;
    }
}
