* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f8;
    color: #222;
    font-size: 18px;
    padding-bottom: 90px; /* space for bottom nav */
}

.topbar {
    background: #7b2ff7;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
}
.home-link { color: #fff; text-decoration: none; font-size: 16px; }

.container { max-width: 600px; margin: 0 auto; padding: 20px; }

.flash {
    max-width: 600px;
    margin: 12px auto 0;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 17px;
}
.flash-success { background: #d7f7dd; color: #1a5c2a; border: 2px solid #4caf50; }
.flash-error   { background: #fde2e2; color: #7a1a1a; border: 2px solid #e05252; }

/* ---- Big dashboard buttons ---- */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}
.menu-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px 10px;
    text-align: center;
    text-decoration: none;
    color: #222;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform .1s;
}
.menu-btn:active { transform: scale(0.97); }
.menu-icon { font-size: 40px; display: block; margin-bottom: 8px; }

/* ---- Forms ---- */
label { display: block; margin: 16px 0 6px; font-weight: 600; }
input[type=text], input[type=number], input[type=tel], input[type=date], input[type=time], select {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    border: 2px solid #ccc;
    border-radius: 10px;
}
input:focus, select:focus { outline: none; border-color: #7b2ff7; }

.hint { font-size: 14px; color: #777; margin-top: 4px; }

.btn-primary {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    font-size: 20px;
    font-weight: bold;
    background: #7b2ff7;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}
.btn-primary:active { background: #6420d8; }

.btn-secondary {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 18px;
    font-size: 16px;
    background: #eee;
    color: #222;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid #ccc;
}

.radio-group { display: flex; gap: 16px; margin-top: 6px; }
.radio-group label {
    flex: 1;
    text-align: center;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 12px;
    font-weight: normal;
    cursor: pointer;
}
.radio-group input { display: none; }
.radio-group input:checked + span { font-weight: bold; color: #7b2ff7; }

.result-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    margin-top: 20px;
    border: 2px solid #7b2ff7;
    text-align: center;
}
.result-card .big-amount { font-size: 34px; font-weight: bold; color: #1a5c2a; margin: 8px 0; }
.result-card .waybill { font-size: 24px; font-weight: bold; color: #7b2ff7; letter-spacing: 1px; }

table.info-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
table.info-table td { padding: 8px; border-bottom: 1px solid #eee; font-size: 16px; }
table.info-table td:first-child { color: #666; }

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    display: flex;
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}
.bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 10px 2px;
    text-decoration: none;
    color: #555;
    font-size: 12px;
}
.bottom-nav a span { display: block; margin-top: 2px; }
.bottom-nav a.active { color: #7b2ff7; font-weight: bold; }

.notice-box {
    background: #fff8e1;
    border: 2px solid #ffca28;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    margin-top: 16px;
}
