/* ================================
   ENTERPRISE PREVIEW WINDOWS
   Interactive portal mock windows for enterprise pages.
   Prefix: ep- (enterprise preview)
   ================================ */

/* Disable hover overlay on preview windows */
.showcase-image:has(.ep-window)::before {
    display: none;
}

/* Window Container */
.ep-window {
    background: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.5;
    width: 100%;
}

/* macOS Titlebar */
.ep-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ep-dots {
    display: flex;
    gap: 6px;
}

.ep-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ep-dots .dot.red { background: #FF5F56; }
.ep-dots .dot.yellow { background: #FFBD2E; }
.ep-dots .dot.green { background: #27C93F; }

.ep-titlebar-text {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

/* Body Layout */
.ep-body {
    display: flex;
    min-height: 280px;
}

/* Sidebar */
.ep-sidebar {
    width: 140px;
    flex-shrink: 0;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 16px 0;
}

.ep-sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 12px;
    color: #64748b;
    cursor: default;
    transition: background 0.15s;
}

.ep-sidebar-nav-item.active {
    color: #0f172a;
    font-weight: 600;
    background: #e2e8f0;
}

.ep-sidebar-nav-item .nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Main Content */
.ep-main {
    flex: 1;
    padding: 20px;
    overflow: hidden;
}

/* Section Title */
.ep-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 12px;
}

/* Divider */
.ep-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 16px 0;
}

/* Stat Grid */
.ep-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.ep-stat-card {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.ep-stat-label {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.ep-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.ep-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Progress Bars */
.ep-progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ep-progress-label {
    font-size: 12px;
    color: #64748b;
    min-width: 80px;
}

.ep-progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.ep-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.ep-progress-text {
    font-size: 11px;
    color: #94a3b8;
    min-width: 40px;
    text-align: right;
}

/* Activity List */
.ep-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ep-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
}

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

.ep-activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ep-activity-text {
    flex: 1;
    color: #334155;
}

.ep-activity-time {
    color: #94a3b8;
    font-size: 11px;
    flex-shrink: 0;
}

.ep-activity-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    flex-shrink: 0;
}

/* Table */
.ep-table {
    width: 100%;
}

.ep-table-header {
    display: grid;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.ep-table-row {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    font-size: 12px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.ep-table-row:last-child {
    border-bottom: none;
}

/* Badges */
.ep-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.ep-badge.green {
    background: #dcfce7;
    color: #166534;
}

.ep-badge.blue {
    background: #dbeafe;
    color: #1e40af;
}

.ep-badge.yellow {
    background: #fef3c7;
    color: #92400e;
}

.ep-badge.gray {
    background: #f1f5f9;
    color: #475569;
}

.ep-badge.violet {
    background: #ede9fe;
    color: #5b21b6;
}

/* Query Prompt (stakeholders) */
.ep-query-prompt {
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ep-query-prompt .prompt-icon {
    color: #94a3b8;
    flex-shrink: 0;
}

.ep-query-prompt .prompt-text {
    color: #334155;
    font-style: italic;
}

/* Toggle Row (license-holders) */
.ep-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ep-toggle-row:last-child {
    border-bottom: none;
}

.ep-toggle-label {
    font-size: 12px;
    color: #334155;
}

.ep-toggle-sublabel {
    font-size: 11px;
    color: #94a3b8;
}

.ep-toggle {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    position: relative;
}

.ep-toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    transition: left 0.2s;
}

.ep-toggle.on {
    background: #22c55e;
}

.ep-toggle.on::after {
    left: 18px;
}

.ep-toggle.off {
    background: #cbd5e1;
}

.ep-toggle.off::after {
    left: 2px;
}

/* Client Card (partners) */
.ep-client-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
}

.ep-client-card:last-child {
    margin-bottom: 0;
}

.ep-client-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.ep-client-info {
    flex: 1;
    min-width: 0;
}

.ep-client-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.ep-client-meta {
    font-size: 11px;
    color: #94a3b8;
}

/* Settings Section (license-holders) */
.ep-settings-section {
    margin-bottom: 16px;
}

.ep-settings-section:last-child {
    margin-bottom: 0;
}

.ep-settings-header {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ep-settings-header .icon {
    color: #94a3b8;
}

/* Color Dot */
.ep-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}

/* Footer bar */
.ep-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 11px;
    color: #94a3b8;
}

.ep-footer-lock {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Quick Action */
.ep-quick-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11px;
    color: #64748b;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Task Card */
.ep-task-card {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
}

.ep-task-title {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.ep-task-meta {
    font-size: 11px;
    color: #94a3b8;
}

/* ================================
   ACCENT COLORS
   ================================ */

/* Cyan — Customers */
.ep-accent-cyan .ep-stat-icon { background: #ecfeff; color: #0891b2; }
.ep-accent-cyan .ep-progress-fill { background: #0891b2; }
.ep-accent-cyan .ep-activity-dot { background: #0891b2; }
.ep-accent-cyan .ep-sidebar-nav-item.active { background: #ecfeff; color: #0891b2; }
.ep-accent-cyan .ep-sidebar-nav-item .nav-dot { background: #0891b2; }

/* Blue — Developers */
.ep-accent-blue .ep-stat-icon { background: #eff6ff; color: #3b82f6; }
.ep-accent-blue .ep-progress-fill { background: #3b82f6; }
.ep-accent-blue .ep-activity-dot { background: #3b82f6; }
.ep-accent-blue .ep-sidebar-nav-item.active { background: #eff6ff; color: #3b82f6; }
.ep-accent-blue .ep-sidebar-nav-item .nav-dot { background: #3b82f6; }
.ep-accent-blue .ep-activity-tag { background: #eff6ff; color: #3b82f6; }

/* Violet — License Holders */
.ep-accent-violet .ep-stat-icon { background: #f5f3ff; color: #7c3aed; }
.ep-accent-violet .ep-progress-fill { background: #7c3aed; }
.ep-accent-violet .ep-activity-dot { background: #7c3aed; }
.ep-accent-violet .ep-sidebar-nav-item.active { background: #f5f3ff; color: #7c3aed; }
.ep-accent-violet .ep-sidebar-nav-item .nav-dot { background: #7c3aed; }
.ep-accent-violet .ep-toggle.on { background: #7c3aed; }

/* Green — Partners */
.ep-accent-green .ep-stat-icon { background: #f0fdf4; color: #22c55e; }
.ep-accent-green .ep-progress-fill { background: #22c55e; }
.ep-accent-green .ep-activity-dot { background: #22c55e; }
.ep-accent-green .ep-client-avatar { background: #22c55e; }

/* Purple — Stakeholders */
.ep-accent-purple .ep-stat-icon { background: #faf5ff; color: #9333ea; }
.ep-accent-purple .ep-progress-fill { background: #9333ea; }
.ep-accent-purple .ep-activity-dot { background: #9333ea; }

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

@media (max-width: 968px) {
    .ep-sidebar {
        width: 110px;
    }

    .ep-sidebar-nav-item {
        font-size: 11px;
        padding: 6px 12px;
    }

    .ep-stat-value {
        font-size: 18px;
    }

    .ep-body {
        min-height: 240px;
    }
}

@media (max-width: 640px) {
    .ep-sidebar {
        display: none;
    }

    .ep-stat-grid {
        grid-template-columns: 1fr;
    }

    .ep-main {
        padding: 14px;
    }

    .ep-stat-value {
        font-size: 16px;
    }

    .ep-stat-card {
        padding: 10px;
    }

    .ep-activity-item {
        font-size: 11px;
    }

    .ep-table-header,
    .ep-table-row {
        font-size: 11px;
        padding: 6px 8px;
    }

    .ep-body {
        min-height: 200px;
    }
}
