.mainContent {
    background-color: var(--tool-background);
}

.wcHeroSection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
}

.wcHeroSection > h1 {
    padding-bottom: 6px;
    text-align: center;
    color: black;
}

.wcHeroSection > p {
    max-width: 800px;
    text-align: center;
    font-size: 17px;
    color: var(--desc-text-dark);
}

/* Word Counter Textarea Section */
.wcTextareaSection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}

.wcTextareaSection > h3 {
    font-size: 26px;
    color: var(--primary-color);
    text-align: start;
    padding-bottom: 8px;
}

.textareaWrapper {
    width: 100%;
    padding: 15px;
    padding-right: 3px;
    max-width: 1200px;
    height: 530px;
    border-radius: 8px;
    outline: none;
    border: 1px solid var(--btn-shadow-sec);
    box-shadow: 0 0 4px 2px var(--btn-shadow-sec);
    background-color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wcTextarea {
    width: 100%;
    max-width: 1200px;
    height: auto;
    min-height: 360px;
    flex: 1;
    border-radius: 8px;
    outline: none;
    border: none;
    resize: none;
    font-size: 18px;
    font-family: var(--primary-font);
    letter-spacing: 1px;
    color: var(--desc-text-dark);
    line-height: 1.6;
    padding-right: 10px;
}

.textareaWrapper:has(.wcTextarea:focus) {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 4px 2px var(--primary-color);
}

.wcTextarea::placeholder {
    color: var(--desc-text-dark);
    font-size: 18px;
}

.wcTextareaFooter {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* All Text Area Btns */
.wcTextareaBtns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.lastSaved {
    color: var(--header-li-color);
    display: inline-flex;
    gap: 5px;
    padding: 5px 8px;
    margin: 0;
}

.lastSavedIcon {
    display: inline-flex;
    align-items: center;
}

.lastSavedIcon--saved {
    display: none;
}

.lastSaved.active .lastSavedIcon--empty {
    display: none;
}

.lastSaved.active .lastSavedIcon--saved {
    display: inline-flex;
}

.lastSaved:hover {
    background-color: var(--btn-shadow-sec);
    border-radius: 12px;
    padding: 5px 8px;
}

.lastSaved:active {
    background-color: var(--btn-shadow-sec);
    border-radius: 12px;
    padding: 5px 8px;
    color: var(--header-li-color);
    display: inline-flex;
    gap: 5px;
}

.lastSaved > strong {
    color: var(--header-li-color);
}

.btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
    width: 50%;

}

.wcTextAreaBtn {
    padding: 7px 12px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Clear Btn */
.wcClearTextBtn {
    background-color: var(--error);
    color: var(--header-bg);
    border: 2px solid var(--dark-error);
    gap: 2px;
    justify-content: center;
}

.wcClearTextBtn:hover {
    background-color: var(--dark-error);
}

/* Paste Text Btn */
.wcPasteTextBtn, .wcCopyText {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--header-bg);
    border: 2px solid var(--primary-color);
    justify-content: center;
}

/* WC Save Btn */
.wcSaveBtn {
    background-color: var(--card-bg);
    color: var(--desc-text-dark);
    border: 2px solid var(--border);
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    gap: 2px;
    text-align: center;
}

.wcSaveBtn:hover {
    background-color: var(--card-bg-hover);
}

.wcPasteTextBtn:hover, .wcCopyText:hover, .wcCopyStatics:hover {
    box-shadow: 0 2px 5px var(--shadow);
    transform: translateY(-2px);
}

.wcCopyText {
    gap: 2px;
}

/* Statics Section */
.wcStaticsSection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px 10px;
}

.wcStaticsSection > h2 {
    text-align: center;
    font-size: 36px;
    padding-bottom: 10px;
    color: var(--primary-color);
}

.staticsTable {
    width: 100%;
    max-width: 1200px;
    height: 150px;
    border: 2px solid var(--btn-shadow-sec);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 4px var(--btn-shadow-sec);
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--header-bg);
}

/* Social Limits Section */
.wcSocialLimitsSection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
}

.wcSocialLimitsSection > h2 {
    text-align: center;
    font-size: 30px;
    padding-bottom: 20px;
    color: var(--primary-color);
}

.wcSocialCards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.wcSocialCard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--header-bg);
    padding: 15px;
    border-radius: 8px;
    width: 250px;
    height: 150px;
    box-shadow: 0 0 5px 2px var(--btn-shadow-sec);
}

.wcSocialCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 5px 5px var(--btn-shadow-sec);
}

.wcSocialCard > h3 {
    font-size: 25px;
    color: var(--primary-color);
}

.wcSocialCard > div {
    display: flex;
    justify-content: space-between;
}

.wcSocialCard > div > span:first-child {
    color: var(--primary-color);
    font-size: 26px;
    font-weight: 800;
}

.wcCardProgressBar {
    background-color: var(--card-bg);
    width: 100%;
    height: 10px;
    border-radius: 30px;
    position: relative;
}

.wcCardProgressBarFill {
    background: linear-gradient(-40deg, var(--primary-color), var(--secondary-color));
    width: 0;
    height: 10px;
    border-radius: 30px;
    position: absolute;
    top: 0;
    left: 0;
}

/* Toast - Notification */
.toastBox {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%); 
    width: auto;
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    animation: slideUp 0.3s ease-in-out forwards; 
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%); 
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0); 
        opacity: 1;
    }
}
.toastBox.success {
    background-color: var(--green);
}

.toastBox.error {
    background-color: var(--dark-error);
}

.toastBox.warning {
    background-color: var(--warning);
    color: white;
}

/* Confirm Popup Styling */
.confirmPopupContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 11000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.popupOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 30, 30, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
}

.confirmPopup {
    background: var(--header-bg);
    border-radius: 12px;
    box-shadow: 0 0px 24px 2px var(--btn-shadow-sec);
    min-width: 320px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.confirmTitle {
    color: rgb(255, 255, 255);
    background: linear-gradient(-280deg, var(--primary-color), var(--secondary-color));
    padding: 25px 15px;
    font-size: 16px;
    letter-spacing: 1.1px;
    width: 100%;
    height: 40px;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    display: flex;
    align-items: center;
}

.confirmDesc {
    color: var(--desc-text-dark);
    font-size: 17px;
    padding: 20px 12px;
    max-width: 350px;
    line-height: 24px;
}

.btnsContainer {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
    width: 100%;
    padding: 0 8px 15px 8px;
}

.cancelBtn, .confirmBtn {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.cancelBtn {
    background: var(--border);
    color: black;
    font-weight: 600;
}

.cancelBtn:hover {
    background: var(--card-bg-hover);
}

.confirmBtn {
    background: linear-gradient(90deg, var(--dark-error), var(--error));
    color: white;
    border: none;
}

.confirmBtn:hover {
    box-shadow: 0 3px 8px var(--light-error);
    transform: translateY(-2px);
}

@media (max-width: 425px) {
    .wcHeroSection > h1 {
        font-size: 24px;
    }

    .wcHeroSection > p {
        font-size: 15px;
    }
}

@media (max-width: 375px) {
    .confirmPopup {
        min-width: 0;
        width: 85vw;
    }
    .confirmTitle {
        font-size: 18px;
    }
    .confirmDesc {
        font-size: 14px;
    }
    .btnsContainer {
        gap: 8px;
    }
    .cancelBtn, .confirmBtn {
        font-size: 14px;
        padding: 7px 12px;
    }
}

@media (max-width: 425px) {
    td {
        font-size: 13px;
    }
}

@media (max-width: 531px) {
    .wcTextareaFooter {
        flex-direction: column;
        align-items: flex-start;
    }

    .wcTextareaBtns {
        width: 100%;
        justify-content: flex-start;
    }

    .lastSaved {
        width: 100%;
    }

    .btns {
        padding-left: 20px;
        width: 100%;
        justify-content: left;
    }

    .wcTextAreaBtn {
        width: 48%;
    }
}

@media (max-width: 549px) {

    .wcSocialCards {
        gap: 10px;
    }

    .wcSocialCard {
        width: 200px;
        height: 120px;
    }

    .wcSocialCard > h3 {
        font-size: 20px;
    }
}

@media (max-width: 429px) {

    .wcSocialCard {
        width: 160px;
        height: 120px;
    }
}

@media (max-width: 320px) {

    .wcSocialCard {
        width: 260px;
        height: 160px;
    }

    .wcSocialCard > h3 {
        font-size: 28px;
    }
}
