/* --- General Body & Layout --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
    text-align: center;
}

h1 {
    color: #1c3d5a;
    margin-bottom: 15px;
}

p {
    line-height: 1.6;
    margin-bottom: 25px;
}

/* --- Calculator Elements --- */
.calculator {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.calculator label {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
}

#employeeInput {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#employeeInput:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#calculateBtn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#calculateBtn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* --- Result Display --- */
#result {
    margin-top: 25px;
    font-size: 1.2em;
    font-weight: 500;
    padding: 20px;
    border-radius: 8px;
    min-height: 60px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

#result.success {
    background-color: #e7f5ff;
    color: #0056b3;
    border: 1px solid #b3d7ff;
}

#result.error {
    background-color: #fff0f1;
    color: #d93025;
    border: 1px solid #f9d1d1;
}

#result .size {
    font-weight: 700;
    font-size: 1.3em;
    color: #004085;
}

.price {
    font-size: 1.1em;
    color: #495057;
}

.price-value {
    font-weight: 700;
    color: #28a745; /* Green for price */
}

/* --- API Info & Disclaimer --- */
.api-info {
    margin-top: 30px;
    font-size: 0.9em;
    color: #666;
}

.api-info span {
    font-weight: bold;
    color: #007bff;
    display: inline-block;
    border: 1px solid #007bff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 12px;
}

.disclaimer {
    margin-top: 25px;
    margin-bottom: 0;
    font-size: 0.85em;
    color: #6c757d;
    font-style: italic;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.back-link {
    margin-top: 30px;
    font-weight: 600;
}

/* --- API Page Specific Styles --- */
.container h2 {
    margin-top: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    text-align: left;
}
.container ul {
    text-align: left;
    list-style-position: inside;
}
code, pre {
    background-color: #e9ecef;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 0.95em;
    color: #333;
}
pre {
    padding: 15px;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
}