/*community dashboard*/


.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0;
  direction: ltr;
}

.stat-box {
  position: relative;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.stat-box:hover {
  transform: translateY(-4px);
}

.stat-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  margin: 10px 0 4px;
  color: inherit;
  display: inline-block;
  position: relative;
}

.stat-icon-inline {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.stat-sub {
  font-size: 14px;
  color: #777;
  margin-top: 6px;
}

.stat-value.green { color: #2eaf55; }
.stat-value.orange { color: #f5a623; }
.stat-value.blue { color: #3b82f6; }
.stat-value.red { color: #e63946; }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
}

.sidebar-top {
  border-bottom: 1px solid #f2f2f2;
  padding: 20px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
}

.sidebar-title h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.sidebar-title p {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.sidebar-menu {
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.sidebar-menu li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-menu li img {
  width: 20px;
  height: 20px;
}

.sidebar-menu li:hover {
  background: #e91e63;
  color: #ffffff; 
  border-radius: 5px;
}
.sidebar-menu ul li {
  margin-right: 10px !important;
}
.sidebar-menu ul {
  margin-right: 0px !important;
	margin-left: 8px !important;
}


.sidebar-footer {
  border-top: 1px solid #f2f2f2;
  padding: 20px;
}

/* Training Progress Funnel */
.training-progress-box {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: left;
  direction: ltr;
  max-width: 700px;
  margin: 0 auto;
  
}

.training-title {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  margin-bottom: 22px;
}

.training-row {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
/* JOB OPPORTUNITIES BLOCK */

.job-opportunities-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: left;
  direction: ltr;
  max-width: 700px;
  margin: auto 0;
}

/* Header */
.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.job-title {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  margin: 0;
}

.view-all-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #2196f3;
  color: #2196f3;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-all-btn:hover {
  background: #2196f3;
  color: #fff;
}

.view-all-btn img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* City selector */
.job-location {
  margin-bottom: 20px;
}

.job-label {
  display: block;
  font-size: 14px;
  color: #424242;
  margin-bottom: 6px;
}

.job-location select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: #333;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

/* Total Available Jobs box */
.job-total-box {
  background: #e91e63;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.job-total-title {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 4px;
}

.job-total-sub {
  font-size: 14px;
  font-weight: 400;
  color: #f8dce6;
  margin: 0;
}

/* Job cards grid */
.job-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-items: center;
}

.job-card {
  background: #f8f8f8; /* light gray background */
  border: none;
  border-radius: 12px;
  text-align: center;
  padding: 18px 8px;
  box-shadow: none;
  width: 100%;
  max-width: 200px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.job-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-bottom: 8px;
}

.job-number {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.job-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.job-card-sub {
  font-size: 12px;
  color: #777;
  margin-top: 3px;
}

/* Colors for text */
.job-number.green  { color: #4caf50; }
.job-number.blue   { color: #2196f3; }
.job-number.orange { color: #ff9800; }

/* Responsive layout */
@media (max-width: 800px) {
  .job-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .view-all-btn {
    align-self: flex-end;
  }

  .job-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------------------------
   TRAINING PROGRESS FUNNEL (unchanged)
----------------------------------------------------------- */

.training-label {
  font-size: 14px;
  color: #424242;
}

.training-value {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

/* Progress bar (same gradient for all rows) */
.training-bar {
  position: relative;
  height: 8px;
  background: #f8dce6; /* light pink background */
  border-radius: 9999px;
  overflow: hidden;
}

.training-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--pct, 0%);
  border-radius: 9999px;
  background: linear-gradient(90deg, #e91e63 0%, #f06292 100%);
  transition: width 0.6s ease;
}

/* Text colors only */
.training-value.pink   { color: #e91e63; }
.training-value.blue   { color: #2196f3; }
.training-value.green  { color: #4caf50; }
.training-value.orange { color: #ff9800; }


.view-all-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #2196f3;
  color: #2196f3;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

a.view-all-btn {
  color: #2196f3 !important;
}



.view-all-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: inline-block;
  position: relative;
  top: 1px;
}

.view-all-btn:hover {
  background: #2196f3;
  color: #fff;
}

.view-all-btn:hover .view-all-icon {
  filter: brightness(0) invert(1); 
}
 /*------------------*/
.learning-employment-wrapper {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-sizing: border-box;
  overflow: hidden;
  margin: 40px 0;
}

.learning-employment-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  border: none;
}

.learning-employment-table th,
.learning-employment-table td {
  border: none;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 16px;
  text-align: left !important;
  direction: ltr !important;
}

.learning-employment-table tr:last-child td {
  border-bottom: none !important;
}

.learning-employment-table tbody {
  border: none !important;
}

.learning-employment-table thead {
  border: none !important;
}

.learning-employment-table th {
  color: #333333;
  font-weight: 600;
  font-size: 14px;
}

.learning-employment-table td {
  color: #666666;
  font-size: 14px;

}
.learning-employment-header {
  margin-bottom: 16px;
  text-align: left;
  direction: ltr;
}

.learning-employment-header .title {
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  line-height: 1.4;
}

.learning-employment-header .subtitle {
  font-size: 13px;
  color: #777777;
  margin-top: 4px;
  line-height: 1.3;
}

.learning-employment-focus {
  margin-top: 16px;
  background-color: #FFA000;
  color: #000000;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  direction: ltr;
}
.cell-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2eaf55;
  padding: 0 12px;
  border-radius: 8px;
  height: 32px;
  text-align: center;
}

.cell-gray {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #aaa;
  padding: 0 12px;
  border-radius: 8px;
  height: 32px;
  text-align: center;
}

.cell-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FFA000;
  padding: 0 12px;
  border-radius: 8px;
  height: 32px;
  text-align: center;
}

.cell-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2196f3cf;
  padding: 0 12px;
  border-radius: 8px;
  height: 32px;
  text-align: center;
}

  
.training-and-jobs-wrapper {
 background-color: #f8f9fa;
 padding: 24px;
 border: 1px solid #e0e3e8 !important;
margin-top: -1px;
}
.wp-block-column.is-layout-flow {
  padding: 0 !important;
  margin: 5px !important;
}

/* Gap between training and job boxes */
.training-and-jobs-wrapper .wp-block-columns {
  gap: 24px;
}

.training-and-jobs-wrapper .wp-block-column {
  margin: 0 !important;
}
.community-manager-box {
  padding: 16px;
  padding-left: 24px;
}

.training-progress-box {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.menu-dashboard {
  display: block;
  border: 1px solid #e0e3e8 !important;
  margin-top: -1px !important;
  border-right: none !important;
	border-left: none !important;


}

.menu-dashboard .cmdb-manager-box {
  width: 100%;
  box-sizing: border-box;
}

.sidebar-menu .icon {
  filter: grayscale(100%) brightness(0.6);
  opacity: 0.8;
}
.wp-block-columns {
  align-items: stretch;
  gap: 20px;
}
.cmdb-manager-box {
  height: 75px !important;
  display: flex;
  border-right: none !important;
  margin-right: -5px !important;
  margin-top: 5px !important;
  margin-left: 10px !important;
}

.community-manager-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 24px;
  direction: ltr;
}

.manager-avatar {
  background-color: #4CAF50;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.manager-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.community-manager {
  font-weight: bold;
  font-size: 16px;
  color: #222;
  margin: 0;
}

.community-manager-email {
  font-size: 14px;
  color: #666;
  margin: 0;
}
.community-manager-box {
  border-top: 1px solid #e0e3e8;
}
.menu-dashboard-2 {
  margin-bottom: -5px;
  border: 1px solid #e0e3e8;
  border-right: none;
  border-top: none;
display: flex;
  flex-direction: column;
  flex: 1;
  height: auto;
  border-right: none;
  border-top: none;
  margin: 0;
  box-sizing: border-box;
	margin-right: -5px;
	margin-bottom: 5px;
	margin-left:10px;
}

.wp-block-columns > .wp-block-column[style*="flex-basis:20%"] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.community-manager-box {
  margin-top: auto;
  display: flex;
}

.cmdb-page-header {
  margin: 24px 0 16px;
  text-align: left;
}

.cmdb-page-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #333333;
}

.cmdb-page-subtitle {
  margin: 0;
  font-size: 14px;
  color: #777777;
}

.cmdb-lang-toggle-wrapper {
  text-align: right;
  direction: rtl;
  margin-bottom: 12px;
}

.cmdb-lang-toggle-btn {
  display: inline-block;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 5px;
  border: 1px solid #2196f3;
  background-color: #f8f9fa;
  color: #2196f3;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              box-shadow 0.2s ease, border-color 0.2s ease;
  outline: none;
}

.cmdb-lang-toggle-btn:hover {
  background-color: #2196f3;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.15);
}

.cmdb-lang-toggle-btn:focus {
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.35);
}

.cmdb-lang-toggle-btn:active {
  transform: translateY(1px);
}

.menu-dashboard .sidebar-menu a .label {
  color: #333;
  transition: color 0.2s ease;
}

.menu-dashboard .sidebar-menu a:hover .label {
  color: #fff;
}
.menu-dashboard .sidebar-menu li:not(:has(a)) {
  cursor: not-allowed;
  opacity: 0.5;
}
h4.job-title {
  color: #000 !important; 
}
h4.training-title {
  font-weight: bold !important;
}
.job-opportunities-box--he .job-location select {
  direction: rtl;
  text-align: right;
  background-position: left 12px center;
}

/*TEMP-DASHBOARD*/

.menu-dashboard-temp {
  border-right: 1px solid #e0e3e8 !important;
	border-left: none !important;
	margin-left: -5px !important;
	direction: rtl !important;
}
.cmdb-topbar-temp {
  display: flex;
  justify-content: space-between;
  flex-direction: row !important;
  align-items: center;
}
.cmdb-topbar-temp .cmdb-topbar-left {
  direction: rtl;
  text-align: right;
}

.cmdb-topbar-temp .cmdb-topbar-right {
  direction: rtl;
}

.menu-dashboard-temp .cmdb-manager-text {
  text-align: right;
}

/* ============================================================
   TOPBAR STYLES
   ============================================================ */

.cmdb-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid #e0e3e8;
  border-radius: 0;
  gap: 20px;
}

.cmdb-topbar--reversed {
  flex-direction: row-reverse;
}

.cmdb-topbar-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmdb-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmdb-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.cmdb-subtitle {
  font-size: 14px;
  color: #777;
  margin: 0;
  line-height: 1.4;
}

/* Search Box */
.cmdb-search {
  position: relative;
  display: flex;
  align-items: center;
}

.cmdb-search input {
  padding: 10px 40px 10px 14px;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
  color: #333;
  width: 220px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cmdb-search input:focus {
  border-color: #2196f3;
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.15);
}

.cmdb-search input::placeholder {
  color: #999;
}

.cmdb-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.5;
  pointer-events: none;
}

/* Icon Buttons */
.cmdb-icon-btn {
  display: none !important; /* Hidden - Help and Notifications buttons */
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.cmdb-icon-btn:hover {
  background: #f8f9fa;
  border-color: #ccc;
}

.cmdb-icon-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Bell with Badge */
.cmdb-bell {
  position: relative;
}

.cmdb-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #e91e63;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Logo */
.cmdb-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.cmdb-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* ============================================================
   MANAGER BOX STYLES
   ============================================================ */

.cmdb-manager-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.cmdb-manager-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.cmdb-manager-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.cmdb-manager-subtitle {
  font-size: 13px;
  color: #888;
  margin: 0;
  line-height: 1.3;
}

/* ============================================================
   STAT PAIR ROW (Job + Training side by side)
   ============================================================ */

.stat-pair-row {
  display: flex;
  gap: 20px;
  margin: 0;
}

.stat-pair-row > .job-opportunities-box,
.stat-pair-row > .training-progress-box {
  flex: 1;
  min-width: 0;
}

/* Stat Row inside stat boxes */
.stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
  .cmdb-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }

  .cmdb-topbar--reversed {
    flex-direction: column;
  }

  .cmdb-topbar-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cmdb-search input {
    width: 100%;
    min-width: 180px;
  }

  .stat-pair-row {
    flex-direction: column;
  }
}

/* ============================================================
   MATRIX CELL CLICKABLE & MODAL STYLES
   ============================================================ */

/* Clickable cells */
.matrix-cell-clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.matrix-cell-clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Modal styles */
.matrix-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.matrix-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.matrix-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #e91e63;
    color: #fff;
}
.matrix-modal-header h3 {
    margin: 0;
    font-size: 18px;
}
.matrix-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.matrix-modal-close:hover {
    opacity: 0.8;
}
.matrix-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}
.matrix-members-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.matrix-members-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.matrix-members-list li:last-child {
    border-bottom: none;
}
.matrix-members-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}
.matrix-members-list a:hover {
    color: #e91e63;
}
.matrix-members-list a::before {
    content: '👤';
    margin-left: 10px;
    font-size: 16px;
}

/*THREE COLUMNS LAYOUT (for non-closed communities)*/

.dashboard-stats-grid--three-cols {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .dashboard-stats-grid--three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dashboard-stats-grid--three-cols {
        grid-template-columns: 1fr;
    }
}

/* Matrix cell links - minimal styling */
.matrix-cell-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.matrix-cell-link:hover {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}