/* AI UX Elements v2.0.0 — Custom Elements Only */

/* ========================================
   STATS COUNTER
   ======================================== */

.ai-stats {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.ai-stats__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.ai-stats__title {
    text-align: center;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 40px;
}

.ai-stats--light { color: #fff; }
.ai-stats--dark { color: #1a1a2e; }

.ai-stats__grid {
    display: grid;
    gap: 24px;
    text-align: center;
}

.ai-stats--cols-2 .ai-stats__grid { grid-template-columns: repeat(2, 1fr); }
.ai-stats--cols-3 .ai-stats__grid { grid-template-columns: repeat(3, 1fr); }
.ai-stats--cols-4 .ai-stats__grid { grid-template-columns: repeat(4, 1fr); }

.ai-stats--dividers .ai-si:not(:last-child) {
    border-right: 1px solid rgba(128,128,128,0.2);
}

.ai-si {
    padding: 16px 8px;
}

.ai-si__icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.ai-si__value {
    font-size: 2.8em;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.ai-si__prefix,
.ai-si__suffix {
    font-size: 0.6em;
    font-weight: 600;
    opacity: 0.7;
}

.ai-si__number {
    font-variant-numeric: tabular-nums;
}

.ai-si__label {
    font-size: 0.9em;
    margin-top: 8px;
    opacity: 0.7;
    font-weight: 500;
}

/* ========================================
   CHART WIDGET
   ======================================== */

.ai-chart {
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 24px;
}

.ai-chart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ai-chart__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #1a1a2e;
}

.ai-chart__filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: transparent;
}

.ai-chart__wrap {
    position: relative;
}

/* ========================================
   DASHBOARD STATS
   ======================================== */

.ai-dash-stats__grid {
    display: grid;
    gap: 16px;
}

.ai-dash-stats--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ai-dash-stats--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ai-dash-stats--cols-4 { grid-template-columns: repeat(4, 1fr); }

.ai-dash-sc {
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ai-dash-sc:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.ai-dash-sc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ai-dash-sc__label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.ai-dash-sc__icon {
    opacity: 0.7;
}

.ai-dash-sc__value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
}

.ai-dash-sc__change {
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

.ai-dash-sc__change--positive { color: #22c55e; }
.ai-dash-sc__change--negative { color: #ef4444; }
.ai-dash-sc__change--neutral { color: #888; }

/* ========================================
   SCHEDULE LIST
   ======================================== */

.ai-sched {
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ai-sched__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ai-sched__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #1a1a2e;
}

.ai-sched__filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: transparent;
}

.ai-sched__list {
    display: flex;
    flex-direction: column;
}

.ai-sched-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.ai-sched-item:last-child {
    border-bottom: none;
}

.ai-sched-item:hover {
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
}

.ai-sched-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.ai-sched-item__info {
    flex: 1;
    min-width: 0;
}

.ai-sched-item__title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.ai-sched-item__desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.ai-sched-item__time {
    text-align: right;
    flex-shrink: 0;
}

.ai-sched-item__date {
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.ai-sched-item__hour {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

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

@media (max-width: 849px) {
    .ai-stats--cols-4 .ai-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-dash-stats--cols-3,
    .ai-dash-stats--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 549px) {
    .ai-stats--cols-2 .ai-stats__grid,
    .ai-stats--cols-3 .ai-stats__grid,
    .ai-stats--cols-4 .ai-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-stats--dividers .ai-si {
        border-right: none !important;
    }

    .ai-si__value {
        font-size: 2em;
    }

    .ai-dash-stats--cols-2,
    .ai-dash-stats--cols-3,
    .ai-dash-stats--cols-4 {
        grid-template-columns: 1fr;
    }

    .ai-dash-sc__value {
        font-size: 28px;
    }
}
