.orders-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e0e0e0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.orders-header h2 {
    margin: 0;
    color: #fff;
    font-size: 2em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.no-orders-panel {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    border: 3px dashed #9ca3af;
    animation: slideIn 0.6s ease-out;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.no-orders-message h3 {
    color: #4b5563;
    margin-bottom: 15px;
    font-size: 1.8em;
    font-weight: 600;
}

.no-orders-message p {
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.filter-section {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-section::before {
    content: "🔍";
    font-size: 1.3em;
}

.status-filter {
    padding: 10px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.status-filter:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.status-filter:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.orders-grid {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 1px solid #e5e7eb;
}

.grid-header {
    display: grid;
    grid-template-columns: 90px 140px 90px 140px 140px 130px;
    gap: 15px;
    padding: 18px 25px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.grid-row {
    display: grid;
    grid-template-columns: 90px 140px 90px 140px 140px 130px;
    gap: 15px;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
    transition: all 0.3s ease;
    background: white;
}

.grid-row:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
    transform: translateX(5px);
    box-shadow: -4px 0 0 #667eea;
}

.grid-row:last-child {
    border-bottom: none;
}

.col-order-id {
    font-weight: 800;
    color: #667eea;
    font-size: 1.1em;
}

.col-date {
    color: #374151;
}

.col-date small {
    color: #9ca3af;
    font-size: 0.85em;
}

.ticket-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.amount-total {
    font-weight: 800;
    color: #1f2937;
    font-size: 1.15em;
}

.amount-paid {
    font-size: 0.85em;
    color: #10b981;
    font-weight: 600;
    margin-top: 4px;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.status-badge.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-badge.pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
}

.status-badge.partial {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.summary-section {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    flex: 1;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.stat-label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.8em;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.refresh-button, .browse-button, .view-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.refresh-button {
    background: linear-gradient(135deg, #fff 0%, #f3f4f6 100%);
    color: #667eea;
    border: 2px solid rgba(255,255,255,0.3);
}

.refresh-button:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.browse-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 14px 28px;
    font-size: 1.1em;
}

.browse-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.view-button {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    font-size: 0.85em;
}

.view-button:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.message.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

@media (max-width: 768px) {
    .orders-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }

    .orders-header h2 {
        font-size: 1.5em;
    }

    .filter-section {
        flex-direction: column;
        text-align: center;
    }

    .grid-header, .grid-row {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: left;
    }

    .grid-header {
        display: none;
    }

    .grid-row {
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        margin-bottom: 15px;
        padding: 20px;
    }

    .grid-row:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    }

    .col-order-id:before { content: "Order #: "; font-weight: normal; color: #6b7280; }
    .col-date:before { content: "Date: "; font-weight: bold; color: #374151; }
    .col-tickets:before { content: "Tickets: "; font-weight: bold; color: #374151; }
    .col-amount:before { content: "Amount: "; font-weight: bold; color: #374151; }
    .col-status:before { content: "Status: "; font-weight: bold; color: #374151; }

    .summary-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        padding: 15px;
    }
}
