
/* ==========================================
   CONSIGNFLOW — DASHBOARD DESIGN
   Melissa Loves Bags
   ========================================== */

:root {
  --cf-navy: #1d2842;
  --cf-navy-light: #30415f;
  --cf-teal: #75e2bd;
  --cf-teal-light: #e5faf2;
  --cf-bg: #f5f7fa;
  --cf-white: #ffffff;
  --cf-text: #243348;
  --cf-muted: #748296;
  --cf-border: #e5eaf0;
  --cf-sidebar-width: 215px;
}

/* MAIN APPLICATION LAYOUT */

.cf-layout {
  display: flex;
  min-height: 100vh;
  background: var(--cf-bg);
}


.cf-sidebar {
  width: var(--cf-sidebar-width);
  min-width: var(--cf-sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  background: linear-gradient(
    180deg,
    #141e36 0%,
    #19243e 45%,
    #1b2844 100%
  );
  transition: width 0.2s ease, min-width 0.2s ease;
}


.cf-main {
  flex: 1;
  min-width: 0;
  padding: 30px;
}

/* ==========================================
   SIDEBAR BRANDING
   ========================================== */

.cf-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 9px 17px;
  min-width: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Original uploaded CF logo */

.cf-brand-logo {
  width: 43px;
  height: 43px;
  min-width: 43px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 7px;
}

/* Original text-based icon fallback */

.cf-brand-icon {
  width: 43px;
  height: 43px;
  min-width: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #17223a;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
}

/* ConsignFlow name */

.cf-brand-name {
  min-width: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.65px;
  white-space: nowrap;
}

.cf-brand-name span {
  color: #75e2bd !important;
}

/* Melissa Loves Bags subtitle */

.cf-brand-subtitle {
  color: #c4d1df;
  font-size: 7.5px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.15px;
  margin-top: 4px;
  white-space: nowrap;
}

/* ==========================================
   SIDEBAR NAVIGATION
   ========================================== */

.cf-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 17px 9px;
  flex: 1;
}

.cf-nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #d1d9e7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.cf-nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.cf-nav-item.active {
  background: #314361;
  color: #75e2bd;
  font-weight: 700;
}

.cf-nav-icon {
  width: 23px;
  min-width: 23px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.cf-nav-icon svg {
  width: 19px;
  height: 19px;
}

.cf-nav-label {
  white-space: nowrap;
}

/* Mint notification badge */

.cf-nav-badge {
  margin-left: auto;
  background: #75e2bd;
  color: #17283e;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  border-radius: 20px;
  padding: 4px 7px;
}

/* ==========================================
   SIDEBAR FOOTER
   ========================================== */

.cf-sidebar-footer {
  padding: 13px 9px 17px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.cf-collapse-button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 11px 12px;
  background: transparent;
  color: #c3d0de;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 12px;
  text-align: left;
}

.cf-collapse-button:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

/* ==========================================
   COLLAPSED SIDEBAR
   ========================================== */

.cf-layout.sidebar-collapsed {
  --cf-sidebar-width: 70px;
}

.sidebar-collapsed .cf-brand-name,
.sidebar-collapsed .cf-brand-subtitle,
.sidebar-collapsed .cf-nav-label,
.sidebar-collapsed .cf-nav-badge,
.sidebar-collapsed .cf-collapse-label {
  display: none;
}

.sidebar-collapsed .cf-brand {
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
}

.sidebar-collapsed .cf-nav-item {
  justify-content: center;
  padding: 13px 8px;
}

/* ==========================================
   DASHBOARD HEADER
   ========================================== */

.cf-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.cf-page-title {
  font-size: 27px;
  font-weight: 750;
  color: var(--cf-text);
  margin: 0;
}

.cf-page-subtitle {
  color: var(--cf-muted);
  margin-top: 7px;
  font-size: 14px;
}

.cf-user-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cf-avatar {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #d7f0eb;
  color: #14776f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
}

/* ==========================================
   DASHBOARD SUMMARY CARDS
   ========================================== */

.cf-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.cf-stat-card {
  background: white;
  border: 1px solid var(--cf-border);
  border-radius: 13px;
  padding: 22px;
  box-shadow: 0 3px 14px rgba(22,43,65,0.03);
}

.cf-stat-label {
  color: var(--cf-muted);
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 13px;
}

.cf-stat-value {
  color: var(--cf-text);
  font-size: 30px;
  font-weight: 750;
  line-height: 1.2;
}

.cf-stat-note {
  font-size: 12px;
  color: var(--cf-muted);
  margin-top: 10px;
}

/* ==========================================
   DASHBOARD CONTENT PANELS
   ========================================== */

.cf-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.cf-panel {
  background: white;
  border: 1px solid var(--cf-border);
  border-radius: 13px;
  padding: 23px;
  min-width: 0;
}

.cf-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
}

.cf-panel-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--cf-text);
  margin: 0;
}

.cf-panel-link {
  color: #168f87;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  background: none;
  border: none;
}

.cf-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cf-border);
}

.cf-activity-item:last-child {
  border-bottom: none;
}

.cf-activity-icon {
  width: 35px;
  height: 35px;
  min-width: 35px;
  border-radius: 9px;
  background: var(--cf-teal-light);
  color: #168f87;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-activity-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--cf-text);
}

.cf-activity-time {
  font-size: 12px;
  color: var(--cf-muted);
  margin-top: 5px;
}

/* ==========================================
   QUICK ACTIONS
   ========================================== */

.cf-quick-actions {
  margin-top: 25px;
}

.cf-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.cf-action-card {
  background: white;
  border: 1px solid var(--cf-border);
  border-radius: 12px;
  padding: 22px 12px;
  text-align: center;
  color: var(--cf-text);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.cf-action-card:hover {
  border-color: #75e2bd;
  background: #f2fcf8;
}

.cf-action-icon {
  display: block;
  font-size: 24px;
  color: #168f87;
  margin-bottom: 12px;
}

/* ==========================================
   PLACEHOLDER PAGES
   ========================================== */

.cf-placeholder {
  background: white;
  border: 1px solid var(--cf-border);
  border-radius: 13px;
  padding: 35px;
  text-align: center;
  color: var(--cf-muted);
}

.cf-placeholder h2 {
  color: var(--cf-text);
}

/* ==========================================
   RESPONSIVE LAYOUTS
   ========================================== */

@media (max-width: 1100px) {
  .cf-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cf-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .cf-content-grid {
    grid-template-columns: 1fr;
  }

  .cf-main {
    padding: 20px;
  }

  .cf-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .cf-layout {
    flex-direction: column;
  }

  .cf-sidebar {
    width: 100%;
    min-width: 0;
    min-height: auto;
  }

  .cf-brand {
    padding: 14px;
  }

  .cf-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 9px;
  }

  .cf-nav-item {
    width: auto;
    min-width: max-content;
  }

  .cf-sidebar-footer {
    display: none;
  }

  .cf-main {
    padding: 14px;
  }

  .cf-stats {
    gap: 10px;
  }

  .cf-stat-card {
    padding: 16px;
  }

  .cf-stat-value {
    font-size: 24px;
  }
}

/* Final ConsignFlow logo and header adjustments */

.cf-brand {
  gap: 8px;
  padding: 13px 7px 18px;
}

.cf-brand-logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.cf-brand-name {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.7px;
}

.cf-brand-subtitle {
  font-size: 8px;
  letter-spacing: -0.2px;
  margin-top: 4px;
}

/* ==========================================
   CONSIGNFLOW — REFERENCE SIDEBAR FINISH
   ========================================== */

/* Sidebar proportions */
.cf-layout {
  --cf-sidebar-width: 215px;
}

/* Give the logo breathing room */
.cf-brand {
  padding: 15px 10px 19px;
  gap: 9px;
}

/* Original CF logo */
.cf-brand-logo {
  width: 43px;
  height: 43px;
  min-width: 43px;
  border-radius: 8px;
  object-fit: cover;
}

/* Brand name and subtitle */
.cf-brand-name {
  font-size: 17px;
  letter-spacing: -0.65px;
}

.cf-brand-subtitle {
  font-size: 8px;
  margin-top: 4px;
  letter-spacing: -0.2px;
}

/* Navigation spacing */
.cf-nav {
  padding: 17px 9px;
  gap: 4px;
}

.cf-nav-item {
  min-height: 46px;
  gap: 13px;
  padding: 11px 12px;
  font-size: 13px;
}

/* Larger navigation icons */
.cf-nav-icon {
  width: 25px;
  min-width: 25px;
  height: 25px;
}

.cf-nav-icon svg {
  width: 21px;
  height: 21px;
}

/* Selected page */
.cf-nav-item.active {
  background: #314361;
  color: #75e2bd;
  border-radius: 8px;
}

/* Collapsed sidebar */
.sidebar-collapsed .cf-brand {
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
}

.sidebar-collapsed .cf-nav-item {
  justify-content: center;
  padding: 13px 8px;
}

/* Keep the mobile layout responsive */
@media (max-width: 600px) {
  .cf-sidebar {
    width: 100%;
    min-width: 0;
  }

  .cf-nav-item {
    width: auto;
  }
}
