/* --- Base & Typography --- */
body {
    background-color: #FAFAFA;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #212121;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

main {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* --- Calculator Card Container --- */
.calculator-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #E0E0E0;
}

h1 {
    color: #0D47A1;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 700;
}

/* --- Input Groups & Text Inputs --- */
.input-group {
    margin-bottom: 20px;
    position: relative; /* for suggestions dropdown */
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #424242;
}

.input-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #B0B0B0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #FFFFFF;
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: #448AFF;
    box-shadow: 0 0 0 3px rgba(68, 138, 255, 0.3);
}

/* --- Suggestions Dropdown --- */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border: 1px solid #B0B0B0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
}

.suggestions li {
    padding: 10px 15px;
    cursor: pointer;
    list-style: none;
    font-size: 16px;
}

.suggestions li:hover,
.suggestions li:focus {
    background-color: #E3F2FD;
    color: #0D47A1;
    outline: none;
}

/* --- Calculate Button --- */
#calculate-btn {
    width: 100%;
    padding: 15px;
    margin-top: 25px;
    background-color: #448AFF;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

#calculate-btn:hover {
    background-color: #2C6CD1;
}

/* --- Result Area --- */
.result-area {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5;
}

/* --- Jetlag Score Line --- */
.score-container {
    font-size: 16px;
    font-weight: bold;
    color: #212121;
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 5px;
}

.score-tooltip {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background-color: #0D47A1;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    cursor: default;
    position: relative;
}

.score-tooltip:hover::after {
    content: attr(title);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #212121;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 13px;
    z-index: 100;
}

/* --- Severity Bar --- */
#severity-bar {
    height: 16px;
    border-radius: 8px;
    transition: width 0.4s ease;
    margin-bottom: 8px;
}

/* --- Time Difference Text --- */
.time-difference-text {
    font-size: 16px;
    font-weight: normal;
    color: #212121;
    margin-top: 0;
}

/* --- Disclaimer Box --- */
.disclaimer-box {
    background-color: #f5f5f5;
    padding: 18px 20px;
    margin-top: 25px;
    border-left: 4px solid #448AFF;
    border-radius: 8px;
}

.disclaimer-box .disclaimer {
    margin: 0;
    font-size: 14px;
    color: #424242;
    line-height: 1.5;
}

.disclaimer-box .copyright-info {
    margin-top: 10px;
    font-size: 14px;
    color: #212121;
}

/* --- Centered Privacy Link --- */
.privacy-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.privacy-link a {
    color: #448AFF;
    text-decoration: none;
}

.privacy-link a:hover {
    text-decoration: underline;
}
