/* Forest-themed Network Overview Section */
.forest-overview-section {
    background: linear-gradient(180deg, rgba(19, 47, 32, 0.9) 0%, rgba(35, 60, 45, 0.85) 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Leafy background pattern */
.forest-overview-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%233e6e4c' fill-opacity='0.1' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.forest-section-title {
    color: #e3ffe0;
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.forest-section-title::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='%234caf50' d='M12,2L4.5,20.29L5.21,21L12,18L18.79,21L19.5,20.29L12,2Z'%3E%3C/path%3E%3C/svg%3E");
    width: 30px;
    height: 30px;
    display: inline-block;
    margin-right: 10px;
    opacity: 0.9;
}

/* Tree metric card */
.tree-metric-card {
    background: linear-gradient(135deg, rgba(51, 105, 30, 0.8) 0%, rgba(60, 79, 25, 0.8) 100%);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.tree-metric-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='%238bc34a' fill-opacity='0.1' d='M14 16H9v-2h5V9.87a4 4 0 1 1 2 0V14h5v2h-5v15.95A10 10 0 0 0 23.66 27l-3.46-2 8.2-2.2-2.9 5a12 12 0 0 1-21 0l-2.89-5 8.2 2.2-3.47 2A10 10 0 0 0 14 31.95V16zm40 40h-5v-2h5v-4.13a4 4 0 1 1 2 0V54h5v2h-5v15.95A10 10 0 0 0 63.66 67l-3.47-2 8.2-2.2-2.88 5a12 12 0 0 1-21.02 0l-2.88-5 8.2 2.2-3.47 2A10 10 0 0 0 54 71.95V56zm-39 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm40-40a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM15 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm40 40a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'%3E%3C/path%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.15;
}

.tree-metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Trunk-like card base */
.tree-metric-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 20px;
    background: #5d4037;
    border-radius: 0 0 10px 10px;
    z-index: -1;
    opacity: 0.6;
}

.tree-metric-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: rgba(27, 94, 32, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(139, 195, 74, 0.6);
}

.tree-metric-icon {
    color: #c5e1a5;
    font-size: 24px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

/* Leafy animated background */
.tree-metric-icon-container::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath fill='%238bc34a' fill-opacity='0.3' d='M15 15h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zm4-12h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zm4-12h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zm8-16h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zm4-12h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zm4-12h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2z'%3E%3C/path%3E%3C/svg%3E");
    animation: leafBackground 60s linear infinite;
    opacity: 0.3;
}

@keyframes leafBackground {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tree-metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tree-metric-label {
    color: #e8f5e9;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Empty state styling */
.forest-alert {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.7) 0%, rgba(46, 125, 50, 0.7) 100%);
    border-radius: 12px;
    padding: 20px;
    color: #e8f5e9;
    position: relative;
    overflow: hidden;
    border-left: 5px solid #4caf50;
}

.forest-alert::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%234caf50' fill-opacity='0.1' d='M0 0h100v100H0z'%3E%3C/path%3E%3Cpath fill='%238bc34a' fill-opacity='0.1' d='M10 10h80v80H10z'%3E%3C/path%3E%3Cpath fill='%23cddc39' fill-opacity='0.1' d='M20 20h60v60H20z'%3E%3C/path%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.2;
}

.forest-alert i {
    color: #8bc34a;
    margin-right: 10px;
    font-size: 1.2rem;
}

.forest-alert a {
    color: #c5e1a5;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.2s ease;
}

.forest-alert a:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Tree sapling animation for empty state indicator */
.tree-sapling {
    display: inline-block;
    position: relative;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.tree-sapling::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 10px;
    background: #8bc34a;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.tree-sapling::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    background: #4caf50;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50% 50% 50% 0;
    animation: saplingGrow 3s ease-in-out infinite;
}

@keyframes saplingGrow {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .tree-metric-card {
        min-height: 160px;
    }
    
    .tree-metric-value {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .forest-overview-section {
        padding: 20px;
    }
    
    .forest-section-title {
        font-size: 1.5rem;
    }
    
    .tree-metric-card {
        min-height: auto;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .tree-metric-icon-container {
        width: 50px;
        height: 50px;
    }
    
    .tree-metric-icon {
        font-size: 20px;
    }
}