body {
    font-family: Arial, sans-serif;
    background-color: #f7f2f1; 
    margin: 0;
    padding: 20px;
}

h2 {
    text-align: center;
    color: #3a3a3a;
    margin-bottom: 20px;
}

form {
    background-color: #ffffff; 
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    margin: 0 auto;
}

label {
    font-weight: bold;
    margin-right: 10px;
    color: #2d4059; 
}

input[type="number"] {
    padding: 8px;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    margin-bottom: 10px;
    width: calc(100% - 20px);
    box-sizing: border-box;
    background-color: #f5f5f5; 
}

button {
    padding: 12px 24px;
    background-color: #f28482; 
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ff595e; 
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
}

th, td {
    border: 1px solid #d9d9d9;
    padding: 12px;
    text-align: center;
}

th {
    background-color: #ffcad4; 
    color: white;
    font-weight: bold;
}

tbody tr:nth-child(even) {
    background-color: #f3eac2;
}

tbody tr:hover {
    background-color: #caf0f8; 
}

table input[readonly] {
    color: #d9534f; 
    font-weight: bold;
}

table input {
    width: 90%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: white;
}

table th:nth-child(1), table td:nth-child(1) { /* Station */
    width: 80px;
}

table th:nth-child(2), table td:nth-child(2) { /* Observed Angle */
    width: 140px;
}

table th:nth-child(3), table td:nth-child(3) { /* Bearing */
    width: 100px;
}

table th:nth-child(4), table td:nth-child(4) { /* Length */
    width: 100px;
}

table th:nth-child(5), table td:nth-child(5), /* HI */
table th:nth-child(6), table td:nth-child(6) { /* HT */
    width: 90px; 
}

table th:nth-child(7), table td:nth-child(7), /* ΔE Calculated */
table th:nth-child(8), table td:nth-child(8), /* ΔE Correction */
table th:nth-child(9), table td:nth-child(9), /* ΔN Calculated */
table th:nth-child(10), table td:nth-child(10), /* ΔN Correction */
table th:nth-child(11), table td:nth-child(11), /* Δh Calculated */
table th:nth-child(12), table td:nth-child(12) { /* Δh Correction */
    width: 240px; 
}

table th:nth-child(13), table td:nth-child(13), /* E */
table th:nth-child(14), table td:nth-child(14), /* N */
table th:nth-child(15), table td:nth-child(15) { /* Z */
    width: 100px;
}

/* Responsiveness */
@media (max-width: 768px) {
    form {
        padding: 10px;
    }

    input[type="number"] {
        width: 100%;
    }

    table {
        font-size: 14px;
    }
}