/* ==========================================
   EDIVIC Client Dashboard - Editor Dashboard Matching UI
   ========================================== */

.client-main-content {
    animation: clientFadeIn .35s ease both;
}

@keyframes clientFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.client-hero {
    background:
        radial-gradient(circle at 88% 18%, rgba(245,158,11,.22), transparent 24%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 52%, #111827 100%);
}

.client-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(245,158,11,.14);
    color: #fbbf24;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-primary-btn,
.hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: .9rem;
    transition: .25s ease;
}

.hero-primary-btn {
    background: var(--gold);
    color: #111827;
    box-shadow: 0 12px 26px rgba(245,158,11,.23);
}

.hero-secondary-btn {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
}

.hero-primary-btn:hover,
.hero-secondary-btn:hover {
    transform: translateY(-2px);
}

.client-profile-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 22px;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.client-profile-box span {
    color: rgba(255,255,255,.78) !important;
    font-size: .82rem;
}

.client-alert-box h3 {
    color: #b45309;
    margin-bottom: 6px;
    font-weight: 800;
}

.client-alert-box p {
    color: #d97706;
    font-size: .92rem;
    line-height: 1.65;
    margin: 0;
}

.metric-card {
    min-height: 190px;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.055);
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.metric-subline {
    margin-top: 15px;
    font-size: .84rem;
    color: #ca8a04;
    font-weight: 800;
}

.metric-subline.blue { color: #0284c7; }
.metric-subline.green { color: #16a34a; }
.metric-subline.purple { color: #7c3aed; }

.posted-card:hover .metric-icon { background: #fef3c7; color: #b45309; }
.hired-card:hover .metric-icon { background: #e0f2fe; color: #0369a1; }
.budget-card:hover .metric-icon { background: #dcfce7; color: #15803d; }
.completed-card:hover .metric-icon { background: #ede9fe; color: #6d28d9; }

.client-analytics-grid {
    align-items: stretch;
}

.performance-card {
    display: flex;
    flex-direction: column;
}

.circle-content {
    z-index: 3;
    text-align: center;
}

.circle-content h2 {
    color: var(--primary-dark);
    font-size: 1.55rem;
    margin: 0;
}

.circle-content p {
    color: #64748b;
    font-size: .75rem;
    font-weight: 800;
    margin-top: 4px;
}

.mini-performance-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.mini-performance-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.04);
    border-radius: 12px;
    padding: 11px 13px;
}

.mini-performance-list span {
    color: #64748b;
    font-size: .82rem;
    font-weight: 600;
}

.mini-performance-list strong {
    color: var(--primary-dark);
    font-size: .85rem;
}

.client-graph-card {
    overflow: hidden;
}

.client-graph {
    height: 255px;
    display: flex;
    align-items: end;
    justify-content: space-around;
    gap: 16px;
    padding: 18px 10px 4px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 20px;
    border: 1px solid rgba(15,23,42,.04);
}

.client-graph .bar {
    width: 100%;
    max-width: 84px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.client-graph .fill {
    width: 100%;
    min-height: 12px;
    border-radius: 14px 14px 5px 5px;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    box-shadow: 0 10px 24px rgba(245,158,11,.18);
}

.client-graph .fill1 { height: 34%; }
.client-graph .fill2 { height: 52%; }
.client-graph .fill3 { height: 42%; }
.client-graph .fill4 { height: 70%; }
.client-graph .fill5 { height: 58%; }
.client-graph .fill6 { height: 82%; }

.client-graph span {
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
}

.client-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.quick-action-grid button {
    min-height: 105px;
    border: 1px solid rgba(15,23,42,.05);
    border-radius: 18px;
    background: #f8fafc;
    color: var(--primary-dark);
    font-weight: 800;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .24s ease;
}

.quick-action-grid button i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    box-shadow: 0 8px 22px rgba(15,23,42,.05);
}

.quick-action-grid button:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
    color: #fff;
}

.client-rule-box h3 {
    display: flex;
    align-items: center;
    gap: 9px;
}

.bookmark-title h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bookmark-title h2 i {
    color: #ef4444;
}

.bookmark-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bookmark-tabs button {
    border: none;
    padding: 9px 17px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    font-size: .84rem;
}

#tab-saved-editors-btn {
    background: var(--primary-dark);
    color: white;
}

#tab-saved-projects-btn {
    background: #f1f5f9;
    color: #475569;
}

.soft-loading {
    padding: 28px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #e2e8f0;
    font-weight: 600;
}

/* dashboard.js project rows */
.project,
.client-project-row {
    background: #f8fafc;
    padding: 20px 24px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border: 1px solid rgba(15,23,42,.04);
    transition: .22s ease;
}

.project:hover,
.client-project-row:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.project h3,
.client-project-row h3 {
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 1.02rem;
    font-weight: 800;
}

.project p,
.client-project-row p {
    color: #64748b;
    font-size: .84rem;
    line-height: 1.45;
}

.project button,
.client-project-row button {
    border: none;
    border-radius: 11px;
    background: var(--primary-dark);
    color: #fff;
    padding: 10px 15px;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
}

.status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .06em;
}

.status.active { background: #dcfce7; color: #15803d; }
.status.pending { background: #fef3c7; color: #b45309; }

.activity-box span {
    font-size: .84rem;
    color: #94a3b8;
    display: block;
    margin-top: 10px;
}

body.dark-theme .client-graph,
body.dark-theme .quick-action-grid button,
body.dark-theme .mini-performance-list div,
body.dark-theme .soft-loading,
body.dark-theme .project,
body.dark-theme .client-project-row {
    background: #0f172a !important;
    border-color: rgba(255,255,255,.08) !important;
}

body.dark-theme .quick-action-grid button,
body.dark-theme .project h3,
body.dark-theme .client-project-row h3,
body.dark-theme .mini-performance-list strong,
body.dark-theme .circle-content h2 {
    color: #fff !important;
}

@media(max-width: 900px) {
    .client-action-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    .client-profile-box {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-actions,
    .hero-primary-btn,
    .hero-secondary-btn {
        width: 100%;
    }

    .client-graph {
        gap: 8px;
        padding: 15px 6px 4px;
    }

    .client-graph .bar {
        max-width: 44px;
    }

    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .project,
    .client-project-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .project > div:last-child,
    .client-project-row > div:last-child {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px !important;
    }
}


/* EDIVIC final dashboard logo + profile initial fallback */
.dashboard-logo-img, .saas-header .logo-img {
  width: 46px !important;
  height: 46px !important;
  object-fit: contain !important;
  border-radius: 12px !important;
}
.avatar-initial, .header-avatar.avatar-initial {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #f59e0b);
  color: #fff !important;
  font-weight: 900;
  letter-spacing: .03em;
  box-shadow: 0 10px 24px rgba(15,23,42,.18);
}
.client-profile-box .avatar-initial, .profile-box .avatar-initial {
  width: 64px;
  height: 64px;
  min-width: 64px;
  font-size: 1.35rem;
}
