/**
 * AWS Infrastructure Monitor - Public/Frontend Styles
 */

/* Main Container */
.aws-monitor-public-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.aws-monitor-public-wrapper.theme-dark {
    background: #1a1a1a;
    color: #e0e0e0;
}

/* Loading State */
.aws-monitor-public-loading {
    text-align: center;
    padding: 40px;
    color: #757575;
}

/* Service Cards */
.aws-service-card {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.aws-service-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.theme-dark .aws-service-card {
    background: #2a2a2a;
    color: #e0e0e0;
}

.aws-service-card h3 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
    font-size: 20px;
    font-weight: 600;
    color: #2271b1;
}

.theme-dark .aws-service-card h3 {
    color: #4a9eff;
    border-bottom-color: #444;
}

/* Service Stats */
.service-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.service-stats .stat-item,
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.service-stats .stat-label,
.stat-item .stat-label {
    font-size: 12px;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.theme-dark .service-stats .stat-label,
.theme-dark .stat-item .stat-label {
    color: #aaa;
}

.service-stats .stat-value,
.stat-item .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1;
}

.theme-dark .service-stats .stat-value,
.theme-dark .stat-item .stat-value {
    color: #e0e0e0;
}

/* Charts */
.aws-service-card canvas {
    max-height: 300px;
    margin-top: 20px;
}

/* Chart Container for Shortcodes */
.aws-monitor-chart-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.aws-monitor-chart-container h4 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    color: #1d2327;
    font-size: 18px;
}

.aws-monitor-chart-container canvas {
    max-height: 400px;
}

/* S3 Info */
.aws-s3-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.aws-s3-info h4 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    color: #1d2327;
    font-size: 18px;
}

.s3-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.s3-stats .stat-item {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.s3-stats .stat-label {
    font-size: 14px;
    color: #757575;
    font-weight: 500;
}

.s3-stats .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
}

/* Loading States */
.s3-stats-loading {
    text-align: center;
    padding: 20px;
    color: #757575;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .aws-monitor-public-wrapper {
        padding: 15px;
    }

    .aws-service-card {
        padding: 20px;
    }

    .service-stats {
        flex-direction: column;
        gap: 20px;
    }

    .service-stats .stat-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .aws-monitor-chart-container {
        padding: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aws-service-card {
    animation: fadeIn 0.5s ease-out;
}

.aws-service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.aws-service-card:nth-child(3) {
    animation-delay: 0.2s;
}

.aws-service-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Utility Classes */
.text-success {
    color: #00a32a !important;
}

.text-error {
    color: #d63638 !important;
}

.text-warning {
    color: #dba617 !important;
}
