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

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);
}



/* ----------------------------
   REDDIT FETCH SECTION
------------------------------*/

.reddit-fetch-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
}

.reddit-fetch-section h2 {
    font-size: 42px;
    color: #5e3939;
    margin-bottom: 25px;
}

.reddit-fetch-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;

    background-color: #fff8f0;

    padding: 30px;

    border-radius: 22px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.reddit-fetch-card input {
    width: 60%;
    padding: 18px;

    border-radius: 14px;
    border: 2px solid #5e3939;

    font-size: 18px;

    outline: none;
}

.reddit-fetch-card button {
    padding: 16px 28px;

    border: none;
    border-radius: 14px;

    background-color: #5e3939;

    color: white;

    font-size: 18px;

    cursor: pointer;

    transition: 0.3s;
}

.reddit-fetch-card button:hover {
    background-color: white;
    color: #5e3939;
    border: 2px solid #5e3939;
}


/* ----------------------------
   REDDIT COMMENT LIST
------------------------------*/

.reddit-comments-section {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto 50px auto;
}

.reddit-comments-section h2 {
    text-align: center;
    font-size: 42px;
    color: #5e3939;
    margin-bottom: 25px;
}

.comment-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.comment-card {
    background-color: #fff8f0;

    padding: 25px;

    border-radius: 18px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.10);

    transition: 0.3s;
}

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

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

.comment-card button {
    margin-top: 20px;

    padding: 12px 20px;

    border: none;
    border-radius: 12px;

    background-color: #5e3939;

    color: white;

    cursor: pointer;
}

/* header, p : apply this style to header and every p  tag
header p : apply this to header and the p inside it only */

header p {
    font-size: 40px;
    text-align: center;
    color: #5e3939;
}

.typing-text {
    font-size: 24px;
    color: #341E04;
    font-style: italic;
    animation: slideFromSide 2s ease-in-out;
}

@keyframes slideFromSide {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/*decoration of the input text-box */

h2 {
    text-align: center;
}

.input-area {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 60px;
    margin-bottom: 50px;
}

.input-area textarea {
    width: 70%;
    height: 200px;
    padding: 20px;
    font-size: 20px;
    border-radius: 18px;
    border: 2px solid #5e3939;
    resize: none;
    outline: none;
    background-color: white;
    color: #341E04;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

.input-area button {
    height: 60px;
    padding-left: 70px;
    padding: 0 30px;
    border: none;
    border-radius: 14px;
    background-color: #5e3939;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.input-area button:hover {
    background-color: white;
    color: #5e3939;
    border: 2px solid #5e3939;
    transform: scale(1.05);
}


/* AI analyzing */

.processing-status {
    display: block;
    width: 700px;
    margin: 0 auto 40px auto;
}

.processing-card {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    background-color: #fff8f0;

    padding: 20px;

    border-radius: 18px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.processing-card p {
    font-size: 24px;
    color: #5e3939;
    font-weight: bold;
}

.processing-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #5e3939;
}

.processing-dot.blinking {
    background-color: #d62828;
    animation: pulse 1s infinite;
}

.processing-dot.done {
    background-color: #4CAF50;
    animation: none;
}

@keyframes pulse {

    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/*analysis of the result */


#analysis-Card h2 {
    color: #5e3939;
    font-size: 50px;
    margin-bottom: 25px;
    text-align: center;
}

.result-card {
    width: 550px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff8f0;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    text-align: left;
}

.result-card p {
    font-size: 20px;
    color: #341E04;
    margin: 12px 0;
    text-align: center;
}

.result-card button {
    margin: 20px auto 0 auto;
    display: block;
    padding: 12px 25px;
    background-color: #5e3939;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
}

.result-card button:hover {
    background-color: #341E04;
}

.AI-explanation {
    padding-top:40px;
    padding-bottom:20px;
    background-color: #fff8f0;
    font-style: italic;
}


/*moderator-action */

#moderator-action {
    text-align: center;
}

#moderator-action h2 {
    font-size: 50px;
    color: #5e3939;
    margin-bottom: 10px;
}

.moderator-card {
    background-color: #fff8f0;
    width: 700px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.moderator-card p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #341E04;
}

.moderator-card button {
    margin: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    color: white;
}

.approve-btn {
    background-color: #4CAF50;
    width: 300px;
    height: 100px;
}

.flag-btn {
    background-color: #f4a261;
    width: 300px;
    height: 100px;
}


.remove-btn {
    background-color: #d62828;
    width: 300px;
    height: 100px;
}


.re-analyze-btn {
    background-color: #b56576;
    width: 300px;
    height: 100px;
}

.warning-btn {
    background-color: #7f5539;
    width: 300px;
    height: 100px;
}

.dashboard-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}



/*toxicity-graph */

.toxicity-graph {
    width: 550px;
    padding: 30px;
    background-color: #fff8f0;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    text-align: center;
}



.toxicity-section h2 {
    text-align: center;
    color: #5e3939;
    font-size: 50px;
    /* margin-bottom: 8px; */
}

.bar-graph {
    width: 520px;
    height: 280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    border-left: 3px solid #5e3939;
    border-bottom: 3px solid #5e3939;
    padding: 0 10px;
    margin-bottom: 20px;
}

.bar-item {
    height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.bar {
    width: 65px;
    min-height: 8px;
    border-radius: 12px 12px 0 0;
    transition: height 0.5s ease;
}

.toxic {
    background-color: #d62828;
}

.insult {
    background-color: #f77f00;
}

.threat {
    background-color: #fcbf49;
}

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

.bar-item p {
    margin: 8px 0 5px 0;
    font-size: 18px;
    font-weight: bold;
    color: #5e3939;
}

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

.risk-message {
    font-size: 20px;
    color: #341E04;
}


/* AI Confidence */

.confidence-score {
    width: 500px;
    margin: 20px auto 60px auto;
    padding: 30px;

    background-color: #fff8f0;

    border-radius: 20px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.12);

    text-align: center;
}

.confidence-score h2 {
    font-size: 40px;
    color: #5e3939;
}

.confidence-container {
    margin-top: 30px;
}

.circle-score {
    width: 200px;
    height: 200px;

    border-radius: 50%;

    background-color: white;

    border: 12px solid #5e3939;

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

    margin: 0 auto;

    font-size: 42px;
    font-weight: bold;

    color: #5e3939;

    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* moderation timeline */
/* moderation timeline */

.moderation-timeline {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 35px;
    background-color: #fff8f0;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.moderation-timeline h2 {
    text-align: center;
    font-size: 42px;
    color: #5e3939;
    margin-bottom: 30px;
}

.timeline-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.timeline-item {
    background-color: white;
    padding: 25px;
    border-radius: 18px;
    border-top: 8px solid #5e3939;
    box-shadow: 0 5px 14px rgba(0,0,0,0.08);
    transition: 0.3s;
    text-align: center;
}

.timeline-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}

.timeline-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    background-color: #ead8d1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
}

.timeline-item h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #5e3939;
}

.timeline-item p {
    margin: 0;
    font-size: 17px;
    color: #341E04;
    line-height: 1.5;
}

/* grid for first row */
.top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    gap: 70px;
    align-items: stretch;
}

#analysis-Card,
.toxicity-section {
    width: 100%;
    margin: 0;
}

.result-card {
    width: auto;
}

/* responsive design */
@media (max-width: 768px) {
    .top-row {
        grid-template-columns: 1fr;
    }
}

/* grid for second row */

.middle-row {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    gap: 100px;
    align-items: stretch;
}

.confidence-score,
#moderator-action {
    width: 100%;
    margin: 0;
}

.confidence-score {
    padding: 25px;
}

.moderator-card {
    width: 100%;
    padding: 25px;
}

.circle-score {
    width: 160px;
    height: 160px;
    font-size: 36px;
}

.moderator-card button {
    width: 180px;
    height: 60px;
}

/* ----------------------------
   CONSISTENT BUTTON HOVER
------------------------------*/

.comment-card button:hover,
.result-card button:hover,
.moderator-card button:hover,
.reddit-fetch-card button:hover {

    background-color: white;

    border: 2px solid #5e3939;

    color: #5e3939;

    transform: translateY(-3px);

    transition: 0.3s;
}


.comment-card button,
.result-card button,
.moderator-card button,
.reddit-fetch-card button {
    transition: 0.3s;
}