<style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f0f2f5; padding: 20px; }
        .container { max-width: 1600px; margin: auto; }
        .card { background: white; border-radius: 24px; padding: 20px; margin-bottom: 25px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
        .stats-row { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-bottom: 20px; }
        .stat-box { flex: 1; min-width: 140px; background: #f8fafc; border-radius: 20px; padding: 12px; text-align: center; border-bottom: 3px solid #ccc; }
        .stat-label { font-size: 0.9rem; font-weight: 700; color: #2d3748; margin-bottom: 8px; }
        .stat-value { font-size: 1.6rem; font-weight: 800; color: #1a202c; }
        .stat-value input { font-size: 1.4rem; width: 100px; text-align: center; border: 1px solid #ddd; border-radius: 40px; padding: 5px; }
        .bg-primary { border-bottom-color: #1890ff; }
        .bg-success { border-bottom-color: #52c41a; }
        .bg-warning { border-bottom-color: #faad14; }
        .bg-danger { border-bottom-color: #f5222d; }
        .bg-info { border-bottom-color: #13c2c2; }

/* تنسيق قسم اختيار الرحلة */
.trip-selector {
    margin-bottom: 25px;
    background: #f9fafb;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.trip-selector label {
    font-size: 1.3rem;   /* تكبير الخط */
    font-weight: 800;
    color: #1e3c2c;
    display: block;
    margin-bottom: 12px;
}
.trip-select-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}
.trip-select {
    font-size: 1.1rem;   /* تكبير الخط في القائمة */
    padding: 12px 20px;
    border-radius: 40px;
    border: 2px solid #e2e8f0;
    background: white;
    font-weight: 600;
    min-width: 240px;
    cursor: pointer;
}
.trip-select:hover {
    border-color: #2a7f49;
}
.trip-info {
    background: #eef2f3;
    padding: 10px 20px;
    border-radius: 40px;
}
.departure-date {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d3748;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
@media (max-width: 600px) {
    .trip-select-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .trip-select, .trip-info {
        width: 100%;
        text-align: center;
    }
}


        /* ========== تحسين الأزرار والفلاتر بشكل احترافي ========== */
        .filter-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
            align-items: flex-end;
            background: rgba(255,255,255,0.96);
            backdrop-filter: blur(4px);
            border-radius: 60px;
            padding: 20px 35px;
            margin-bottom: 30px;
            box-shadow: 0 12px 25px -8px rgba(0,0,0,0.05);
            border: 1px solid #f0f2f5;
        }
        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .filter-group label {
            font-size: 1rem;
            font-weight: 700;
            color: #1e3c2c;
            letter-spacing: 0.3px;
        }
        .filter-group select {
            font-size: 1.1rem;
            padding: 12px 24px;
            border-radius: 60px;
            border: 2px solid #e2e8f0;
            background-color: white;
            font-weight: 600;
            color: #2d3748;
            cursor: pointer;
            transition: all 0.2s ease;
            min-width: 210px;
        }
        .filter-group select:hover {
            border-color: #2a7f49;
            box-shadow: 0 2px 8px rgba(42,127,73,0.1);
        }
        .filter-group select:focus {
            outline: none;
            border-color: #2a7f49;
            box-shadow: 0 0 0 3px rgba(42,127,73,0.2);
        }
        /* زر تطبيق التصفية داخل الفلاتر */
        .filter-group button {
            font-size: 1.1rem;
            padding: 12px 28px;
            border-radius: 60px;
            background: linear-gradient(135deg, #2a7f49, #1e5a36);
            color: white;
            font-weight: 700;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 8px rgba(0,0,0,0.05);
            margin-top: 4px;
        }
        .filter-group button:hover {
            transform: translateY(-2px);
            background: linear-gradient(135deg, #1e5a36, #2a7f49);
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        }
        /* جميع الأزرار الأخرى في الصفحة (طباعة، تعيين الكل، إلخ) */
        .btn, button:not(.stat-box button) {
            background: linear-gradient(135deg, #2a7f49, #1e5a36);
            color: white;
            padding: 12px 28px;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 700;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .btn:hover, button:not(.stat-box button):hover {
            transform: translateY(-3px);
            background: linear-gradient(135deg, #1e5a36, #2a7f49);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }
        .btn-info {
            background: linear-gradient(135deg, #17a2b8, #138496);
        }
        .btn-info:hover {
            background: linear-gradient(135deg, #138496, #17a2b8);
        }
        .btn-warning {
            background: linear-gradient(135deg, #ffc107, #e0a800);
            color: #212529;
        }
        .btn-warning:hover {
            background: linear-gradient(135deg, #e0a800, #ffc107);
        }
        .btn-secondary {
            background: linear-gradient(135deg, #6c757d, #5a6268);
        }
        .btn-secondary:hover {
            background: linear-gradient(135deg, #5a6268, #6c757d);
        }
        
        /* باقي التنسيقات (لا تتغير) */
        .bus-card { background: white; border-radius: 24px; padding: 20px; margin-bottom: 25px; border-right: 5px solid #2a7f49; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
        .bus-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px dashed #e2e8f0; }
        .bus-title { font-size: 1.3rem; font-weight: 800; color: #1e3c2c; }
        .bus-stats span { background: #eef2f3; padding: 4px 12px; border-radius: 30px; font-size: 0.8rem; margin-left: 6px; }
        .family-card { background: #fefefe; border: 1px solid #edf2f7; border-radius: 20px; padding: 15px; margin-bottom: 15px; }
        .family-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
        .family-name { font-weight: 800; font-size: 1rem; }
        .family-count { background: #2a7f49; color: white; padding: 2px 10px; border-radius: 30px; font-size: 0.7rem; }
        .family-count-cancelled { background: #dc3545; color: white; padding: 2px 10px; border-radius: 30px; font-size: 0.7rem; text-decoration: line-through; }
        .members-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
        .members-table th { background: #e9ecef; padding: 8px; font-size: 0.75rem; }
        .members-table td { padding: 6px; border-bottom: 1px solid #edf2f7; font-size: 0.8rem; }
        .phone-number { direction: ltr; font-weight: bold; color: #2a7f49; }
        .status-select { padding: 3px 8px; border-radius: 20px; font-size: 0.7rem; }
        .hidden-row { display: none; }
        .family-card.hidden-family { display: none; }
        @media print { .no-print { display: none !important; } .bus-card { break-inside: avoid; } }
    </style>