.tramadol-calculator {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.calculator-section {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
}

.unit-toggle {
    position: absolute;
    right: 0;
    top: 25px;
    display: flex;
    gap: 2px;
}

.unit-toggle button {
    padding: 4px 8px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    font-size: 12px;
}

.unit-toggle button.active {
    background-color: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.calculate-btn {
    width: 100%;
    padding: 12px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.calculate-btn:hover {
    background-color: #357abd;
}

.results-section {
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    border: 1px solid #ddd;
}

.hidden {
    display: none;
}

.result-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #4a90e2;
}

.result-item .label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.result-item .value {
    color: #4a90e2;
    font-weight: 500;
}

.notes {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.notes h4 {
    color: #333;
    margin-bottom: 10px;
}

.notes ul {
    list-style-type: none;
    padding-left: 0;
}

.notes ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.notes ul li:before {
    content: "•";
    color: #4a90e2;
    position: absolute;
    left: 0;
}

.warning {
    color: #dc3545;
    font-size: 14px;
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3f3;
    border-radius: 4px;
}

h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}