* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: whitesmoke;
    font-family: 'Times New Roman', Times, serif;
    color: #341E04;
}

/* ----------------------------
   NAVIGATION
------------------------------*/

nav {
    display: flex;
    justify-content: flex-end;
    margin-right: 30px;
    padding-top: 20px;
}

nav a {
    display: inline-block;
    text-decoration: none;
    font-size: 24px;
    margin-left: 20px;
    padding: 10px 20px;
    border-radius: 14px;
    background-color: #5e3939;
    color: white;
    transition: 0.3s;
}

nav a:hover {
    background-color: white;
    color: #5e3939;
    transform: translateY(-3px);
}

/* ----------------------------
   REPORT ANALYSIS SECTION
------------------------------*/

#report-analysis {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px;
    background-color: #f8f4f1;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

#report-analysis > h1 {
    text-align: center;
    font-size: 42px;
    color: #5e3939;
    margin-bottom: 40px;
}

/* ----------------------------
   DATA COLLECTION
------------------------------*/

.data-collection {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.data-item {
    background-color: white;
    padding: 25px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.data-item:hover {
    transform: translateY(-5px);
}

.data-item h1 {
    font-size: 18px;
    color: #341E04;
    margin-bottom: 20px;
}

.data-item span {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: #ead8d1;
    color: #5e3939;
    font-size: 28px;
    font-weight: bold;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0 auto;
}

/* ----------------------------
   CHARTS SECTION
------------------------------*/
.pie-chart {
    width: 220px;
    height: 220px;
    margin: 25px auto;
    border-radius: 50%;
    background: conic-gradient(
        #5e3939 0% 35%,
        #9d0208 35% 60%,
        #f4a261 60% 80%,
        #d62828 80% 100%
    );
}

.chart-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.chart-legend p {
    font-size: 16px;
    margin: 0;
}

.legend {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
}

.cyber {
    background-color: #5e3939;
}

.hate {
    background-color: #9d0208;
}

.spam {
    background-color: #f4a261;
}

.threat {
    background-color: #d62828;
}

.bar-chart {
    height: 260px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    margin-top: 35px;
    border-left: 3px solid #5e3939;
    border-bottom: 3px solid #5e3939;
    padding: 0 20px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.report-bar {
    width: 45px;
    border-radius: 12px 12px 0 0;
}

.approved {
    height: 170px;
    background-color: #4CAF50;
}

.flagged {
    height: 95px;
    background-color: #f4a261;
}

.removed {
    height: 130px;
    background-color: #d62828;
}

.warned {
    height: 70px;
    background-color: #7f5539;
}

.bar-item span {
    font-size: 15px;
    font-weight: bold;
    color: #341E04;
}

.chart-card {
    background-color: white;
    padding: 35px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.chart-card:hover {
    transform: translateY(-5px);
}

.chart-card h2 {
    font-size: 28px;
    color: #5e3939;
    margin-bottom: 18px;
}

.chart-card p {
    font-size: 18px;
    line-height: 1.7;
    color: #341E04;
}

/* ----------------------------
   RECENT ACTIVITY
------------------------------*/

.recent-activity {
    background-color: white;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.recent-activity h2 {
    text-align: center;
    font-size: 32px;
    color: #5e3939;
    margin-bottom: 30px;
}

.activity-item {
    padding: 22px;
    border-left: 8px solid #5e3939;
    background-color: #fdf7f5;
    border-radius: 14px;
    margin-bottom: 22px;
}

.activity-item p {
    font-size: 19px;
    color: #341E04;
    margin-bottom: 10px;
}

.activity-item span {
    font-size: 18px;
    font-weight: bold;
    color: #7f5539;
}

/* ----------------------------
   RESPONSIVE DESIGN
------------------------------*/

@media (max-width: 1000px) {
    .data-collection {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    nav {
        justify-content: center;
        margin-right: 0;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 18px;
        margin-top: 10px;
    }

    #report-analysis {
        margin: 30px 15px;
        padding: 25px;
    }

    #report-analysis > h1 {
        font-size: 32px;
    }

    .data-collection {
        grid-template-columns: 1fr;
    }
}