/* Общие стили */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f2f3f5;
    display: flex;
    justify-content: center;
    color: #303133;
}

.container {
    max-width: 450px;
    width: 100%;
    min-height: 100vh; /* Занимает всю высоту экрана */
    background-color: #f2f3f5;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none;
}

/* Шапка */
.header {
    background-image: url('header-bg.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: top center;
    color: #ffffff;
    height: 105px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-align: center;
    box-sizing: border-box;
    user-select: none;
}

.interactive-header {
    cursor: pointer;
    transition: filter 0.15s ease;
}
.interactive-header:hover {
    filter: brightness(1.05);
}

/* Контент */
.content {
    padding: 10px 20px 20px 20px;
    text-align: center;
    flex-grow: 1;
}

/* === СТИЛИ ЭКРАНА ВЫБОРА === */

.route-group {
    margin-bottom: 25px;
}

.route-group h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
    color: #303133;
}

.button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.route-button {
    background-color: #ffffff;
    color: #209ffe;
    border: 2px solid #209ffe;
    border-radius: 14px;
    padding: 16px;
    font-size: 1.35em;
    font-weight: bold;
    cursor: pointer;
    flex-grow: 1;
    min-width: 60px;
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(32, 159, 254, 0.08);
}

.route-button:hover {
    background-color: #209ffe;
    color: #ffffff;
}

.route-button:active {
    transform: scale(0.97);
}


/* === СТИЛИ ЭКРАНА БИЛЕТА === */

.logo-section {
    padding: 0;
    margin: 0;
}

.sbp-logo {
    width: 140px;
    max-width: 100%;
    height: auto;
}

.status-message {
    font-size: 1.3em;
    margin-bottom: 25px;
}

.fare-details h1 {
    font-size: 1.8em;
    margin: 0;
    font-weight: 500;
}

.fare-details .price {
    font-size: 4.5em;
    font-weight: bold;
    margin: 0;
    line-height: 1.1;
}

.timestamp {
    margin-top: 15px;
    font-size: 1.1em;
}

.vehicle-id {
    color: #b0b0b0;
    font-size: 1em;
    margin-top: 4px;
}

.timer {
    margin: 35px 0;
}

.timer-label {
    font-size: 1.1em;
}

.timer-value {
    font-size: 2.7em;
    font-weight: bold;
    margin-top: 5px;
}

.qr-code-container {
    padding: 15px 0;
}
/* Стили для сгенерированного QR-кода */
#qrcode img {
    display: block;
    margin: 0 auto;
    width: 85%;
    max-width: 280px;
    height: auto;
    image-rendering: pixelated; /* Делает пиксели четкими */
}

.ticket-info {
    font-size: 1em;
    line-height: 1.6;
    margin-top: 15px;
}

.instructions {
    margin: 25px 10px;
    font-size: 1em;
    line-height: 1.6;
}

.button-container {
    padding: 0 15px 24px 15px;
}

.action-button {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 13px;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 0.1px;
    transition: filter 0.15s ease, transform 0.1s ease, background-color 0.15s ease;
}

.action-button.primary {
    background: linear-gradient(180deg, #0dcdd9 0%, #1da3fd 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(13, 205, 217, 0.25);
}

.action-button.primary:hover {
    filter: brightness(1.04);
}

.action-button.primary:active {
    transform: scale(0.99);
}

.action-button:not(.primary) {
    background-color: #e4e7eb;
    color: #303133;
}

.action-button:not(.primary):hover {
    background-color: #d8dce2;
}

/* Поля ввода */
.text-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #dcdfe6;
    font-size: 1.05em;
    box-sizing: border-box;
    outline: none;
    transition: box-shadow 0.15s, border-color 0.15s;
    background: white;
    color: #303133;
}
.text-input:focus {
    box-shadow: 0 0 0 3px rgba(32, 159, 254, 0.15);
    border-color: #209ffe;
}
