/* ==========================================
   Dashboard Client – Clubul Copiilor
   ========================================== */


/* Fundal pagină */
body.page-template-page-client-dashboard {
  background: #f9fbff;
}

/* Offset pentru header-ul Blocksy (sticky sau normal) */
body.page-template-page-client-dashboard .ct-header-sticky + .site-main,
body.page-template-page-client-dashboard .ct-header + .site-main {
  padding-top: 120px; /* desktop */
}

@media (max-width: 782px) {
  body.page-template-page-client-dashboard .ct-header-sticky + .site-main,
  body.page-template-page-client-dashboard .ct-header + .site-main {
    padding-top: 110px; /* mobil */
  }
}

/* Wrapper principal */
.cc-dashboard-wrapper {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 48px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  margin: 0 auto 48px;
  max-width: 980px;
}

/* Titlul principal & paragrafe */
.cc-client-dashboard h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.cc-client-dashboard p {
  color: #6b7280;
  margin-bottom: 32px;
}

/* Secțiuni */
.cc-dashboard-section {
  margin-bottom: 40px;
}

.cc-dashboard-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #0f172a;
}

/* Grid pentru date client */
.cc-client-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  font-size: 15px;
}

.cc-client-info-grid div strong {
  color: #0f172a;
}

/* Listă abonamente */
.cc-sub-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Card abonament */
.cc-sub-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px 20px;
  background: #fafafa;
  transition: 0.2s ease;
}

.cc-sub-card:hover {
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.cc-sub-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cc-status-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
}

.cc-sub-info {
  font-size: 14px;
  color: #4b5563;
}

/* Formular mesaj */
.cc-dashboard-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  font-size: 14px;
}

.cc-dashboard-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  min-height: 130px;
  resize: vertical;
  background: #f9fafb;
}

.cc-dashboard-form button {
  margin-top: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: #23d3d3;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: 0.2s ease;
}

.cc-dashboard-form button:hover {
  background: #1bc0c0;
}

/* Confirmare mesaj trimis */
.cc-msg-success {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 14px;
}

/* Istoric mesaje */
.cc-msg-history {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-msg-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 16px;
  background: #ffffff;
  transition: 0.2s ease;
  font-size: 14px;
}

.cc-msg-item:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.cc-msg-date {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

/* Responsivitate */
@media (max-width: 768px) {
  .cc-dashboard-wrapper {
    padding: 28px 22px;
    margin-bottom: 32px;
  }

  .cc-client-dashboard h1 {
    font-size: 22px;
  }

  .cc-dashboard-section {
    margin-bottom: 32px;
  }
}
/* Listările clientului */
.cc-listings-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-listing-item {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 14px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  transition: 0.2s ease;
}

.cc-listing-item:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.cc-listing-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-listing-title {
  font-weight: 600;
  color: #0f172a;
}

.cc-listing-type {
  font-size: 12px;
  color: #6b7280;
}

.cc-listing-link {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #23d3d3;
  text-decoration: none;
  color: #0f172a;
  background: #ecfeff;
}

.cc-listing-link:hover {
  background: #23d3d3;
  color: #0f172a;
}
/* Divider subtil între secțiuni în dashboard */
.cc-dashboard-section {
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.cc-dashboard-section:first-of-type {
  border-top: none;
  padding-top: 0;
}
/* Status abonament – nuanțe diferite în funcție de conținutul textului */
.cc-status-pill {
  background: #eef2ff;
  color: #3730a3;
}

/* Activ – verde */
.cc-status-pill:contains("Activ") {
  background: #ecfdf5;
  color: #047857;
}

/* Expirat – roșcat */
.cc-status-pill:contains("Expirat") {
  background: #fef2f2;
  color: #b91c1c;
}

/* În așteptare plată – galben */
.cc-status-pill:contains("așteptare") {
  background: #fffbeb;
  color: #92400e;
}
/* Icon mic „link” la listări – doar decorativ */
.cc-listing-main {
  position: relative;
  padding-left: 18px;
}

.cc-listing-main::before {
  content: "➜";
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 11px;
  color: #9ca3af;
}

/* Hover mai vizibil pe item */
.cc-listing-item:hover {
  transform: translateY(-1px);
  border-color: #cbd5f5;
}

/* Buton "Vezi" un pic mai ferm */
.cc-listing-link {
  font-weight: 500;
}
/* ============================================
   Status abonamente – styling pe clase reale
   ============================================ */

.cc-status-pill {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* --- ACTIV --- */
.cc-status-activ {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* --- EXPIRAT --- */
.cc-status-expirat {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* --- ÎN AȘTEPTARE PLATĂ --- */
.cc-status-in-asteptare-plata {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* --- ANULAT --- */
.cc-status-anulat {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}
/* ============================================
   Status abonamente – styling pe clase reale
   ============================================ */

.cc-status-pill {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* --- ACTIV --- */
.cc-status-activ {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* --- EXPIRAT --- */
.cc-status-expirat {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* --- ÎN AȘTEPTARE PLATĂ --- */
.cc-status-in-asteptare-plata {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* --- ANULAT --- */
.cc-status-anulat {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}
/* ============================================
   Card abonament activ sus
   ============================================ */

.cc-top-status {
  margin-bottom: 24px;
}

.cc-top-status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecfeff, #f5f3ff);
  border: 1px solid #dbeafe;
  margin-bottom: 12px;
}

.cc-top-status-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cc-top-status-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.cc-top-status-plan {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.cc-top-status-meta {
  font-size: 13px;
  color: #4b5563;
}

.cc-top-status-right {
  display: flex;
  align-items: center;
}

/* ============================================
   Listări – acțiuni multiple (Vezi / Cere modificare)
   ============================================ */

.cc-listing-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Buton "Cere modificare" */
.cc-listing-modify {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed #23d3d3;
  text-decoration: none;
  color: #0f172a;
  background: #ffffff;
  font-weight: 500;
}

.cc-listing-modify:hover {
  background: #e0fbfb;
}

/* Mesaj când formularul e legat de o listare anume */
.cc-focused-listing {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
}

/* Status abonamente – styling pe clase reale (dacă nu e deja pus) */

.cc-status-pill {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* --- ACTIV --- */
.cc-status-activ {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* --- EXPIRAT --- */
.cc-status-expirat {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* --- ÎN AȘTEPTARE PLATĂ --- */
.cc-status-in-asteptare-plata {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* --- ANULAT --- */
.cc-status-anulat {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}
