/* ================================================
   ByteSure Management App - Brand Styling
   ================================================ */

:root {
  /* Brand Colors */
  --bs-orange: #ff8a00;
  --bs-orange-dark: #f57c00;
  --bs-primary: #172033;
  --bs-muted: #64748b;
  --bs-border: #e2e8f0;
  --bs-bg: #f8fafc;
  /* Sidebar */
  --sidebar-bg: #ffffff;
  --sidebar-text: #374151;
}

/* ================================================
   Global Styles
   ================================================ */

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bs-bg);
  color: var(--bs-primary);
}

/* ================================================
   Header & Branding
   ================================================ */

/* Main page header (desktop) */
.s-Toolbar.page-header,
header.page-header {
  background: #0B0B0C !important;
  border-bottom: none;
}

/* Sidebar header */
.s-sidebar-header {
  background: #0B0B0C !important;
  border-bottom: 1px solid #1a1a1a;
}

.s-sidebar-header-title {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 18px;
}

.s-sidebar-header-link {
  color: #ffffff !important;
}

  .s-sidebar-header-link:hover {
    color: var(--bs-orange) !important;
  }

.s-site-logo-img,
.s-sidebar-header-logo {
  width: 150px;
  height: 58px;
  background: url("../../Content/img/bytesure-logo-white.png") no-repeat center;
  background-size: contain;
}

/* Style the ByteSure text logo */
.s-sidebar-header-branding {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s-sidebar-header-title {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

  /* Add orange accent dot */
 /* .s-sidebar-header-title::before {
    content: "●";
    color: var(--bs-orange);
    margin-right: 6px;
    font-size: 12px;
  }*/
/* ================================================
   Sidebar Navigation
   ================================================ */

.s-sidebar {
  background: var(--sidebar-bg) !important;
  border-right: 1px solid var(--bs-border);
}

  .s-sidebar .s-navigation a,
  .s-sidebar .nav > li > a {
    color: var(--sidebar-text);
    transition: all 0.2s ease;
  }

    .s-sidebar .s-navigation a:hover,
    .s-sidebar .nav > li > a:hover {
      background: rgba(255, 138, 0, 0.08);
      color: var(--bs-orange);
    }

    .s-sidebar .s-navigation a.active,
    .s-sidebar .nav > li.active > a {
      background: rgba(255, 138, 0, 0.12);
      color: var(--bs-orange);
      border-left: 3px solid var(--bs-orange);
      font-weight: 600;
    }

.s-navigation i {
  margin-right: 8px;
  opacity: 0.7;
}

/* ================================================
   Buttons
   ================================================ */

/* Primary buttons - Orange */
.btn-primary,
button.btn-primary,
.s-Button.btn-primary {
  background: var(--bs-orange) !important;
  border-color: var(--bs-orange) !important;
  color: #111 !important;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
}

  .btn-primary:hover,
  button.btn-primary:hover {
    background: var(--bs-orange-dark) !important;
    border-color: var(--bs-orange-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.3);
  }

/* Secondary buttons - Neutral */
.btn-default,
.s-Button,
button:not(.btn-primary) {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: var(--bs-primary);
  border-radius: 6px;
}

  .btn-default:hover {
    background: #f9fafb;
    border-color: #9ca3af;
  }

/* ================================================
   Toolbar (below header)
   ================================================ */

.s-Toolbar:not(.page-header) {
  background: #ffffff !important;
  border-bottom: 1px solid var(--bs-border);
  padding: 12px;
}

/* ================================================
   Grid / Tables
   ================================================ */

.s-GridPanel,
.slick-header {
  background: #ffffff;
  border: 1px solid var(--bs-border);
  border-radius: 8px;
}

.slick-header-column {
  background: #f8fafc;
  color: var(--bs-primary);
  font-weight: 600;
  border-right: 1px solid var(--bs-border);
}

.slick-cell {
  border-bottom: 1px solid #f1f5f9;
}

.slick-row:hover {
  background: #f9fafb;
}

/* ================================================
   Dialogs / Modals
   ================================================ */

.s-Dialog {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.s-DialogTitle {
  background: var(--bs-orange);
  color: #111;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 12px 12px 0 0;
}

/* ================================================
   Forms
   ================================================ */

.s-PropertyGrid input,
.s-PropertyGrid select,
.s-PropertyGrid textarea,
input.editor,
select.editor {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  transition: border-color 0.2s ease;
}

  .s-PropertyGrid input:focus,
  .s-PropertyGrid select:focus,
  input.editor:focus,
  select.editor:focus {
    border-color: var(--bs-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.1);
  }

/* ================================================
   Links
   ================================================ */

a {
  color: var(--bs-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

  a:hover {
    color: var(--bs-orange-dark);
  }

/* ================================================
   Page Title
   ================================================ */

.page-title,
.s-PageTitle {
  background: transparent !important;
  color: var(--bs-primary);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 20px;
}

/* ================================================
   Cards / Panels
   ================================================ */

.s-Panel {
  background: #ffffff;
  border: 1px solid var(--bs-border);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ================================================
   Status Badges
   ================================================ */

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* ================================================
   Scrollbar
   ================================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

  ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }

/* ================================================
   Translation Grid
   ================================================ */

.s-TranslationGrid input.custom-text {
  width: 100%;
  height: 23px;
  padding: 0 3px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

/* ================================================
   Permission Check Editor
   ================================================ */

.s-PermissionCheckEditor {
  min-height: 450px;
  border: 1px solid var(--bs-border);
  border-radius: 8px;
  padding: 16px;
}
