/*
    Linear Motor Sizing Calculator
    Version 1.14

    Stylesheet
*/


* {
    box-sizing: border-box;
}


body {
    margin: 0;
    padding: 20px;
    background: #f3f6f9;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}


.container {
    max-width: 1100px;
    margin: auto;
}


header {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}


header h1 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #174a7c;
}


header p {
    margin: 0;
    color: #555;
}


.card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


.card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #174a7c;
    font-size: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}


.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
    gap: 20px;
}


label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: bold;
    color: #444;
}


input,
select,
textarea {
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 15px;
    background: white;
}


input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #174a7c;
}




.fullWidth {
    grid-column: 1 / -1;
}

textarea {
    resize: vertical;
    font-family: inherit;
}

.hint {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}


.hidden {
    display: none;
}


.results {
    background: #eef6ff;
}


.resultsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 15px;
}


.resultsGrid div {
    background: white;
    border: 1px solid #cddbea;
    border-radius: 6px;
    padding: 15px;
}


.resultsGrid span {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}


.resultsGrid strong {
    font-size: 22px;
    color: #174a7c;
}


table {
    width: 100%;
    border-collapse: collapse;
}


th {
    background: #174a7c;
    color: white;
    padding: 10px;
    text-align: left;
}


td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}


tr.total {
    font-weight: bold;
    background: #eef6ff;
}


.motorTable {
    width:100%;
    border-collapse:collapse;
}


.motorTable th {
    background:#174a7c;
}


.motorTable td {
    padding:10px;
}


.good {
    color:#167a3d;
    font-weight:bold;
}


.bad {
    color:#b42318;
    font-weight:bold;
}


.warning {
    color:#a15c00;
    font-weight:bold;
}


pre {
    background:#f7f7f7;
    border: 1px solid #ddd;
    border-radius:6px;
    padding:15px;
    white-space:pre-wrap;
    line-height:1.5;
    font-family: "Courier New", monospace;
}


details {
    cursor:pointer;
}


summary {
    font-weight:bold;
    color:#174a7c;
    font-size:17px;
}


details ul {
    margin-top:15px;
}


details li {
    margin-bottom:8px;
}


.reportActions {
    margin-top: 15px;
}


#generatePdfButton {
    padding: 11px 18px;
    border: none;
    border-radius: 5px;
    background: #174a7c;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}


#generatePdfButton:hover {
    background: #123b64;
}


@media(max-width:600px) {

    body {
        padding:10px;
    }

    .card {
        padding:15px;
    }

    header h1 {
        font-size:24px;
    }

    .resultsGrid strong {
        font-size:18px;
    }

    table {
        font-size:14px;
    }
}

.fullWidthField { margin-top:20px; width:100%; }
textarea { width:100%; resize:vertical; font-family:Arial, Helvetica, sans-serif; }
