/* LumaTech Client Portal Styles — extends style.css tokens */

/* Portal top navbar (portal pages don't use the admin sidebar) */
.signing-body, body.portal {
    margin: 0;
    background: var(--slate-50);
}
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--slate-800);
    font-weight: 700;
    font-size: 17px;
}
.nav-logo { width: 32px; height: 32px; object-fit: contain; }
.nav-brand span {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-link {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--slate-600);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}
.nav-link:hover { color: var(--brand-600); background: var(--brand-50); }
.nav-link.active { color: var(--brand-600); background: var(--brand-50); }

/* Portal pages do NOT use the admin sidebar — override the main-content margin */
body:not(.has-sidebar) .main-content,
body:not(.has-sidebar) .container {
    margin-left: auto;
    margin-right: auto;
}


/* Status badges (development statuses) */
.badge-planning { background: var(--slate-100); color: var(--slate-600); }
.badge-in_progress { background: var(--brand-100); color: var(--brand-700); }
.badge-in_review { background: var(--amber-100); color: #92400e; }
.badge-launched { background: var(--green-100); color: #166534; }
.badge-on_hold { background: #f1f5f9; color: var(--slate-500); }
.badge-app_review { background: #fef3c7; color: #92400e; }

/* Development cards (client dashboard) */
.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.dev-card {
    display: block;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: var(--slate-800);
    box-shadow: var(--shadow);
    transition: all 0.15s;
}
.dev-card:hover {
    border-color: var(--brand-400);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.dev-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--slate-900);
}

/* Milestone timeline */
.milestone-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.milestone-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--slate-50);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--slate-300);
}
.milestone-item.done {
    border-left-color: var(--green-500);
    background: #f0fdf4;
}
.milestone-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--slate-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.milestone-item.done .milestone-dot {
    background: var(--green-500);
    border-color: var(--green-500);
}
.milestone-content {
    flex: 1;
}
.milestone-name {
    font-weight: 500;
    color: var(--slate-800);
}
.milestone-item.done .milestone-name {
    text-decoration: line-through;
    color: var(--slate-500);
}

/* Brand assets page */
.logo-preview {
    max-width: 280px;
    max-height: 140px;
    object-fit: contain;
    background: var(--slate-50);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
}

.color-pickers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.color-picker {
    background: var(--slate-50);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
}
.color-picker label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 8px;
}
.color-picker input[type="color"] {
    width: 48px;
    height: 36px;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
}
.color-picker input[type="text"] {
    padding: 8px 10px;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    font-size: 13px;
}
.color-swatch {
    width: 100%;
    height: 48px;
    border-radius: 6px;
    margin-top: 12px;
    border: 1px solid var(--slate-200);
}

/* Requirements page tabs */
.req-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--slate-100);
    padding: 4px;
    border-radius: 10px;
    width: fit-content;
}
.req-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: var(--slate-600);
    cursor: pointer;
    transition: all 0.15s;
}
.req-tab.active {
    background: #fff;
    color: var(--brand-700);
    box-shadow: var(--shadow);
    font-weight: 600;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.image-tile {
    position: relative;
    aspect-ratio: 1;
    background: var(--slate-50);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--slate-200);
}
.image-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}
.image-delete:hover { background: var(--red-500); }

/* Form inputs match style.css standards */
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}
