/* ===================================================================
   Data List View Styles
   - For Visa, License, and Trip/Omra Booking Lists
   - Scoped with .data-list-view to prevent global conflicts
=================================================================== */

/* Main Wrapper & Layout
-------------------------------------------------- */
.data-list-view .container-xxl {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Statistics Summary Cards (Common for all pages)
-------------------------------------------------- */
.data-list-view .stats-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.data-list-view .stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.data-list-view .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.data-list-view .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.data-list-view .stat-card.pending .stat-icon { background: linear-gradient(135deg, #ffc107, #e0a800); }
.data-list-view .stat-card.approved .stat-icon,
.data-list-view .stat-card.confirmed .stat-icon { background: linear-gradient(135deg, #28a745, #20c997); }
.data-list-view .stat-card.discussion .stat-icon { background: linear-gradient(135deg, #17a2b8, #138496); }
.data-list-view .stat-card.total .stat-icon { background: linear-gradient(135deg, #6f42c1, #5a32a3); }

.data-list-view .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.data-list-view .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* Custom Data Table (Common for all pages)
-------------------------------------------------- */
.data-list-view .custom-table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.data-list-view .custom-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
    padding: 15px 12px;
    vertical-align: middle;
}

.data-list-view .custom-table tbody td {
    padding: 15px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
}

.data-list-view .custom-table tbody tr:last-child td {
    border-bottom: none;
}

.data-list-view .data-row:hover {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

/* Status-based Row Highlighting */
.data-list-view .data-row[data-status="approved"]:hover,
.data-list-view .data-row[data-status="confirmed"]:hover { background-color: #f0f8f0 !important; }
.data-list-view .data-row[data-status="pending"]:hover { background-color: #fffbf0 !important; }
.data-list-view .data-row[data-status="rejected"]:hover { background-color: #fdf2f2 !important; }
.data-list-view .data-row[data-status="under_discussion"]:hover { background-color: #f0f4ff !important; }

/* Animation for table rows */
.data-list-view .data-row {
    animation: fadeInUp 0.5s ease-out;
    opacity: 0; /* Start hidden */
    animation-fill-mode: forwards; /* Stay visible after animation */
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Common Cell Styles
-------------------------------------------------- */
.data-list-view .id-cell,
.data-list-view .booking-reference-cell {
    text-align: center;
}

.data-list-view .id-number,
.data-list-view .booking-reference {
    font-size: 1.1rem;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
    display: block;
}

.data-list-view .primary-info-cell strong,
.data-list-view .secondary-info-cell strong {
    color: #2c3e50;
    font-size: 0.95rem;
}

.data-list-view .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}
.data-list-view .info-item:last-child {
    margin-bottom: 0;
}

.data-list-view .price-info strong {
    font-size: 1rem;
    font-weight: 700;
}

/* Status Badges (Common for all pages)
-------------------------------------------------- */
.data-list-view .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-list-view .status-pending { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }
.data-list-view .status-under_discussion { background: #cce7ff; color: #004085; border: 1px solid #b3d7ff; }
.data-list-view .status-approved,
.data-list-view .status-confirmed { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.data-list-view .status-rejected { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.data-list-view .status-canceled,
.data-list-view .status-cancelled { background: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; }
.data-list-view .status-completed { background: #e9ecef; color: #495057; border: 1px solid #ced4da; }


/* Document/Info Indicators
-------------------------------------------------- */
.data-list-view .document-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.data-list-view .document-badge, .data-list-view .person-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.data-list-view .document-badge.available { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.data-list-view .document-badge.missing { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.data-list-view .person-badge { background: #cce7ff; color: #004085; border: 1px solid #b3d7ff; }

/* Action Buttons (Common for all pages)
-------------------------------------------------- */
.data-list-view .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 120px;
}

.data-list-view .action-buttons .btn {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.data-list-view .action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-list-view .payment-btn { color: #28a745 !important; border-color: #28a745 !important; }
.data-list-view .payment-btn:hover { background-color: #28a745 !important; color: #fff !important; }

/* Trip/Omra Booking Specific Styles
-------------------------------------------------- */
.data-list-view .booking-navigation .nav-pills .nav-link {
    margin: 0 5px;
    border-radius: 20px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}
.data-list-view .booking-navigation .nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.data-list-view .quick-navigation {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
}
.data-list-view .package-type-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}
.data-list-view .omra-badge { background: #d4edda; color: #155724; }
.data-list-view .trip-badge { background: #cce7ff; color: #004085; }
.data-list-view .guests-info .guest-item { margin-right: 10px; }
.data-list-view .guests-info .guest-item i { font-size: 1.1em; }


/* No Data Message (Common for all pages)
-------------------------------------------------- */
.data-list-view .no-data-message {
    padding: 40px 20px;
}

/* Info & Help Section (Common for all pages)
-------------------------------------------------- */
.data-list-view .info-help-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
}

.data-list-view .info-card, .data-list-view .help-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 100%;
}

.data-list-view .info-card h5, .data-list-view .help-card h5 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.data-list-view .process-steps { display: flex; flex-direction: column; gap: 15px; }
.data-list-view .step { display: flex; align-items: center; gap: 15px; }
.data-list-view .step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.data-list-view .step-text { color: #495057; font-size: 0.9rem; line-height: 1.4; }
.data-list-view .contact-options .btn { font-size: 0.85rem; margin-bottom: 5px; }

/* Alert Styles (Common)
-------------------------------------------------- */
.data-list-view .alert-white {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007bff;
}
.data-list-view .alert-white .close { position: absolute; top: 10px; right: 15px; color: #6c757d; opacity: 0.7; font-size: 1.2rem; background: none; border: none; }
.data-list-view .alert-white .close:hover { opacity: 1; }
.data-list-view .alert-white .icon { display: inline-block; margin-right: 10px; color: #007bff; }


/* Responsive Design
-------------------------------------------------- */
@media (max-width: 1200px) {
    .data-list-view .custom-table { font-size: 0.9rem; }
    .data-list-view .action-buttons { min-width: 100px; }
    .data-list-view .stat-card { margin-bottom: 15px; }
}

@media (max-width: 992px) {
    .data-list-view .action-buttons { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
    .data-list-view .info-help-section .row > div { margin-bottom: 20px; }
}

@media (max-width: 768px) {
    .data-list-view .custom-table { 
        font-size: 0.85rem; 
        min-width: 0; /* Override fixed width from teble.css */
    }
    .data-list-view .custom-table thead { display: none; } /* Hide headers on small screens */
    .data-list-view .custom-table, .data-list-view .custom-table tbody, .data-list-view .custom-table tr, .data-list-view .custom-table td { display: block; }
    .data-list-view .custom-table tr { border: 1px solid #ddd; border-radius: 8px; margin-bottom: 15px; }
    .data-list-view .custom-table td {
        padding: 10px 15px;
        border: none;
        border-bottom: 1px solid #eee;
        text-align: right; /* Align content to the right */
        position: relative;
        padding-left: 50%; /* Make space for the label */
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    .data-list-view .custom-table td:before {
        content: attr(data-label); /* Use data-label for pseudo-element content */
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #333;
    }
    .data-list-view .action-buttons { flex-direction: row; justify-content: flex-end; }
    .data-list-view .stat-card { flex-direction: column; text-align: center; gap: 10px; }
}

/* Print styles
-------------------------------------------------- */
@media print {
    body * { display: none; }
    .data-list-view, .data-list-view * { display: block !important; }
    .data-list-view .action-buttons,
    .data-list-view .stats-summary,
    .data-list-view .info-help-section,
    .data-list-view .alert { display: none !important; }
    
    .data-list-view .custom-table { box-shadow: none; border: 1px solid #ddd; }
    .data-list-view .custom-table thead th { background: #f8f9fa !important; color: #000 !important; }
}