:root {
    --primary-color: #004f9f; /* Swedish Blue */
    --secondary-color: #ffcc00; /* Swedish Yellow */
    --background-color: #f7f9fc;
    --card-background: #ffffff;
    --text-color: #333333;
    --light-text-color: #666666;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --font-family: 'Helvetica Neue', Arial, sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#menscykel-tool-container {
    font-family: var(--font-family);
    background-color: var(--background-color);
    padding: 20px;
    max-width: 900px;
    margin: 20px auto;
    color: var(--text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.tool-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.tool-header h2 {
    color: var(--primary-color);
    margin: 0 0 5px 0;
}

.tool-header p {
    color: var(--light-text-color);
    margin: 0;
    font-size: 1rem;
}

.tool-body {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.tool-inputs, .tool-results {
    background: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.tool-inputs {
    flex: 1;
    min-width: 280px;
}

.tool-results {
    flex: 1.5;
    min-width: 320px;
}

fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 20px;
}

fieldset legend {
    padding: 0 10px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--light-text-color);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 79, 159, 0.2);
}

.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--light-text-color);
    color: white;
    font-size: 12px;
    font-weight: bold;
    user-select: none;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    font-weight: normal;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.results-header {
    text-align: center;
    margin-bottom: 15px;
}

.results-summary {
    display: flex;
    justify-content: space-around;
    background: var(--background-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
}

.summary-item .summary-label {
    display: block;
    font-size: 0.8rem;
    color: var(--light-text-color);
    text-transform: uppercase;
}
.summary-item .summary-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.results-chart .chart-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light-text-color);
    text-align: center;
    margin-bottom: 5px;
}

#cycle-chart .axis {
    stroke: var(--border-color);
    stroke-width: 2;
}
#cycle-chart .grid {
    stroke: var(--border-color);
    stroke-width: 1;
    stroke-dasharray: 2,2;
}
#cycle-chart .cycle-path {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 3;
    stroke-linecap: round;
}
#cycle-chart .current-day-dot {
    fill: var(--secondary-color);
    stroke: var(--primary-color);
    stroke-width: 2;
}
#cycle-chart .axis-text {
    font-family: var(--font-family);
    font-size: 12px;
    fill: var(--light-text-color);
}

.results-details {
    margin-top: 20px;
}
.results-details h4, .results-recommendation h4 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.detail-label {
    flex-grow: 1;
    margin-right: 15px;
    font-weight: 600;
}
.detail-value {
    font-weight: bold;
    min-width: 50px;
    text-align: right;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}
.progress-bar {
    height: 100%;
    width: 0;
    border-radius: 4px;
    background-color: var(--primary-color);
    transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
}

.results-recommendation {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--background-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}
.results-recommendation p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.error-message {
    width: 100%;
    text-align: center;
    background-color: #fdd;
    color: var(--danger-color);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--danger-color);
}

@media (max-width: 768px) {
    .tool-body {
        flex-direction: column;
    }
}






.author-box .author-profile {
    text-align: center;
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 100%;
    object-fit: cover;
    margin-bottom: 10px;
}