* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;
    background: #1e1e1e;
    color: #eeeeee;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.calculator {
    width: 100%;
    max-width: 650px;

    background: #2b2b2b;
    border:1px solid #444444;
    border-radius: 8px;

    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    
    padding: 24px;
}

.calculator h1 {
    margin: 0 0 4px 0;
    font-size: 2rem;
    text-align: center;
}

.calculator h4 {
    margin: 0 0 25px 0;
    font-size: 0.5rem;
    text-align: center;
}

.inputs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;

    user-select: all;
}

.inputs label {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 8px;

    font-weight: bold;
}

.inputs input {
    width: 100%;

    padding: 10px 12px;

    background: #181818;
    color: #ffffff;

    border: 1px solid #555555;
    border-radius: 5px;

    font-size: 16px;
}

.inputs input:focus {
    outline: none;
    border-color: #999999;
}


.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th,
.price-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #444444;
}


.price-table thead th {
    color: #aaaaaa;
    font-size: 13px;
    text-transform: uppercase;

    text-align: right;
}


.price-table th:first-child {
    text-align: left;
}


.price-table td {
    text-align: right;
    font-variant-numeric: tabular-nums;
}


.price-table tbody th {
    font-weight: normal;
}


.price-table td:last-child {
    font-weight: bold;
}


.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
    border-bottom: none;
}


@media (max-width: 550px) {
    .inputs {
        flex-direction: column;
    }

    .calculator {
        padding: 16px;
    }

    .price-table th,
    .price-table td {
        padding: 8px 6px;
    }
}



.admin-panel {
    display: none;

    margin-top: 30px;
    padding-top: 24px;

    border-top: 1px solid #444444;
}

.admin-panel.visible {
    display: block;
}

.admin-panel h2 {
    margin: 0 0 20px;

    font-size: 18px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 16px;
}

.admin-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;

    font-size: 14px;
    font-weight: bold;
}

.admin-grid input {
    padding: 9px 10px;

    background: #181818;
    color: #ffffff;

    border: 1px solid #555555;
    border-radius: 5px;

    font-size: 15px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 20px;
}

.admin-actions button {
    padding: 10px 20px;

    border: none;
    border-radius: 5px;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;
}

.admin-actions button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.admin-status {
    min-height: 1.2em;
    margin: 12px 0 0;

    font-size: 14px;
    color: #aaaaaa;
}

.admin-status.error {
    color: #ff8a8a;
}

@media (max-width: 550px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}