/* Public Dashboard Styles */
.dashboard-header {
    margin-bottom: 3rem;
}

/* Public Stat Cards */
.public-stat-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.public-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(233, 69, 96, 0.3);
}

.stat-icon-bg {
    position: absolute;
    right: -20px;
    top: -20px;
    font-size: 5rem;
    color: rgba(255,255,255,0.1);
    transform: rotate(-15deg);
}

.stat-info {
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.stat-label {
    color: rgba(255,255,255,0.7);
    margin: 0.5rem 0;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}

.stat-change.positive {
    color: #28a745;
}

.stat-change.negative {
    color: #dc3545;
}

.stat-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}

.stat-indicator.online {
    color: #28a745;
}

.stat-indicator.excellent {
    color: #17a2b8;
}

/* Chart Cards */
.chart-card {
    background: var(--secondary-color);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chart-header h3 {
    color: var(--text-light);
    margin: 0;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* Activity Feed */
.activity-card {
    background: var(--secondary-color);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
}

.activity-card h3 {
    color: var(--text-light);
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(5px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.activity-icon.info {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

.activity-icon.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0;
    color: var(--text-light);
}

.activity-content small {
    color: rgba(255,255,255,0.6);
}

.activity-time {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.25rem;
}

/* Service Status */
.service-status-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-status-item:hover {
    background: rgba(255,255,255,0.08);
}

.service-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.service-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.service-status.operational {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.service-status.degraded {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.service-status.down {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.status-summary {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--accent-color);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.stat-indicator i {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .public-stat-card {
        margin-bottom: 1rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}