/* === CITYCELL DASHBOARD & ANALYTICS === */

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
    border-color: var(--primary);
}

.stat-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 5rem;
    opacity: 0.1;
    transform: rotate(-15deg);
    color: var(--text-dark);
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Charts & Containers */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.card-premium {
    background: white;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

/* Stories / Highlight Rail (Instagram Style) */
.stories-rail {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 15px 5px;
    margin-bottom: 25px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1.5px solid #f1f5f9;
}

.stories-rail::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.story-item:hover {
    transform: scale(1.05);
}

.story-ring {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.story-img-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.story-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-light);
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}