body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    max-width: 600px; 
    margin: 40px auto; 
    padding: 20px; 
    background-color: #f4f4f9; 
    color: #333;
}
h1 { 
    font-size: 24px;
    color: #222;
    margin-bottom: 10px;
}
p {
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
}
.calculator { 
    background: #ffffff; 
    padding: 25px; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    margin-bottom: 20px;
}
.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.align-bottom {
    align-items: flex-end;
}
.input-col {
    flex: 1;
}
.separator {
    border: 0;
    border-top: 1px solid #eee;
    margin: 25px 0 15px 0;
}
.custom-row {
    display: flex;
    gap: 10px;
}
.custom-row input {
    margin-bottom: 0;
}
label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 14px;
}
input, select { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 16px; 
}
button { 
    width: 100%;
    background-color: #0066cc; 
    color: white; 
    border: none; 
    padding: 15px;
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 16px;
    font-weight: bold; 
    transition: background-color 0.2s;
}
button:hover { 
    background-color: #0052a3; 
}
.add-main-btn {
    width: auto;
    white-space: nowrap;
    padding: 12px 20px;
}
.add-custom-btn {
    width: auto;
    white-space: nowrap;
    padding: 12px 20px;
    background-color: #495057;
}
.add-custom-btn:hover {
    background-color: #343a40;
}
.error {
    color: #d9534f;
    margin-top: -10px;
    margin-bottom: 10px;
    font-weight: bold;
    display: none;
}
.recipe-container {
    background: #ffffff; 
    padding: 25px; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
}
.recipe-title-input {
    width: 100%;
    font-size: 22px;
    font-weight: bold;
    border: none;
    border-bottom: 2px solid #0066cc;
    padding: 0 0 10px 0;
    margin-bottom: 15px;
    background: transparent;
    color: #222;
}
.recipe-title-input:focus {
    outline: none;
    border-bottom-color: #0052a3;
}
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.calculation-info {
    font-size: 13px;
    color: #777;
    font-style: italic;
}
.delete-btn {
    width: auto;
    padding: 6px 12px;
    font-size: 12px;
    background-color: #dc3545;
    margin-left: 15px;
}
.delete-btn:hover {
    background-color: #c82333;
}
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.print-btn {
    background-color: #28a745;
}
.print-btn:hover {
    background-color: #218838;
}
.clear-btn {
    background-color: #dc3545;
}
.clear-btn:hover {
    background-color: #c82333;
}

@media print {
    body {
        background-color: white;
        margin: 0;
        padding: 0;
    }
    .no-print {
        display: none !important;
    }
    .recipe-container {
        box-shadow: none;
        padding: 0;
    }
    .recipe-title-input {
        border-bottom: none;
    }
    .recipe-title-input::placeholder {
        color: transparent;
    }
    li {
        border-bottom: 1px solid #000;
    }
    .calculation-info {
        color: #333; /* Gjør teksten mørkere ved utskrift for lesbarhet */
    }
}
