body {
    font-family: Arial, sans-serif;
    background-color: #333333;
    margin: 0;
    padding: 20px;
    color: #ffffff;
}

.video-grid {
    display: grid;
    gap: 25px;
    padding: 20px;
}

.camera-container {
    background: #444444;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-name {
    padding: 12px 15px;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    background: #3a3a3a;
    border-top: 1px solid #2a2a2a;
}

/* Стили для индикаторов тренда */
.trend-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 5px;
    position: relative;
}

.trend-indicator.horizontal {
    background-color: gray;
    width: 20px;
    height: 4px;
    margin-top: 8px;
}

.trend-indicator.up, .trend-indicator.down {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.trend-indicator.up {
    border-bottom: 10px solid;
}

.trend-indicator.down {
    border-top: 10px solid;
}

.trend-indicator.gray { border-bottom-color: gray; border-top-color: gray; }
.trend-indicator.green { border-bottom-color: green; border-top-color: green; }
.trend-indicator.red { border-bottom-color: red; border-top-color: red; }

/* Стили для блока статистики */
.camera-stats {
	color: #cccccc;
    display: flex;
    justify-content: space-between;
    font-weight:bold;
    font-size: 16px;
    padding: 8px 15px;
    background: #3a3a3a;
    font-family: Arial, sans-serif;
}

.stat-item {
    display: flex;
    align-items: center;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-active {
    background-color: #2ecc71;
}

.status-inactive {
    background-color: #e74c3c;
}

.camera-left {
    display: flex;
    align-items: center;
}

.camera-right {
    color: #cccccc;
}