/*
 * dashboard.css — Shared layout for all dashboard pages.
 *
 * Converted from:
 *   frontend-nextjs/src/assets/scss/components/dashboard/_gp-dashboard.scss
 *   frontend-nextjs/src/views/pages/DashboardSidebar/_gp-sidebar.scss
 *   frontend-nextjs/src/app/dashboard/layout.js
 *
 * Variables resolved:
 *   $primary    → #e78125
 *   $secondary  → #19263a
 *   $white      → #ffffff
 *   $color_raven → #7b7c7e
 *   $color_shark → #1d1d1d
 *   $color_silver → #b2b2b2
 *   $color_wild_sand → #f5f5f5
 *   breakpoint(max, 1269) → @media (max-width: 1269px)
 *   breakpoint(min, 1270) → @media (min-width: 1270px)
 */

/* =========================================
   BODY / RESET
   Dashboard pages suppress site header/footer,
   so the body needs to be clean.
========================================= */

.gp-dashboard-body {
  margin: 0;
  padding: 0;
  background: #f5f6fa;
}

/* =========================================
   GP-DASHBOARD WRAPPER
   Source: .gp-dashboard in _gp-dashboard.scss
========================================= */

.gp-dashboard {
  height: 100vh;
  background: #f5f6fa;
  position: relative;
  scrollbar-color: #19263a #e5e5e5;
  scrollbar-width: thin;
  overflow: auto;
}

@media (max-width: 1269px) {
  .gp-dashboard {
    height: auto;
    min-height: 100vh;
  }
}

.gp-dashboard::-webkit-scrollbar,
.gp-dashboard ::-webkit-scrollbar {
  width: 7px;
  height: 7px;
  border-radius: 8px;
}

.gp-dashboard::-webkit-scrollbar-track,
.gp-dashboard ::-webkit-scrollbar-track {
  background: rgba(123, 124, 126, 0.2);
  border-radius: 8px;
}

.gp-dashboard::-webkit-scrollbar-thumb,
.gp-dashboard ::-webkit-scrollbar-thumb {
  background: #19263a;
  border-radius: 8px;
}

/* =========================================
   CONTENT WRAP
   Source: .gp-content-wrap in _gp-dashboard.scss
========================================= */

.gp-dashboard .gp-content-wrap {
  padding-left: 265px;
  transition: all 0.3s ease-in-out;
  min-height: 100vh;
}

@media (max-width: 1269px) {
  .gp-dashboard .gp-content-wrap {
    padding-left: 0;
    padding-top: 50px;
  }
}

/* =========================================
   MOBILE HEADER
   Source: .gp-mobile-header in _gp-dashboard.scss
========================================= */

.gp-dashboard .gp-mobile-header {
  display: none;
}

@media (max-width: 1269px) {
  .gp-dashboard .gp-mobile-header {
    display: flex;
    position: fixed;
    background: #19263a;
    padding: 11px 20px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    z-index: 12;
    box-shadow: 0px 6px 11px rgba(133, 133, 133, 0.2);
  }
}

/* =========================================
   DROPDOWN MENU IN DASHBOARD
   Source: .gp-dashboard .dropdown-menu in _gp-dashboard.scss
========================================= */

.gp-dashboard .dropdown-menu {
  padding: 0;
}

.gp-dashboard .dropdown-menu .dropdown-item {
  border: 0;
  border-bottom: 1px solid #f1f1f1;
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 17px;
  color: #1d1d1d;
  background: transparent;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}

.gp-dashboard .dropdown-menu .dropdown-item:hover,
.gp-dashboard .dropdown-menu .dropdown-item:focus {
  background: rgba(231, 129, 37, 0.15);
  border-color: #e78125;
}

.gp-dashboard .dropdown-menu .dropdown-item.active {
  background: #e78125;
  color: #ffffff;
}

.gp-dashboard .dropdown-menu .dropdown-item:last-child {
  border: 0;
}

/* =========================================
   SIDEBAR
   Source: .gp-sidebar in _gp-sidebar.scss
========================================= */

.gp-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 265px;
  height: 100%;
  background: linear-gradient(180deg, #1e3962 0%, #173055 100%);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease-in-out;
  z-index: 100;
  overflow-y: auto;
  scrollbar-color: rgba(245, 245, 245, 0.6) transparent;
  scrollbar-width: thin;
}

.gp-sidebar::-webkit-scrollbar {
  width: 10px;
}

.gp-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.gp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(245, 245, 245, 0.6);
  border: 2px solid #1e3962;
}

@media (max-width: 1269px) {
  .gp-sidebar {
    left: -265px;
    z-index: 123;
  }
}

/* sidebar open state on mobile */
.sidebar-active .gp-sidebar {
  left: 0;
}

/* sidebar overlay on mobile when active */
.sidebar-active .gp-sidebar-overlay {
  display: block;
}

.gp-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 122;
}

/* ── Logo ── */

.gp-sidebar .gp-logo {
  padding: 40px 13px 15px;
  flex-shrink: 0;
}

.gp-sidebar .gp-logo .logo {
  padding: 0 14px 15px;
  border-bottom: 1px solid #354761;
}

/* ── Menu area ── */

.gp-sidebar .gp-menu {
  flex: 1;
  overflow-y: auto;
  padding: 0 27px;
}

.gp-sidebar .gp-menu .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #354761;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-radius: 0 !important;
}

.gp-sidebar .gp-menu .accordion-item:last-child {
  border-bottom: 1px solid #354761;
}

.gp-sidebar .gp-menu .accordion-button {
  border-radius: 0;
  font-size: 16px;
  font-weight: 500;
  background: transparent;
  color: #ffffff;
  padding: 12px 10px 12px 0;
  transition: all 0.3s ease-in-out;
  box-shadow: none;
}

.gp-sidebar .gp-menu .accordion-button::after {
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.417 4.08366L7.98165 9.26018C7.59544 9.62799 6.98854 9.62799 6.60234 9.26018L1.16699 4.08366' stroke='white'/%3E%3C/svg%3E");
  background-position: center center;
  background-size: 14px 14px;
  background-repeat: no-repeat;
}

.gp-sidebar .gp-menu .accordion-button:not(.collapsed) {
  box-shadow: none;
  background: transparent;
  color: #ffffff;
}

.gp-sidebar .gp-menu .accordion-button:hover {
  color: #e78125;
}

.gp-sidebar .gp-menu .accordion-body {
  padding: 0;
}

/* ── Sub-menu ── */

.gp-sidebar .gp-sub-menu {
  padding-top: 4px;
}

.gp-sidebar .gp-sub-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gp-sidebar .gp-sub-menu ul li {
  padding-bottom: 4px;
}

.gp-sidebar .gp-sub-menu ul li:last-child {
  padding-bottom: 0;
}

.gp-sidebar .gp-sub-menu ul li a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.gp-sidebar .gp-sub-menu ul li a:hover,
.gp-sidebar .gp-sub-menu ul li a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.gp-sidebar .gp-sub-menu ul li a.active {
  font-weight: 600;
}

/* ── Menu list (Call Back Requests, etc.) ── */

.gp-sidebar .gp-menu-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gp-sidebar .gp-menu-list ul li {
  border-bottom: 1px solid #354761;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.gp-sidebar .gp-menu-list ul li:last-child {
  border-bottom: 0;
}

.gp-sidebar .gp-menu-list ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  padding: 8px 3px 8px 0;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.gp-sidebar .gp-menu-list ul li a:hover,
.gp-sidebar .gp-menu-list ul li a.active {
  color: #e78125;
}

.gp-sidebar .gp-menu-list ul li a .no {
  color: #ffffff;
  background: #ff5b65;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  border-radius: 100%;
}

/* ── User dropdown at sidebar bottom ── */

.gp-sidebar .gp-user-dropdown {
  border-top: 1px solid #354761;
  padding: 20px 27px;
  flex-shrink: 0;
}

.gp-sidebar .gp-user-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  text-align: left;
  color: #ffffff;
  width: 100%;
  padding: 0 20px 0 0;
  position: relative;
}

.gp-sidebar .gp-user-dropdown .dropdown-toggle::after {
  border: 0;
  background-image: url("data:image/svg+xml,%3Csvg stroke='%23ffffff' fill='none' stroke-width='2' viewBox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round' height='1em' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  flex-shrink: 0;
  position: absolute;
  right: 0;
  top: 0;
  margin: 0;
}

.gp-sidebar .gp-user-dropdown .profile-photo {
  flex-shrink: 0;
  width: 35px;
}

.gp-sidebar .gp-user-dropdown .profile-photo img {
  border-radius: 100%;
  width: 35px;
  height: 35px;
  object-fit: cover;
}

.gp-sidebar .gp-user-dropdown .profile-info {
  width: calc(100% - 35px);
  padding-left: 13px;
}

.gp-sidebar .gp-user-dropdown .profile-info .name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  color: #ffffff;
}

.gp-sidebar .gp-user-dropdown .dropdown-menu {
  width: 100%;
}

/* ── Service chips (Add Service modal) ─────────────────────────────────── */
.gp-modal--lg { max-width: 560px; }

.select-service-list {
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.select-service-list ul {
  list-style: none;
  margin: 0 -6px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.select-service-list ul li {
  padding: 4px 6px;
}
.select-service-list .btn-check {
  position: absolute;
  clip: rect(0,0,0,0);
  pointer-events: none;
}
.select-service-list .btn-service-check {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  color: rgba(53,53,53,.65);
  padding: 9px 12px;
  border: 1px solid rgba(205,205,205,.6);
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  background: #fff;
  box-shadow: none;
  position: relative;
}
.select-service-list .btn-service-check svg {
  transform: scale(0);
  margin-right: 0;
  width: 0;
  transition: transform .2s, width .2s, margin-right .2s;
  flex-shrink: 0;
}
.select-service-list .btn-check:checked + .btn-service-check {
  background: #f6f8ff;
  border-color: #b5c4fb;
  color: #3347b0;
}
.select-service-list .btn-check:checked + .btn-service-check svg {
  transform: scale(1);
  width: 15px;
  margin-right: 6px;
}
.select-service-list .btn-service-check:hover {
  background: #f6f8ff;
  border-color: #b5c4fb;
  color: #3347b0;
}

/* ── Form validation error ─────────────────────────────────────────────── */
.gp-modal .form-wrap .form-error {
  font-size: 12px;
  font-weight: 500;
  color: #f74641;
  padding-top: 6px;
  display: block;
}

/* ── Drag-and-drop file dropzone ───────────────────────────────────────── */
.gp-dropzone {
  border: 1px dashed rgba(205,205,205,.8);
  border-radius: 8px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #fff;
  position: relative;
}
.gp-dropzone:hover,
.gp-dropzone.drag-over {
  border-color: #3347b0;
  background: #f6f8ff;
}
.gp-dropzone.has-file {
  border-style: solid;
  border-color: #b5c4fb;
  background: #f6f8ff;
}
.gp-dropzone-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.gp-dropzone-icon {
  margin-bottom: 10px;
}
.gp-dropzone-icon svg {
  width: 38px;
  height: 38px;
}
.gp-dropzone-txt {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 12px;
}
.gp-dropzone-btn {
  pointer-events: none;
  font-size: 13px;
}
.gp-dropzone-filename {
  font-size: 13px;
  color: #3347b0;
  font-weight: 500;
  word-break: break-all;
}

/* ── Form label optional hint ──────────────────────────────────────────── */
.form-label-opt {
  font-size: 12px;
  font-weight: 400;
  color: #999;
}
