/* ========================================================================== */
/* Profile Page – Desktop & Mobile Responsive Styling                         */
/* ========================================================================== */

/* ---------- 1. OUTER WRAPPER ---------- */
.ce-prof__wrapper {
  display: flex;
  max-width: 980px;
  margin: 20px auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', sans-serif;
}

/* ---------- 2. LEFT SIDEBAR (desktop) ---------- */
.ce-prof__sidebar {
  width: 250px;
  padding: 30px 20px;
  background: #f9f9f9;
  flex-shrink: 0;
  text-align: center;
}

.ce-prof__name {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin-bottom: 30px;
}

.ce-prof__nav-vert a {
  display: block;
  padding: 12px 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.ce-prof__nav-vert a.is-active,
.ce-prof__nav-vert a:hover {
  background: #e7f0ff;
  color: #0073e6;
}

/* ---------- 3. MAIN CONTENT ---------- */
.ce-prof__content {
  flex-grow: 1;
  padding: 40px;
  min-width: 0; /* ✅ fix for scroll inside flex item */
}

.ce-prof__heading {
  font-size: 24px;
  font-weight: 600;
  color: #111;
  margin-bottom: 24px;
}

/* ----- Profile form ----- */
.ce-prof__form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #444;
}

.ce-prof__form input,
.ce-prof__form textarea {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border 0.2s;
}

.ce-prof__form textarea {
  resize: vertical;
  min-height: 80px;
}

.ce-prof__form input:focus,
.ce-prof__form textarea:focus {
  border-color: #0073e6;
  outline: none;
}

.ce-prof__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ce-prof__full {
  grid-column: 1 / -1;
}

.ce-prof__save {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background: #5c6cf3;
  color: #fff;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: 600;
}

.ce-prof__save:hover {
  background: #4b59e6;
}

.ce-prof__status {
  font-size: 14px;
  margin: 10px 0;
}

/* ---------- 4. INLINE NAV (mobile) ---------- */
.ce-prof__nav-inline {
  display: none;          /* shown only under 768px */
  margin: 20px auto;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ce-prof__nav-inline a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 14px;
  color: #333;
  border-radius: 6px;
  background: #f2f2f2;
  text-decoration: none;
  font-weight: 500;
  min-width: 100px;
}

.ce-prof__nav-inline a.is-active,
.ce-prof__nav-inline a:hover {
  background: #e7f0ff;
  color: #0073e6;
}

/* ---------- 5. FIXED LOGOUT BUTTON (mobile) ---------- */
.ce-prof__logout-mobile {
  display: none;          /* revealed in mobile media-query */
}

/* ---------- 6. ORDERS TABLE (scrollable) ---------- */
.ce-orders-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  margin: 24px -40px 0 -40px;
}

.ce-orders-scroll-wrapper table {
  min-width: 1000px;
  width: max-content;
  border-collapse: collapse;
}

.ce-orders-scroll-wrapper th,
.ce-orders-scroll-wrapper td {
  white-space: nowrap;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* Custom scrollbar */
.ce-orders-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}
.ce-orders-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 3px;
}

/* ====================================================================== */
/* 7. RESPONSIVE (under 768 px)                                           */
/* ====================================================================== */
@media (max-width: 768px) {
  .ce-prof__wrapper {
    flex-direction: column;
    padding: 20px;
    box-shadow: none;
  }

  .ce-prof__sidebar {
    display: none;
  }

  .ce-prof__nav-inline {
    display: flex;
  }

  .ce-prof__content {
    padding: 0;
    min-width: 0;
  }

  .ce-prof__grid {
    grid-template-columns: 1fr;
  }

  .ce-prof__save {
    margin-bottom: 30px;
  }

 .ce-prof__logout-mobile {
    display: inline-block;
    position: static;                /* stays in normal flow */
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #ef4444;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
    float: right;                    /* ⬅️ aligns it to the right */
    margin: 4px 0 4px auto;        /* spacing top & bottom */
  }

  .ce-prof__logout-mobile:hover {
    background: #d83030;
  }
}
/* Hide scrollbars but keep scrolling functionality */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.ce-prof__wrapper::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

html,
body,
.ce-prof__wrapper {
  -ms-overflow-style: none;     /* IE/Edge */
  scrollbar-width: none;        /* Firefox */
}

