/* Advanced Forest Overview Card Styling */
.forest-overview-section {
    background: linear-gradient(165deg, rgba(27, 94, 32, 0.95) 0%, rgba(46, 125, 50, 0.9) 100%);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 10px 20px rgba(0, 0, 0, 0.2),
                inset 0 2px 2px rgba(255, 255, 255, 0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(76, 175, 80, 0.4);
    transform-style: preserve-3d;
    perspective: 1200px;
    margin: 0 12px 50px 12px;
    z-index: 1;
}

/* Background pattern */
.forest-overview-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/forest-bg-pattern.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
    transform: translateZ(-5px);
}

/* Corner decorative elements */
.forest-overview-section::after {
    content: "";
    position: absolute;
    top: -15px;
    right: -15px;
    width: 120px;
    height: 120px;
    background-image: url('../images/forest-corner-tree.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
    transform: rotate(5deg) translateZ(-2px);
}

/* Glowing sun in the upper right corner */
.forest-sun {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-image: url('../images/glowing-sun.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
    transform: translateZ(5px);
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(255, 235, 59, 0.5));
    animation: sunPulse 8s infinite alternate ease-in-out;
}

@keyframes sunPulse {
    0%, 100% {
        transform: translateZ(5px) scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 235, 59, 0.5));
    }
    50% {
        transform: translateZ(8px) scale(1.05);
        filter: drop-shadow(0 0 15px rgba(255, 235, 59, 0.7));
    }
}

/* Enhanced title with 3D effects */
.forest-section-title {
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    transform: translateZ(5px);
    letter-spacing: 0.5px;
    text-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(76, 175, 80, 0.5);
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.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: 35px;
    height: 35px;
    display: inline-block;
    margin-right: 12px;
    opacity: 0.95;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
    transform: translateZ(8px);
}

/* Add a subtle animated gradient overlay */
.forest-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(76, 175, 80, 0) 0%, 
        rgba(76, 175, 80, 0.1) 50%, 
        rgba(76, 175, 80, 0) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Light beam effects */
.forest-light-beam {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    opacity: 0;
    transform: rotate(45deg);
    animation: lightBeam 12s ease-in-out infinite alternate;
    z-index: 0;
}

.forest-light-beam:nth-child(2) {
    top: -20%;
    left: 30%;
    animation-delay: 5s;
    animation-duration: 15s;
}

.forest-light-beam:nth-child(3) {
    top: 40%;
    left: -30%;
    animation-delay: 3s;
    animation-duration: 10s;
}

@keyframes lightBeam {
    0%, 100% {
        opacity: 0;
        transform: rotate(45deg) translateY(10%) scale(1);
    }
    50% {
        opacity: 0.2;
        transform: rotate(45deg) translateY(0%) scale(1.1);
    }
}

/* Metric Card Row Styling */
.metrics-row {
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
}

/* Enhanced Circular Metric Card */
.circular-metric-card {
    background: radial-gradient(circle at 30% 30%, 
        rgba(38, 87, 45, 0.95), 
        rgba(38, 80, 41, 0.95) 40%, 
        rgba(27, 70, 32, 0.95) 80%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateZ(10deg) rotateX(10deg);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 2px rgba(255, 255, 255, 0.15),
        inset 0 -2px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.circular-metric-card::before {
    opacity: 0.08;
}

.circular-metric-card:hover {
    transform: translateY(-10px) translateZ(15px) rotateX(5deg) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 3px rgba(255, 255, 255, 0.2),
        inset 0 -2px 3px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.circular-metric-card:hover .circular-icon-container {
    transform: translateZ(25px) scale(1.15);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 2px 3px rgba(255, 255, 255, 0.3),
        inset 0 -2px 3px rgba(0, 0, 0, 0.3);
}

.circular-icon-container {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.circular-metric-value {
    text-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.5),
        0 0 8px rgba(76, 175, 80, 0.4);
    transform: translateZ(15px);
}

.circular-metric-label {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    transform: translateZ(10px);
}

/* Enhanced forest alert with advanced styling */
.forest-alert {
    background: linear-gradient(135deg, rgba(38, 87, 45, 0.95) 0%, rgba(27, 94, 32, 0.95) 100%);
    border-radius: 12px;
    padding: 25px;
    color: #e8f5e9;
    position: relative;
    overflow: hidden;
    border-left: 5px solid rgba(76, 175, 80, 0.7);
    box-shadow: 
        0 15px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    margin: 15px 0;
}

.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.07' 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 3z'%3E%3C/path%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.2;
    transform: translateZ(-5px);
}

.forest-alert i, .tree-sapling {
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3));
    margin-right: 12px;
    transform: translateZ(2px);
}

.forest-alert a {
    color: #AED581;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.forest-alert a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #AED581;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.forest-alert a:hover {
    color: #DCEDC8;
    text-shadow: 0 0 8px rgba(174, 213, 129, 0.5);
}

.forest-alert a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Enhanced tree sapling */
.tree-sapling {
    display: inline-block;
    position: relative;
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 12px;
    transform-style: preserve-3d;
    transform: translateZ(2px);
}

.tree-sapling::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 12px;
    background: linear-gradient(to top, #5d4037, #8b6b61);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tree-sapling::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 30% 30%, #66BB6A, #388E3C);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    animation: advancedSaplingGrow 3s ease-in-out infinite;
}

@keyframes advancedSaplingGrow {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 12px rgba(76, 175, 80, 0.4);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .forest-overview-section {
        padding: 30px 25px;
    }
    
    .forest-section-title {
        font-size: 1.7rem;
        margin-bottom: 25px;
    }
}