/* Client-specific styles for login and other client pages */

.auth-body {
    background: url('/assets/img/login-background.jpg') no-repeat center center fixed;
    background-size: cover;
}

.login-container {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Client Navigation */
.client-nav {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00f5a0;
}

.nav-brand i {
    color: #00d4ff;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.nav-link.active {
    background: linear-gradient(135deg, #00f5a0 0%, #00d4ff 100%);
    color: #fff;
}

.nav-link.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

/* Client Container */
.client-container {
    padding-top: 80px;
    min-height: 100vh;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Progress Dashboard Styles */
.progress-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.progress-card {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.progress-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-card-header i {
    font-size: 1.5rem;
    color: #00d4ff;
}

.progress-card h3 {
    color: #00f5a0;
    margin: 0;
    font-size: 1.25rem;
}

.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

.goal-progress {
    margin: 1rem 0;
}

.goal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.goal-label {
    font-weight: 600;
    color: #e0e0e0;
}

.goal-value {
    color: #00f5a0;
    font-weight: 700;
}

.goal-percentage {
    color: #00d4ff;
    font-size: 0.9rem;
}

/* Achievement Badges */
.achievement-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #00f5a0 0%, #00d4ff 100%);
    color: #fff;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge i {
    font-size: 1rem;
}

/* Client Footer */
.client-footer {
    background: rgba(14,14,14,0.95);
    border-top: 1px solid rgba(0,212,255,0.15);
    padding: 1.5rem 2rem;
    text-align: center;
    color: #555;
    font-size: 0.85rem;
    margin-top: 4rem;
}

/* ══════════════════════════════════════════════════════
   DASHBOARD  (cd-*)
══════════════════════════════════════════════════════ */
.cd-page { display: flex; flex-direction: column; gap: 1.5rem; }

/* Hero */
.cd-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26,26,26,0.9);
    border: 1px solid rgba(0,212,255,0.18);
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cd-hero-left { display: flex; align-items: center; gap: 1.25rem; }
.cd-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00d4ff;
    flex-shrink: 0;
}
.cd-greeting { font-size: 1.55rem; font-weight: 700; color: #e0e0e0; margin: 0 0 0.25rem; line-height: 1.2; }
.cd-greeting span { background: linear-gradient(135deg,#00f5a0,#00d4ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cd-subtext { color: #888; font-size: 0.85rem; margin: 0 0 0.25rem; }
.cd-goal-tag { color: #00d4ff; font-size: 0.85rem; margin: 0; }
.cd-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Buttons */
.cd-btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1.25rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.9rem; text-decoration: none; cursor: pointer; border: none; transition: all 0.25s; }
.cd-btn-primary { background: linear-gradient(135deg,#00f5a0,#00d4ff); color: #0a0a0a; }
.cd-btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.cd-btn-outline { background: transparent; border: 1px solid #00d4ff; color: #00d4ff; }
.cd-btn-outline:hover { background: rgba(0,212,255,0.1); }
.cd-btn-full { width: 100%; justify-content: center; }
.cd-btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }

/* Alerts */
.cd-alert { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.25rem; border-radius: 0.6rem; font-size: 0.9rem; font-weight: 500; }
.cd-alert-success { background: rgba(0,245,160,0.1); border: 1px solid rgba(0,245,160,0.35); color: #00f5a0; }
.cd-alert-error   { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.35); color: #ff6b6b; }

/* Stats strip */
.cd-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px,1fr));
    gap: 1rem;
}
.cd-stat {
    background: rgba(26,26,26,0.9);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 0.75rem;
    padding: 1.1rem 1rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
    text-align: center;
}
.cd-stat-value { font-size: 1.55rem; font-weight: 700; color: #00d4ff; line-height: 1; }
.cd-stat-value small { font-size: 0.7rem; color: #666; font-weight: 400; }
.cd-stat-label { font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 0.04em; }
.cd-positive { color: #00f5a0 !important; }
.cd-negative { color: #ff6b6b !important; }

/* Cards */
.cd-card {
    background: rgba(26,26,26,0.92);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 1rem;
    padding: 1.5rem;
}
.cd-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; gap: 1rem; }
.cd-card-title { font-size: 1.05rem; font-weight: 600; color: #e0e0e0; margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.cd-card-title i { color: #00d4ff; }
.cd-badge { background: rgba(0,212,255,0.12); border: 1px solid rgba(0,212,255,0.3); color: #00d4ff; padding: 0.25rem 0.7rem; border-radius: 1rem; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.cd-link { color: #00d4ff; font-size: 0.85rem; text-decoration: none; display: flex; align-items: center; gap: 0.3rem; }
.cd-link:hover { color: #00f5a0; }

/* Progress bar */
.cd-progress-track { height: 10px; background: rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; margin-bottom: 0.75rem; }
.cd-progress-fill { height: 100%; background: linear-gradient(90deg,#00f5a0,#00d4ff); border-radius: 10px; transition: width 0.6s ease; }
.cd-progress-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: #777; }

/* 2-col grid */
.cd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* Form */
.cd-form { display: flex; flex-direction: column; gap: 1rem; }
.cd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cd-field { display: flex; flex-direction: column; gap: 0.4rem; }
.cd-field label { font-size: 0.82rem; color: #aaa; font-weight: 500; }
.cd-optional { font-weight: 400; color: #666; font-size: 0.78rem; }
.cd-field input, .cd-field select, .cd-field textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.cd-field input:focus, .cd-field select:focus, .cd-field textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(0,212,255,0.05);
}

/* Profile summary */
.cd-profile-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.cd-profile-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cd-profile-row:last-child { border-bottom: none; }
.cd-profile-row i { width: 16px; color: #00d4ff; font-size: 0.85rem; flex-shrink: 0; }
.cd-profile-label { font-size: 0.8rem; color: #888; width: 70px; flex-shrink: 0; }
.cd-profile-val { font-size: 0.88rem; color: #e0e0e0; font-weight: 500; }

/* Chart */
.cd-chart-wrap { position: relative; height: 260px; }

/* Table */
.cd-table-wrap { overflow-x: auto; }
.cd-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.cd-table th { padding: 0.65rem 0.85rem; text-align: left; color: #00d4ff; font-weight: 600; border-bottom: 1px solid rgba(0,212,255,0.2); white-space: nowrap; }
.cd-table td { padding: 0.65rem 0.85rem; color: #ccc; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cd-table tr:last-child td { border-bottom: none; }
.cd-table tr:hover td { background: rgba(0,212,255,0.03); }
.cd-fw { font-weight: 600; color: #e0e0e0 !important; }
.cd-muted { color: #666 !important; }

/* Quick links */
.cd-quick-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cd-ql-card {
    background: rgba(26,26,26,0.9);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 0.85rem;
    padding: 1.25rem 0.75rem;
    text-align: center;
    text-decoration: none;
    color: #aaa;
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    transition: all 0.25s;
    font-size: 0.82rem; font-weight: 500;
}
.cd-ql-card i { font-size: 1.4rem; color: #00d4ff; }
.cd-ql-card:hover { background: rgba(0,212,255,0.08); border-color: #00d4ff; color: #fff; transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════
   WORKOUT PAGE  (wc-*)
══════════════════════════════════════════════════════ */
.wc-page { display: flex; flex-direction: column; gap: 1.5rem; }
.wc-page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.wc-page-title { font-size: 1.6rem; font-weight: 700; color: #e0e0e0; margin: 0; display: flex; align-items: center; gap: 0.6rem; }
.wc-page-title i { color: #00d4ff; }

.wc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 1.25rem; }
.wc-card {
    background: rgba(26,26,26,0.92);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 1rem;
    padding: 1.35rem;
    display: flex; flex-direction: column; gap: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.wc-card:hover { border-color: rgba(0,212,255,0.4); box-shadow: 0 4px 24px rgba(0,212,255,0.08); }
.wc-card.completed { border-color: rgba(0,245,160,0.3); }

.wc-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.wc-card-title { font-size: 1rem; font-weight: 600; color: #e0e0e0; margin: 0; }
.wc-status { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.65rem; border-radius: 1rem; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.wc-status.pending   { background: rgba(255,193,7,0.12); border: 1px solid rgba(255,193,7,0.35); color: #ffc107; }
.wc-status.completed { background: rgba(0,245,160,0.12); border: 1px solid rgba(0,245,160,0.35); color: #00f5a0; }

.wc-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wc-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.55rem; background: rgba(0,212,255,0.07); border: 1px solid rgba(0,212,255,0.18); border-radius: 0.35rem; font-size: 0.75rem; color: #aaa; }
.wc-tag i { color: #00d4ff; font-size: 0.7rem; }

.wc-exercises { font-size: 0.82rem; color: #888; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 0.75rem; }
.wc-exercise-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.wc-exercise-list li { color: #bbb; display: flex; align-items: center; gap: 0.4rem; }
.wc-exercise-list li::before { content: '•'; color: #00d4ff; }

.wc-actions { display: flex; gap: 0.65rem; margin-top: auto; }
.wc-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 1rem; border-radius: 0.45rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; text-decoration: none; border: none; transition: all 0.2s; }
.wc-btn-primary { background: linear-gradient(135deg,#00f5a0,#00d4ff); color: #0a0a0a; }
.wc-btn-primary:hover { opacity: 0.85; }
.wc-btn-ghost { background: transparent; border: 1px solid rgba(0,212,255,0.35); color: #00d4ff; }
.wc-btn-ghost:hover { background: rgba(0,212,255,0.1); }

/* Workout modal */
.wc-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.75); z-index: 2000;
    align-items: center; justify-content: center;
}
.wc-modal-overlay.open { display: flex; }
.wc-modal {
    background: #161616;
    border: 1px solid rgba(0,212,255,0.25);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 600px; width: 95%;
    max-height: 85vh; overflow-y: auto;
}
.wc-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.wc-modal-title { font-size: 1.15rem; font-weight: 700; color: #e0e0e0; margin: 0; }
.wc-modal-close { background: none; border: none; color: #888; font-size: 1.4rem; cursor: pointer; padding: 0; line-height: 1; }
.wc-modal-close:hover { color: #fff; }
.wc-ex-item { padding: 0.85rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 0.5rem; margin-bottom: 0.65rem; }
.wc-ex-name { font-weight: 600; color: #e0e0e0; margin-bottom: 0.35rem; }
.wc-ex-detail { font-size: 0.82rem; color: #888; }
.wc-ex-detail span { color: #00d4ff; font-weight: 500; }
.wc-complete-form { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); }

/* History section */
.wc-section-title { font-size: 1.05rem; font-weight: 600; color: #e0e0e0; margin: 0 0 1rem; display: flex; align-items: center; gap: 0.5rem; }
.wc-section-title i { color: #00d4ff; }
.wc-history-list { display: flex; flex-direction: column; gap: 0.65rem; }
.wc-history-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background: rgba(0,245,160,0.04); border: 1px solid rgba(0,245,160,0.15); border-radius: 0.6rem; font-size: 0.85rem; flex-wrap: wrap; gap: 0.5rem; }
.wc-history-name { font-weight: 600; color: #e0e0e0; }
.wc-history-meta { color: #888; }

/* ══════════════════════════════════════════════════════
   ADMIN MEAL PLANS  (amp-*)
══════════════════════════════════════════════════════ */
.amp-page { display: flex; flex-direction: column; gap: 1.5rem; }
.amp-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.amp-title { font-size: 1.6rem; font-weight: 700; color: #e0e0e0; margin: 0; }
.amp-card { background: rgba(26,26,26,0.9); border: 1px solid rgba(0,212,255,0.15); border-radius: 1rem; padding: 1.5rem; }
.amp-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.amp-card-title { font-size: 1.05rem; font-weight: 600; color: #e0e0e0; margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.amp-card-title i { color: #00d4ff; }
.amp-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.amp-table th { padding: 0.65rem 0.85rem; text-align: left; color: #00d4ff; font-weight: 600; border-bottom: 1px solid rgba(0,212,255,0.2); white-space: nowrap; }
.amp-table td { padding: 0.65rem 0.85rem; color: #ccc; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
.amp-table tr:last-child td { border-bottom: none; }
.amp-table tr:hover td { background: rgba(0,212,255,0.03); }
.amp-badge { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 1rem; font-size: 0.75rem; font-weight: 600; }
.amp-badge.active   { background: rgba(0,245,160,0.12); border: 1px solid rgba(0,245,160,0.3); color: #00f5a0; }
.amp-badge.inactive { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.3); color: #ff6b6b; }
.amp-badge.pending  { background: rgba(255,193,7,0.1);  border: 1px solid rgba(255,193,7,0.3);  color: #ffc107; }
.amp-form { display: flex; flex-direction: column; gap: 1rem; }
.amp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.amp-field { display: flex; flex-direction: column; gap: 0.4rem; }
.amp-field label { font-size: 0.82rem; color: #aaa; font-weight: 500; }
.amp-field input, .amp-field select, .amp-field textarea {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(0,212,255,0.2);
    border-radius: 0.5rem; padding: 0.65rem 0.85rem; color: #e0e0e0;
    font-size: 0.9rem; font-family: inherit; width: 100%; box-sizing: border-box;
}
.amp-field input:focus, .amp-field select:focus { outline: none; border-color: #00d4ff; }
.amp-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.55rem 1.1rem; border-radius: 0.5rem; font-size: 0.88rem; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all 0.2s; }
.amp-btn-primary { background: linear-gradient(135deg,#00f5a0,#00d4ff); color: #0a0a0a; }
.amp-btn-primary:hover { opacity: 0.88; }
.amp-btn-danger { background: rgba(255,107,107,0.15); border: 1px solid rgba(255,107,107,0.35); color: #ff6b6b; }
.amp-btn-danger:hover { background: rgba(255,107,107,0.25); }
.amp-btn-ghost { background: transparent; border: 1px solid rgba(0,212,255,0.35); color: #00d4ff; }
.amp-btn-ghost:hover { background: rgba(0,212,255,0.1); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .cd-grid-2    { grid-template-columns: 1fr; }
    .cd-quick-links { grid-template-columns: repeat(3,1fr); }
    .wc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-container { padding: 0 1rem; }
    .nav-menu { gap: 0.5rem; }
    .nav-link { padding: 0.4rem 0.6rem; font-size: 0.82rem; }
    .nav-link span { display: none; }
    .client-container { padding: 70px 1rem 1rem; }
    .progress-dashboard { grid-template-columns: 1fr; }
    .progress-card { padding: 1rem; }
    .cd-hero { flex-direction: column; align-items: flex-start; }
    .cd-hero-actions { width: 100%; }
    .cd-stats { grid-template-columns: repeat(3,1fr); }
    .cd-form-row { grid-template-columns: 1fr; }
    .cd-quick-links { grid-template-columns: repeat(3,1fr); }
    .amp-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .cd-stats { grid-template-columns: repeat(2,1fr); }
    .cd-quick-links { grid-template-columns: repeat(2,1fr); }
    .cd-greeting { font-size: 1.25rem; }
}