:root {
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-primary: #374151;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --bg-gray: #f9fafb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.reservation-success {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

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

.success-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.success-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.success-message {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Ticket Design */
.ticket-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    margin: 30px 0;
    animation: slideUp 0.6s ease-out;
}

.ticket-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.airline-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.airline-info i {
    font-size: 2rem;
}

.reservation-code {
    text-align: right;
}

.code-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.code-value {
    font-size: 1.3rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
}

/* Route Section */
.route-section {
    padding: 30px;
    background: #f8fafc;
}

.trip-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.trip-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.return-header {
    margin-top: 30px;
    border-bottom-color: var(--success);
}

.return-header h3 {
    color: var(--success);
}

.route-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.departure,
.arrival {
    text-align: center;
    flex: 1;
}

.date-display {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.location {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.city {
    font-weight: 600;
    color: var(--text-primary);
}

.time {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

.route-line {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.line {
    height: 2px;
    background: #cbd5e1;
    flex: 1;
    position: relative;
}

.line::before {
    content: '';
    position: absolute;
    left: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

.duration {
    position: absolute;
    top: -70px;
    background: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #64748b;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.route-icon {
    position: absolute;
    background: var(--primary);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 1rem;
}

.date-info {
    text-align: center;
    padding: 15px 0;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

/* Passenger Section */
.passenger-section {
    padding: 25px 30px;
}

.passenger-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 1.2rem;
}

.passenger-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.passenger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.passenger-item .label {
    font-weight: 600;
    color: var(--text-secondary);
}

.passenger-item .value {
    font-weight: 500;
    color: var(--text-primary);
}

/* Details Section */
.details-section {
    padding: 25px 30px;
    background: #f8fafc;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.detail-item .label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

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

.detail-item.status-confirmed i {
    color: var(--success);
}

.detail-item.status-pending i {
    color: var(--warning);
}

.detail-item.status-cancelled i {
    color: var(--danger);
}

.price {
    color: var(--success) !important;
    font-size: 1.2rem !important;
}

/* Special Requests */
.special-requests {
    padding: 20px 30px;
    background: #fef3c7;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* Barcode */
.barcode-section {
    padding: 20px 30px;
    text-align: center;
    border-top: 2px dashed #cbd5e1;
}

.barcode {
    height: 60px;
    background: repeating-linear-gradient(90deg,
            #000 0px,
            #000 2px,
            #fff 2px,
            #fff 4px);
    margin-bottom: 10px;
    border-radius: 4px;
}

.barcode-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #64748b;
}

/* Perforations */
.perforation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
}

.perforation-left {
    left: -15px;
}

.perforation-right {
    right: -15px;
}

/* Actions */
.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}



.btn-secondary {
    background: #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.btn-download {
    background: #10b981;
}

.btn-download:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Info Note */
.info-note {
    background: white;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-note i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 2px;
}

.info-note p {
    margin-bottom: 10px;
    color: #1e293b;
    font-weight: 600;
}

.info-note ul {
    list-style: none;
    padding-left: 0;
}

.info-note li {
    color: #64748b;
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.info-note li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-ticket {
        padding: 0 10px;
    }

    .success-header h1 {
        font-size: 2rem;
    }

    .ticket-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .reservation-code {
        text-align: center;
    }

    .route-info {
        flex-direction: column;
        gap: 30px;
    }

    .departure {
        display: flex;
        flex-direction: row;
        gap: 20px;
        /* Elemanlar arası boşluk */
        align-items: center;
        order: 1;
    }

    .route-line {
        padding: 20px;
        order: 2;
        transform: none;
        width: 80%;
        margin: 0 auto;
        flex: none;
    }

    .arrival {
        display: flex;
        flex-direction: row;
        gap: 20px;
        /* Elemanlar arası boşluk */
        align-items: center;
        /* Dikey hizalama */
        order: 3;
    }
    .time {
        padding-bottom: 11px;
    }

    .duration {
        top: -30px;
        font-size: 0.8rem;
    }

    .route-icon {
        font-size: 0.9rem;
        padding: 6px;
    }

    .passenger-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .info-note {
        flex-direction: column;
        text-align: center;
    }

    .perforation {
        display: none;
    }
}

@media (max-width: 480px) {
    .ticket-container {
        margin: 20px 10px;
    }

    .route-section,
    .passenger-section,
    .details-section,
    .special-requests,
    .barcode-section {
        padding: 15px 20px;
    }

    .success-header h1 {
        font-size: 1.8rem;
    }

    .time {
        font-size: 1.5rem;
    }

    .airline-info {
        font-size: 1.2rem;
    }

    .airline-info i {
        font-size: 1.5rem;
    }
}

/* Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}