/* Import Roboto font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;900&display=swap');

/* Apply Roboto font to all text elements with high specificity */
* {
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", "Noto Sans", sans-serif !important;
}

html, body, .layout-main, .container, .page-container, .content, .page-content {
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", "Noto Sans", sans-serif !important;
}

/* Form elements and inputs */
.form-control, .btn, .awesomplete input, input, textarea, select, .select2-container .select2-selection {
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", "Noto Sans", sans-serif !important;
}

/* Headers and titles */
h1, h2, h3, h4, h5, h6, .page-title, .ellipsis, .control-label, .modal-title, .section-head {
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", "Noto Sans", sans-serif !important;
}

/* List and grid elements */
.list-row, .grid-body, .data-row, .grid-heading-row, .list-header, .list-item {
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", "Noto Sans", sans-serif !important;
}

/* Navbar and navigation elements */
.navbar, .navbar-brand, .nav-link, .dropdown-menu, .sidebar {
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", "Noto Sans", sans-serif !important;
}

/* Modals and dialogs */
.modal, .modal-content, .modal-header, .modal-body, .modal-footer {
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", "Noto Sans", sans-serif !important;
}

/* Cards and widgets */
.card, .widget, .dashboard-graph, .number-widget-box {
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", "Noto Sans", sans-serif !important;
}

/* Header background color */
.navbar,
.navbar.navbar-expand,
.navbar.navbar-light,
.navbar.navbar-dark,
header.navbar,
.desk-header,
.top-navbar,
body .navbar {
    background-color: #d0caf9 !important;
    background: white;
    color: #ffffff !important;
}

/* Navbar text and links color for readability */
.navbar .navbar-brand,
.navbar .nav-link,
.navbar .nav-item > a,
.navbar .btn-link,
.navbar .indicator-pill,
.navbar .dropdown-toggle,
.navbar .navbar-text,
.navbar a {
    color: #a6431b !important;
}

/* Navbar brand and logo */
.navbar-brand {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Dropdown menus from navbar */
.navbar .dropdown-menu {
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", "Noto Sans", sans-serif !important;
}

/* Ensure buttons in navbar maintain readability */
.navbar .btn {
    color: #ffffff !important;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", "Noto Sans", sans-serif !important;
}

/* Notification indicators and badges */
.navbar .indicator, .navbar .badge {
    background-color: #4834D4 !important;
    color: #ffffff !important;
}

/* Force font on any remaining elements */
div, span, p, li, td, th, label, button, a {
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", "Noto Sans", sans-serif !important;
}

#page-Workspaces {
    background-color: #f0eeff;
}

.item-anchor {
    padding: 10px !important;
    font-size: 15px;
}

.selected .item-anchor {
    border-right: 4px solid #6C5CE7 !important;
}

.btn-primary {
    background-color: #6C5CE7 !important;
    border-color: #5A4BD1 !important;
}

.btn-primary:hover {
    background-color: #5A4BD1 !important;
    border-color: #4834D4 !important;
}

.dropdown-help {
    display: none !important;
}

.item-anchor {
    border-bottom: 1px solid #d7d7d7;
}
.navbar-home img {
    max-height:50px !important;
}

/* إخفاء Build من sidebar */
.sidebar-item[title="Build"],
[data-label="Build"],
.desk-sidebar .standard-sidebar-item a[href="/app/build"] {
    display: none !important;
}

/* إخفاء Edit و New في صفحات Workspace لغير المديرين */
/* إخفاء أزرار New و Edit في Workspace */
.btn-new-workspace,
.btn-edit-workspace,
.workspace-footer {
    display: none !important;
}

/* Hide the 'PUBLIC' section title in workspace sidebar */
.workspace-sidebar .sidebar-label,
.workspace-sidebar .module-section-label {
  display: none !important;
}

/* Hide System Settings shortcut card on App Settings workspace */
.widget.shortcut-widget-box[shortcut_name="System Settings"],
.widget.shortcut-widget-box[aria-label="System Settings"] {
  display: none !important;
}

/* Hide Website card on App Settings workspace */
[card_name="Website"] {
  display: none !important;
}