/* تنسيقات الواجهة الكبرى والموسعة - Bridggo Start Page */
.bridggo-start-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    padding: 30px;
    overflow-y: auto;
}

.bridggo-start-container {
    width: 100%;
    max-width: 1150px;
    background: #ffffff;
    padding: 64px 60px;
    border-radius: 36px;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.09);
    text-align: center;
    direction: rtl;
    box-sizing: border-box;
}

/* الشعار الأصلي في الأعلى */
.bridggo-brand-box {
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bridggo-real-logo {
    max-height: 110px;
    width: auto;
    object-fit: contain;
}

/* الترحيب والنصوص */
.bridggo-start-header {
    margin-bottom: 44px;
}

.bridggo-welcome-text {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px 0;
    unicode-bidi: isolate;
}

.wave-emoji {
    display: inline-block;
    animation: waveAnimation 1.8s infinite;
    transform-origin: 70% 70%;
}

@keyframes waveAnimation {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.bridggo-instruction-text {
    font-size: 19px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* الكروت الكبرى الواسعة */
.bridggo-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .bridggo-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.bridggo-option-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 28px;
    padding: 44px 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
}

.bridggo-option-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.07);
}

.customer-card:hover {
    border-color: #2563eb;
}

.supplier-card:hover {
    border-color: #16a34a;
}

.card-icon-container {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.customer-card .card-icon-container {
    background: #eff6ff;
    color: #2563eb;
}

.supplier-card .card-icon-container {
    background: #f0fdf4;
    color: #16a34a;
}

.card-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px 0;
}

.card-content p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 32px 0;
    line-height: 1.7;
    min-height: 55px;
}

/* الأزرار داخل الكروت */
.card-action-wrap {
    width: 100%;
}

.bridggo-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.bridggo-btn-customer {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.bridggo-btn-customer:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.bridggo-btn-supplier {
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.bridggo-btn-supplier:hover {
    background: #15803d;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

/* تذييل الصفحة */
.bridggo-start-footer p {
    font-size: 15px;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

/* --- Bridggo Modern Dashboard Theme --- */
.bridggo-dashboard-wrapper {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    background: #f8fafc;
    padding: 35px 25px;
    border-radius: 20px;
    box-sizing: border-box;
}

/* Header Section */
.bridggo-dash-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid #e2e8f0;
}

.user-info h2 {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.user-info p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    font-weight: 400;
}

/* Statistics Grid */
.bridggo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.bridggo-stat-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bridggo-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.icon-blue { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #2563eb; }
.icon-amber { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); color: #d97706; }
.icon-green { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); color: #16a34a; }

.stat-content h3 {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
}

/* Card Sections & Tables */
.bridggo-card-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
}

.section-header h3 {
    margin: 0 0 24px 0;
    font-size: 20px;
    color: #0f172a;
    font-weight: 700;
}

.bridggo-table-container {
    width: 100%;
    overflow-x: auto;
}

.bridggo-modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: right;
}

.bridggo-modern-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.bridggo-modern-table td {
    padding: 18px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
}

.bridggo-modern-table tbody tr {
    transition: background 0.2s ease;
}

.bridggo-modern-table tbody tr:hover {
    background: #f8fafc;
}

/* Badges */
.bridggo-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.badge-active { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-completed { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

/* Buttons */
.bridggo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bridggo-btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.bridggo-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.bridggo-btn-subtle {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.bridggo-btn-subtle:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.bridggo-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.bridggo-no-data {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 15px;
}

