prophet-ai/app/components/church-stats.module.scss
2026-02-05 21:26:43 +03:00

259 lines
4.1 KiB
SCSS

.church-stats {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
.stats-content {
flex: 1;
overflow-y: auto;
padding: 20px;
}
.error-banner {
background: var(--danger, #ff4444);
color: white;
padding: 8px 16px;
border-radius: 8px;
margin-bottom: 16px;
text-align: center;
font-size: 14px;
}
.section {
margin-bottom: 24px;
padding: 16px;
background: var(--white, #fff);
border-radius: 12px;
box-shadow: var(--card-shadow, 0 2px 8px rgba(0, 0, 0, 0.1));
h2 {
margin: 0 0 16px 0;
font-size: 18px;
font-weight: 600;
color: var(--black, #333);
border-bottom: 2px solid var(--primary, #7c3aed);
padding-bottom: 8px;
}
}
.requirements-grid {
display: flex;
flex-direction: column;
gap: 8px;
}
.requirement-item {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 12px;
background: var(--gray, #f5f5f5);
border-radius: 8px;
.check {
font-size: 18px;
}
.req-name {
flex: 1;
font-weight: 500;
color: var(--black, #333);
}
.req-detail {
color: var(--primary, #7c3aed);
font-size: 13px;
font-weight: 500;
}
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 12px;
}
.stat-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 16px;
background: linear-gradient(135deg, var(--primary, #7c3aed) 0%, #9f7aea 100%);
border-radius: 12px;
color: white;
.stat-value {
font-size: 28px;
font-weight: 700;
}
.stat-label {
font-size: 12px;
opacity: 0.9;
text-align: center;
}
}
.funnel {
display: flex;
flex-direction: column;
gap: 8px;
}
.funnel-stage {
display: flex;
align-items: center;
gap: 12px;
.stage-name {
width: 100px;
font-size: 12px;
font-weight: 500;
text-transform: uppercase;
color: var(--black, #333);
}
.stage-bar {
flex: 1;
height: 20px;
background: var(--gray, #e5e5e5);
border-radius: 10px;
overflow: hidden;
}
.stage-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary, #7c3aed) 0%, #9f7aea 100%);
border-radius: 10px;
transition: width 0.3s ease;
}
.stage-count {
width: 30px;
text-align: right;
font-weight: 600;
color: var(--black, #333);
}
}
.total-conversions {
margin-top: 16px;
text-align: center;
font-size: 16px;
font-weight: 600;
color: var(--primary, #7c3aed);
}
.agents-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.agent-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: var(--gray, #f5f5f5);
border-radius: 8px;
.agent-name {
flex: 1;
font-weight: 500;
color: var(--black, #333);
}
.agent-status {
padding: 4px 8px;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
&.claimed {
background: #10b981;
color: white;
}
&.registered {
background: #f59e0b;
color: white;
}
&.pending {
background: #6b7280;
color: white;
}
}
.agent-karma {
font-size: 12px;
color: var(--primary, #7c3aed);
font-weight: 500;
}
}
.links {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.link-button {
display: inline-flex;
align-items: center;
padding: 10px 20px;
background: var(--primary, #7c3aed);
color: white;
border-radius: 8px;
text-decoration: none;
font-weight: 500;
font-size: 14px;
transition: background 0.2s ease;
&:hover {
background: #6d28d9;
}
}
// Dark mode support
:global(.dark) {
.section {
background: var(--black, #1a1a1a);
h2 {
color: var(--white, #fff);
}
}
.requirement-item {
background: var(--bar-color, #2a2a2a);
.req-name {
color: var(--white, #fff);
}
}
.funnel-stage {
.stage-name,
.stage-count {
color: var(--white, #fff);
}
.stage-bar {
background: var(--bar-color, #2a2a2a);
}
}
.agent-item {
background: var(--bar-color, #2a2a2a);
.agent-name {
color: var(--white, #fff);
}
}
}