/* Ticket Styles */
.ticket-section {
    padding: 60px 0;
    background-color: #f7f7f7;
    min-height: calc(100vh - 200px);
}

.ticket-container {
    max-width: 800px;
    margin: 0 auto;
}

.ticket-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.ticket-paper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.ticket-header {
    background: var(--primary-red);
    color: var(--white);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-header h1 {
    color: var(--white);
    margin: 0;
    font-size: 24px;
}

.pnr-box {
    text-align: right;
}

.pnr-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pnr-number {
    font-size: 24px;
    font-weight: 700;
}

.ticket-body {
    padding: 40px;
}

/* Journey Info */
.journey-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.journey-node {
    flex: 1;
}

.node-time {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
}

.node-date {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 5px;
}

.node-city {
    font-size: 20px;
    font-weight: 600;
    margin-top: 10px;
}

.journey-path {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

.path-line {
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    position: relative;
}

.path-line::before, .path-line::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #e0e0e0;
    border-radius: 50%;
    position: absolute;
    top: -4px;
}

.path-line::before { left: 0; }
.path-line::after { right: 0; }

.bus-icon-moving {
    position: absolute;
    top: -15px;
    background: var(--white);
    padding: 0 10px;
    color: var(--primary-red);
    font-size: 20px;
}

.duration-tag {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    background: #f1f1f1;
    padding: 2px 10px;
    border-radius: 20px;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    border-top: 1px dashed #e0e0e0;
    border-bottom: 1px dashed #e0e0e0;
    padding: 30px 0;
    margin-bottom: 30px;
}

.detail-item label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.detail-item span {
    font-weight: 600;
    color: var(--primary-dark);
}

/* Passenger Table */
.passenger-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

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

.passenger-table th {
    text-align: left;
    font-size: 13px;
    color: var(--text-muted);
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
}

.passenger-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #f1f1f1;
    font-weight: 500;
}

/* Footer Info */
.ticket-footer {
    padding: 30px 40px;
    background: #fcfcfc;
    border-top: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boarding-details {
    flex: 2;
}

.boarding-details h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.boarding-details p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.qr-code-section {
    flex: 1;
    text-align: right;
}

.qr-code-section img {
    width: 100px;
    height: 100px;
}

/* Print Media */
@media print {
    header, footer, .ticket-actions {
        display: none;
    }
    .ticket-section {
        padding: 0;
        background: white;
    }
    .ticket-paper {
        box-shadow: none;
        border: 1px solid #eee;
    }
}

@media (max-width: 600px) {
    .journey-main {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .details-grid {
        grid-template-columns: 1fr;
    }
    .ticket-footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .qr-code-section {
        text-align: center;
    }
}
