/* /Layout/MainLayout.razor.rz.scp.css */
/* Global CSS reset to ensure full viewport coverage */
*[b-wjth8wqr65], *[b-wjth8wqr65]::before, *[b-wjth8wqr65]::after {
    box-sizing: border-box;
}

/* Ensure html and body take full height with no margins/padding */
html[b-wjth8wqr65], body[b-wjth8wqr65] {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #f8f9fa;
    direction: rtl;
}

/* Ensure the Blazor app div takes full height */
#app[b-wjth8wqr65] {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Mobile-first layout - no traditional sidebar */
.mobile-layout[b-wjth8wqr65] {
    min-height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    direction: rtl;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

/* Content area styling - FIXED */
.content[b-wjth8wqr65] {
    flex: 1;
    padding: 0; /* Remove all padding */
    overflow-y: auto;
    max-width: 100%;
    width: 100%;
    margin-top: 60px; /* Keep only navbar clearance */
}

/* Dashboard container override */
.dashboard-container[b-wjth8wqr65] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    direction: rtl;
    display: flex;
    flex-direction: column;
    flex: 1;
    /* CRITICAL FIX: Eliminate space */
    margin-top: -60px !important;
    padding: 70px 10px 10px 10px !important;
    min-height: 0;
}

/* Fix any Bootstrap container issues */
.container-fluid[b-wjth8wqr65] {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
}

/* Remove any default margins that might cause layout issues */
.row[b-wjth8wqr65] {
    margin-left: 0;
    margin-right: 0;
}

/* Ensure full height for layout components */
.blazor-error-boundary[b-wjth8wqr65],
.loading-progress[b-wjth8wqr65] {
    min-height: 100vh;
}

/* Media queries for responsive design */
@media (min-width: 1200px) {
    .content[b-wjth8wqr65] {
        max-width: 1200px;
        margin: 60px auto 0; /* Center content on very large screens */
    }
}

@media (max-width: 768px) {
    .content[b-wjth8wqr65] {
        margin-top: 60px;
    }
    
    .dashboard-container[b-wjth8wqr65] {
        margin-top: -5px !important;
    }
}

@media (max-width: 480px) {
    .content[b-wjth8wqr65] {
        margin-top: 60px;
    }
    
    .dashboard-container[b-wjth8wqr65] {
        margin-top: 0 !important;
    }
}

/* Remove old layout classes that might interfere */
.main-content[b-wjth8wqr65] {
    display: none !important;
}

.page[b-wjth8wqr65] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-wjth8wqr65] {
    flex: 1;
}

.sidebar[b-wjth8wqr65] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-wjth8wqr65] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-wjth8wqr65]  a, .top-row[b-wjth8wqr65]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-wjth8wqr65]  a:hover, .top-row[b-wjth8wqr65]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-wjth8wqr65]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-wjth8wqr65] {
        justify-content: space-between;
    }

    .top-row[b-wjth8wqr65]  a, .top-row[b-wjth8wqr65]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-wjth8wqr65] {
        flex-direction: row;
    }

    .sidebar[b-wjth8wqr65] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-wjth8wqr65] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-wjth8wqr65]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-wjth8wqr65], article[b-wjth8wqr65] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

.header-section[b-wjth8wqr65] {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    color: white;
    flex-shrink: 0;
    margin-top: 0; /* Remove extra top margin */
}
/* /Pages/Dashboard.razor.rz.scp.css */
/* Dashboard layout styles for proper integration with MainLayout */

.dashboard-container[b-e0zgngv66e] {
    /* FIXED: Remove excessive padding and add negative margin to eliminate space */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px; /* Reduced from 20px */
    direction: rtl;
    /* Use flexbox to fill available space from MainLayout */
    display: flex;
    flex-direction: column;
    /* Let MainLayout handle the height */
    flex: 1;
    /* CRITICAL FIX: Negative margin to pull content up and eliminate gray space */
    margin-top: -60px !important; /* Pull up to eliminate space */
    padding-top: 70px !important; /* Add padding to clear navbar */
    /* Only minimum height needed for small content */
    min-height: 0;
}

.header-section[b-e0zgngv66e] {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    color: white;
    flex-shrink: 0;
    /* Remove extra top margin */
    margin-top: 0;
}

.user-info[b-e0zgngv66e] {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.user-avatar i[b-e0zgngv66e] {
    font-size: 3rem;
    margin-left: 15px;
}

.user-details h4[b-e0zgngv66e] {
    margin: 0;
    font-weight: 600;
}

.current-time[b-e0zgngv66e] {
    text-align: center;
}

.time-display[b-e0zgngv66e] {
    font-size: 2.5rem;
    font-weight: 300;
    font-family: 'Courier New', monospace;
    margin-bottom: 5px;
}

.date-display[b-e0zgngv66e] {
    font-size: 1.1rem;
    opacity: 0.9;
}

.status-card[b-e0zgngv66e] {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.status-card .card-header[b-e0zgngv66e] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px 15px 0 0;
    padding: 15px 20px;
    border: none;
}

.status-card .card-body[b-e0zgngv66e] {
    padding: 20px;
}

.status-display[b-e0zgngv66e] {
    display: flex;
    align-items: center;
}

.status-icon[b-e0zgngv66e] {
    font-size: 2rem;
    margin-left: 15px;
}

.action-buttons[b-e0zgngv66e] {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.btn-action[b-e0zgngv66e] {
    height: 100px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-action i[b-e0zgngv66e] {
    font-size: 2rem;
}

.btn-action:hover:not(:disabled)[b-e0zgngv66e] {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quick-actions[b-e0zgngv66e], .recent-activity[b-e0zgngv66e] {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.section-title[b-e0zgngv66e] {
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.alert-floating[b-e0zgngv66e] {
    position: fixed;
    top: 70px; /* Account for navbar height */
    right: 20px;
    left: 20px;
    z-index: 1050;
    border-radius: 10px;
}

.activity-list[b-e0zgngv66e] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item[b-e0zgngv66e] {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-icon[b-e0zgngv66e] {
    margin-left: 10px;
}

.activity-text[b-e0zgngv66e] {
    flex-grow: 1;
    text-align: right;
    color: white;
}

.activity-time[b-e0zgngv66e] {
    font-weight: 600;
    font-size: 1.1rem;
}

.activity-method[b-e0zgngv66e] {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Modal styles */
.modal-backdrop[b-e0zgngv66e] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.modal-dialog[b-e0zgngv66e] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content[b-e0zgngv66e] {
    border: none;
    border-radius: 15px;
}

.modal-header[b-e0zgngv66e] {
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 15px 15px 0 0;
}

.modal-title[b-e0zgngv66e] {
    margin: 0;
    font-weight: 600;
}

.modal-body[b-e0zgngv66e] {
    padding: 20px;
}

.modal-footer[b-e0zgngv66e] {
    border-top: 1px solid #dee2e6;
    padding: 15px 20px;
    border-radius: 0 0 15px 15px;
}

.btn-close[b-e0zgngv66e] {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-container[b-e0zgngv66e] {
        padding: 10px;
        margin-top: -50px !important; /* Less negative margin on mobile */
        padding-top: 60px !important;
    }

    .header-section[b-e0zgngv66e] {
        padding: 20px;
        margin-bottom: 15px;
    }

    .time-display[b-e0zgngv66e] {
        font-size: 2rem;
    }

    .btn-action[b-e0zgngv66e] {
        height: 80px;
    }

    .btn-action i[b-e0zgngv66e] {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-container[b-e0zgngv66e] {
        padding: 8px;
        margin-top: -40px !important; /* Even less negative margin on small screens */
        padding-top: 50px !important;
    }

    .header-section[b-e0zgngv66e] {
        padding: 15px;
    }

    .time-display[b-e0zgngv66e] {
        font-size: 1.8rem;
    }

    .user-avatar i[b-e0zgngv66e] {
        font-size: 2.5rem;
    }
}
/* /Pages/DeviceInfo.razor.rz.scp.css */
.info-section[b-trq7iw83sl] {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.info-item[b-trq7iw83sl] {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    background: white;
    border-radius: 0.375rem;
    min-height: 70px;
}

.info-item label[b-trq7iw83sl] {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.info-item span[b-trq7iw83sl] {
    font-size: 1rem;
    color: #212529;
    font-weight: 600;
}

.font-monospace[b-trq7iw83sl] {
    font-family: 'Courier New', Courier, monospace;
}

@media (max-width: 768px) {
    .info-item[b-trq7iw83sl] {
        min-height: 60px;
    }
}
/* /Pages/Location.razor.rz.scp.css */
<script >
window.getCurrentLocation = function()[b-aa9otez7z7] {
    return new Promise((resolve, reject) => {
            if (!navigator.geolocation) {
                resolve({ Success: false, ErrorMessage: "Geolocation is not supported" });
                return;
            }

            navigator.geolocation.getCurrentPosition(
                position => {
                    resolve({
                        Success: true,
                        Latitude: position.coords.latitude,
                        Longitude: position.coords.longitude,
                        Accuracy: position.coords.accuracy
                    });
                },
                error => {
                    let errorMessage = "Unknown error";
                    switch(error.code) {
                        case error.PERMISSION_DENIED:
                            errorMessage = "تم رفض الإذن لتحديد الموقع";
                            break;
                        case error.POSITION_UNAVAILABLE:
                            errorMessage = "معلومات الموقع غير متوفرة";
                            break;
                        case error.TIMEOUT:
                            errorMessage = "انتهت مهلة تحديد الموقع";
                            break;
                    }
                    resolve({ Success: false, ErrorMessage: errorMessage });
                },
                {
                    enableHighAccuracy: true,
                    timeout: 10000,
                    maximumAge: 0
                }
            );
        });
}

;

window.getDeviceInfo = function()[b-aa9otez7z7] {
    return navigator.userAgent || "Unknown Device";
}

;
</script >
/* Location page styling - matching Dashboard theme */
.location-container[b-aa9otez7z7] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    direction: rtl;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: calc(100vh - 120px);
}

.header-section[b-aa9otez7z7] {
    margin-bottom: 20px;
}

.location-header[b-aa9otez7z7] {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.location-icon[b-aa9otez7z7] {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-text h4[b-aa9otez7z7] {
    color: white;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.header-text p[b-aa9otez7z7] {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

/* Status card styling */
.status-card[b-aa9otez7z7] {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
}

.card-header[b-aa9otez7z7] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 15px 20px;
    font-weight: 600;
}

.card-body[b-aa9otez7z7] {
    padding: 20px;
    border-radius: 0 0 15px 15px;
}

/* Location info styling */
.location-info[b-aa9otez7z7] {
    margin-bottom: 20px;
}

.info-row[b-aa9otez7z7] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child[b-aa9otez7z7] {
    border-bottom: none;
}

.coord-value[b-aa9otez7z7] {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    color: #495057;
    font-weight: 500;
}

.location-actions[b-aa9otez7z7] {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Action buttons styling */
.action-buttons[b-aa9otez7z7] {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-action[b-aa9otez7z7] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    min-height: 80px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary.btn-action[b-aa9otez7z7] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary.btn-action:hover:not(:disabled)[b-aa9otez7z7] {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-action i[b-aa9otez7z7] {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.btn-action .spinner-border-sm[b-aa9otez7z7] {
    width: 1.2rem;
    height: 1.2rem;
}

/* Loading and empty states */
.loading-state[b-aa9otez7z7], .empty-state[b-aa9otez7z7] {
    text-align: center;
    padding: 40px 20px;
}

.loading-state .spinner-border[b-aa9otez7z7] {
    width: 3rem;
    height: 3rem;
    border-width: 3px;
}

.empty-state i[b-aa9otez7z7] {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h5[b-aa9otez7z7] {
    color: #6c757d;
    margin-bottom: 10px;
}

.empty-state .text-muted[b-aa9otez7z7] {
    font-size: 0.95rem;
}

/* Alert styling */
.alert[b-aa9otez7z7] {
    border-radius: 12px;
    border: none;
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-danger[b-aa9otez7z7] {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.alert-success[b-aa9otez7z7] {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
}

.alert-info[b-aa9otez7z7] {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

/* Badge styling */
.badge[b-aa9otez7z7] {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

.bg-success[b-aa9otez7z7] {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%) !important;
}

.bg-warning[b-aa9otez7z7] {
    background: linear-gradient(135deg, #ffd43b 0%, #fab005 100%) !important;
}

.bg-danger[b-aa9otez7z7] {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
}

/* Form styling */
.form-control[b-aa9otez7z7] {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus[b-aa9otez7z7] {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label[b-aa9otez7z7] {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Button styling */
.btn[b-aa9otez7z7] {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary[b-aa9otez7z7], .btn-outline-primary[b-aa9otez7z7] {
    border-width: 1px;
}

.btn-outline-secondary:hover[b-aa9otez7z7] {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
}

.btn-outline-primary:hover[b-aa9otez7z7] {
    background-color: #667eea;
    border-color: #667eea;
    transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 768px) {
    .location-container[b-aa9otez7z7] {
        padding: 15px;
    }
    
    .location-header[b-aa9otez7z7] {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .location-icon[b-aa9otez7z7] {
        font-size: 2.5rem;
    }
    
    .card-body[b-aa9otez7z7] {
        padding: 15px;
    }
    
    .location-actions[b-aa9otez7z7] {
        flex-direction: column;
    }
    
    .location-actions .btn[b-aa9otez7z7] {
        width: 100%;
    }
    
    .info-row[b-aa9otez7z7] {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .coord-value[b-aa9otez7z7] {
        width: 100%;
        text-align: center;
    }
}
