*{margin:0;padding:0}

html{
    overflow-y: auto !important;
}

/* @media (max-width:700px){
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
} */

#content{
    width:100vw;
    margin-top:15vh;
    display:flex;
    justify-content: space-evenly;
    align-items: center;
}

    #login_form{
        display:flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        padding:2rem;
        height:auto;
        border:0.2rem solid var(--highlight);
        border-radius:0.5rem;
        width:400px;
        max-width:80vw;
    }

        #login_form h1{
            display:flex;
            align-items: center;
        }

            #login_form h1 img{
                margin:0.5rem;
            }
        
        #login_form input{
            padding:.5rem 1rem;
            border-radius:0.5rem;
        }

        #loginButton{
            padding:1rem 2rem;
            background-color:var(--secondary);
            color:var(--main);
            border:none;
            border-radius:1rem;
            cursor:pointer;
            transition:0.1s all ease-in-out;
            margin-top:1rem;
            font-weight: 700;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            
        }

        #loginButton:hover{
            background-color:var(--highlight_hover)
        }

        #loginButton.active {
            background-color: var(--black_text);
            transform: scale(0.95);
            cursor:default;
        }

        #login_form h4{
            margin-top:2rem;
        }

@media (max-width:840px){
    #content{flex-direction:column;}
}

/*Panel styles*/

h2{
    font-size: max(2.5lvw,4.5lvh,15px) !important;
    /* text-align:center; */
    text-shadow: none !important;
}

button{
    background:var(--main);
    color:var(--black_text);
    padding:.5rem 1.5rem;
    border-radius:0.5rem;
    border: 2px solid var(--secondary);
    cursor:pointer;
    transition:all 0.3s ease-in-out;
    font-size:max(0.8lvw,0.8lvh,15px) !important;
}

button:hover{
    background:var(--secondary);
    border-color: var(--secondary);
    color:var(--white_text);
}

/*For when you want to make the user click because there is an action pending*/
.button_calling{
    background:var(--highlight);
    color:var(--black_text);
    border-color: var(--highlight);
    animation:vibrate 0.7s ease-in-out infinite;
}

.settingsButton{
    background-color:var(--secondary);
    color:var(--main);
    padding: 0.7rem 1.6rem;
    min-width:200px;
}

.settingsButton:hover{
    background-color:var(--highlight);
    color:var(--white_text);
    border-color:var(--highlight);
}

@keyframes vibrate {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-0, 0); }
    40% { transform: translate(2px, 0); }
    60% { transform: translate(-2px, 0); }
    80% { transform: translate(0, -0); }
    100% { transform: translate(0, 0); }
}

#panel_container{
    display:grid;
    grid-template-columns: 1fr 3fr;
    /* grid-template-rows: auto auto auto; */
    gap: 3rem;
    width:80vw;
    margin-bottom:3rem;
}

.column_container{
    display:flex;
    flex-direction: column;
}

    .info_container{
        padding:1rem 1rem 1rem 1.8rem;
        border:2px solid var(--secondary);
        border-radius:1rem;
        height:fit-content;
        margin:1.5rem 0;
    }

        #webInfo_container{
            display:flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

            #webInfo_status{
                text-align:center;
                font-weight:400;
            }

            .webStatusOnline{
                color:green;
            }

            .webStatusOffline{
                color:red;
            }

            .webStatusMaintenance{
                color:var(--highlight);
            }

            .webStatusDevelopment{
                color:var(--secondary);
            }

            #webInfo_metrics_container{
                display:flex;
                flex-direction:column;
                align-items: center;
                justify-content: space-around;
                height:170px;
            }

        #socialMedia_container{

        }

            .socialMediaInfo{
                display:flex;
                align-items: center;
                justify-content: space-around;
                margin:1rem 0;
            }

            .socialMediaInfo_disabled{
                filter:grayscale(90%);
                opacity: 30%;
                /* display:none; */
            }

                .socialMediaInfo_disabled button,.socialMediaInfo_disabled button:hover{background:transparent;color:var(--black_text)}

                .postWarning{
                    background-color:var(--highlight);
                    width: 15px;
                    height:15px;
                    border-radius: 50%;
                }

                .postWarning-disabled{
                    background-color:var(--main);
                }

                .socialMediaStatistics_container{
                    display:flex;
                    justify-content: space-between;
                    align-items:center;
                    width:60%;
                }

                    .SM-Statistics_container{
                        display:flex;
                        justify-content: center;
                        align-items:flex-end;
                        flex-wrap:wrap;
                    }

                        .statisticsValue{
                            font-size: max(2vw,2vh,13px) !important;
                            margin: 0 0.5rem 0 1rem;
                        }

                .username_container{
                    display:none;
                }

        
        #plan_container{
            display:flex;
            flex-direction:column;
            align-items: center;
            justify-content: space-around;
            min-height:200px;
            max-height:40vh;
            gap:14px;
        }

        #pastMonths_container{}

            #pastMonthsTable_container{
                display:flex;
                justify-content: center;
                align-items: center;
            }

                #pastMonths_table{
                    height:375px !important;
                }


@media (max-width:700px){
    #panel_container{
        display:flex;
        flex-direction:column;
        align-items: center;
        width:90vw;
    }

    .info_container{
        width:80vw;
        margin:0;
    }

        #socialMedia_container{
            order:1;
        }

            .socialMediaStatistics_container{display:none;}
            .username_container{display:block;font-weight:800;word-break: break-word;}

            .SM-Statistics_container h3{
                font-size:max(4lvh,25px) !important;
            }

            .SM-Statistics_container p{
                font-size:max(2.5lvh,18px) !important;
            }

        #webInfo_container{
            order:2;
        }

        #pastMonths_container{
            order:3;
        }
        
        
        #plan_container{
            order:4;
        }

        #dataUpdateWarning{
            order:0;
        }

        .dropdown-options li {
            height:2rem;
            font-weight: 800;
        }
}

#settings_container{
    display:grid;
    grid-template-columns: repeat(6, 1fr);
    width:90vw;
}

    #settingsNavigation_container{
        display:flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position:fixed;
    }

        #settingsNavigationTitle{
            margin-bottom:1rem;
            font-size:max(2vw,2vh,10px) !important
        }

        #settingsNavigationList{
            list-style: none;
        }

            .settingsTab{
                padding: 0.7rem 1.4rem;
                margin: 0.5rem 0;
                border-radius: 0.5rem;
                cursor: pointer;
                border:1px solid var(--secondary);
                text-align:center;
                transition:all 0.1s ease-in-out;
            }

            .settingsTab:hover{
                background-color: var(--highlight);
                color: var(--white_text);
                border-color:var(--highlight)
            }

            .settingsTab-active{
                background-color:var(--secondary);
                color:var(--main);
                font-weight:800;
            }

        #versionIndicator_container{
            margin-top: 1.5rem;
            /* border-top: 1px solid var(--black_text); */
            text-align: center;
            width: 100%;
        }

            #versionIndicator{
                font-size: max(0.7lvw, 0.7lvh, 9px);
                color: var(--black_text);
                margin: 0;
                font-weight: normal;
            }

    #settingsPage_container{
        grid-column:2/7;
        display:flex;
        flex-direction: column;
        align-items: flex-start;
        margin-left:2rem;
        height:fit-content;
        padding-bottom:10rem;
    }

        .settingsSubtitle{
            font-size:max(1.5vw,1.5vh,12px) !important;
            margin:3rem 0 0 0;
        }

        .currentTeamsUsers_container{
            display:grid !important;
            grid-template-columns: 250px 270px 100px 126px;
        }

        .settingsUserDataRow_container{
            display:flex;
            align-items: flex-end;
            justify-content: space-around;
            margin-top:1rem;
        }

            .settingsUserDataRow_container p{
                font-size:max(0.7vw,0.7vh,9px)
            }

                .userData_container{
                    margin:0 4rem 0 0;
                }

                    .userData_container div, .userData_container input{
                        padding: 0.7rem 1.6rem;
                        border:1px solid var(--secondary);
                        text-align:center;
                        border-radius:0.5rem;
                        background-color:var(--main)
                    }

                    .userData_container div{
                        white-space: nowrap;       /* no permite saltos de línea automáticos */
                        overflow-wrap: normal;     /* evita cortes forzados */
                        word-break: normal;        /* comportamiento estándar */
                        width: fit-content;
                    }

                    .userData_container input:focus-visible{
                        border:1px solid var(--secondary) !important;
                    }

            .memberActionButtons_container{
                display:flex;
                align-items: center;
                justify-content:space-evenly;
            }
                    
                .editUserButton,.deleteUserButton{
                    min-width:auto;
                }

                .deleteUserButton{
                    color:var(--secondary);
                    background-color:var(--main);
                    border-color:var(--secondary);
                    margin:0 0 0 1rem;
                }

        #currentPlan, #billingDescription{
            font-weight:400;
            font-size:max(1.2vw,1.2vh,10px) !important;
        }

        #planFeaturesList{
            margin:1rem 0 0rem 1rem;
        }

@media (max-width:700px){
    /* [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    } */

    #settings_container{
        display:flex;
        flex-direction:column;
        align-items: center;
    }
    
    /* Fix navigation positioning */
    #settingsNavigation_container{
        position: static;
        width: 100%;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    #settingsPage_container{
        margin-left: 0;
        width: 95%;
        max-width: 500px;
        display:flex;
        flex-direction:column;
        align-items: center;
    }
    
    /* Fix font sizes - this is likely the main issue */
    #settingsNavigationTitle {
        font-size:max(2.5lvw,4.5lvh,28px) !important;
    }
    
    #settingsPageTitle {
        font-size:max(1.5lvw,3.5lvh,24px) !important;
    }
    
    .settingsSubtitle {
        font-size:max(1.2lvw,3lvh,18px) !important;
    }
    
    .userData_container p , .userData_container input, #currentPlan,#billingDescription{
        font-size:max(1.2lvw,2.4lvh,15px) !important;
    }
    
    .userData_container div {
        font-size: 18px !important;
    }
    
    .settingsTab {
        font-size:max(1lvw,2lvh,18px) !important;
    }

    #versionIndicator {
        font-size: max(1lvw, 2lvh, 12px) !important;
    }

    /* Stack elements vertically */
    .settingsUserDataRow_container{
        display:flex !important;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .currentTeamsUsers_container{
        margin:2rem 0;
        border:2px solid var(--secondary);
        border-radius:1rem;
        padding:2rem;
    }
    
    .userData_container{
        margin: 0;
        width: 100%;
    }

    #teamNote_container{
        width:100% !important;
    }
}

#panelTable_container{
    overflow-x:auto;
    overflow-y:visible;
    width:100%;
    margin:2rem 0;
    position:relative;
    padding-right:10px;
}

/* Only add padding when scrolling is actually needed (when content is wider than container) */
@media (max-width: 1150px) {
    #panelTable_container{
        padding-right:5rem;
    }
}

/* #panelTable_container::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to right, rgba(0,0,0,0.12) 60%, transparent 100%);
}

#panelTable_container::after {
    content: "";
    position: absolute;
    right: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to left, rgba(0,0,0,0.12) 60%, transparent 100%);
} */

    #panelInfo_container{
        /* display:grid;
        grid-template-columns:repeat(7, auto); */
        display:flex;
        flex-direction: column;
        align-items: flex-start;
        border:2px solid var(--secondary);
        border-radius:1rem 1rem 0 0;
        width:100%;
        min-width:1070px;
        z-index:3;
        overflow-y: visible;
    }

        #panelInfo_container,
        .postLine {
            overflow: visible !important;
        }

        #columns_container{
            background-color:var(--secondary);
            border-radius:0.98rem 0.98rem 0 0;
        }

            #columns_container div{
                padding:1rem 0;
            }

                #columns_container p{
                    color:var(--main);
                    font-weight:700;
                    user-select: none;
                    text-align: center;
                    width:100%;
                }

        .postLine, #columns_container{
            display:grid;
            grid-template-columns:minmax(150px, 1.5fr) minmax(120px, 1.2fr) minmax(150px, 1.5fr) minmax(150px, 1.5fr) minmax(150px, 1.5fr) minmax(150px, 1.5fr) minmax(100px, 1fr) minmax(100px, 1fr);
            width:100%;
        }

            .postLine div, #columns_container div{
                display:flex;
                align-items: center;
                justify-content: center;
                padding:.3rem .5rem;
            }

            .postLine div{
                border:1px solid var(--secondary);
            }

            .postMedia_container{
                display:flex;
                justify-content:flex-start !important;
                flex-wrap: wrap;
            }

            .postComment_container{
                display:flex;
                justify-content:flex-start !important;
                align-items: center;
            }

                .postComment{
                    max-height: 100px;
                    overflow-y: hidden;
                    overflow-x: hidden;
                    word-wrap: break-word;
                    word-break: break-word;
                }

            .postDescription_container{
                display:flex;
                justify-content:flex-start !important;
                align-items: center;
            }

                .postDescription{
                    max-height: 100px;
                    overflow-y: hidden;
                    overflow-x: hidden;
                    word-wrap: break-word;
                    word-break: break-word;
                }

            .postName_container{
                display:flex;
                justify-content:flex-start !important;
                align-items: center;
            }

                .postName{
                    max-height: 60px;
                    overflow-y: hidden;
                    overflow-x: hidden;
                    word-wrap: break-word;
                    word-break: break-word;
                }

                .postStatus, .postType{
                    padding:.3rem .5rem;
                    border-radius:.3rem;
                    user-select: none;
                }

                .postRowMedia{
                    width:35px;
                    height:35px;
                    cursor:pointer;
                    margin:.25rem;
                }

                .custom-dropdown {
                    position: relative;
                    width: 180px;
                    font-family: inherit;
                    border:none !important;
                    z-index:1050;
                }
                .dropdown-selected {
                    cursor: pointer;
                }
                .dropdown-options {
                    display: none;
                    position: absolute;
                    top: 110%;
                    left: 0;
                    width: 100%;
                    background: #fff;
                    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
                    z-index: 1100 !important;
                    margin: 0;
                    padding: 0.5rem;
                    border-radius:.5rem;
                    list-style: none;
                }
                .dropdown-options li {
                    padding: 8px 12px;
                    cursor: pointer;
                    border-bottom: 1px solid #eee;
                    margin:.7rem 0;
                }
                .dropdown-options li:last-child {
                    border-bottom: none;
                }
                .dropdown-options li:hover {
                    filter: brightness(0.95);
                }
                .custom-dropdown.open .dropdown-options {
                    display: block;
                }

                .portal-dropdown-options {
                    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
                    border-radius: .5rem;
                    background: var(--white_text);
                    list-style: none;
                    margin: 0;
                    padding:0 .7rem;
                    width:fit-content;
                }

                .comment-editor-popover {
                    font-family: inherit;
                    font-size: 1em;
                    box-sizing: border-box;
                    background-color:var(--main);
                    -webkit-box-shadow: 2px 0px 21px 0px var(--secondary); 
                    box-shadow: 2px 0px 21px 0px var(--secondary);
                    overflow-x: visible;
                    padding:1rem;
                    /* max-width:500px; */
                    width:fit-content;
                    border-radius:.5rem;
                    /* max-height:400px; */
                    overflow-y:hidden;
                    position:absolute;
                    z-index:99999;
                    width:300px;
                    height:200px;
                }


                    .comment-editor-popover textarea {
                        padding: 10px;
                        border-radius: 0.5rem;
                        border: 1px solid var(--secondary);
                        background-color: var(--main);
                        color: var(--black_text);
                        width:fit-content;
                        /* max-width:300px; */
                        height:85%;
                        width:90%;
                        font-size:16px;
                    }


@media (max-width:700px){
    #SMAccount-phone_container{
        display:flex;
        align-items:center;
        justify-content:center;
    }

        #SMAccount-phone_container img{
            width:40px;
            height:40px;
        }

        #SMAccount-phone_container h3{
            font-size:max(2lvh,15px) !important;
        }

        #panelPhoneInfo_container{
            display:flex;
            flex-direction:column;
            align-items: center;
        }

            #panelPhoneInfoSubtitle{
                max-width:90vw;
                margin:1.5rem 0;
            }

            #postName{
                margin:1rem 0 2rem 0;
            }

            .phonePanelButton{
                width:90vw;
                border:none;
                margin:1rem 0;
                font-weight:800;
            }

            #phonePostMedia_container{
                max-width:90vw;
                display:flex;
                align-items:center;
                justify-content: flex-start;
                /* flex-wrap: wrap; */
                overflow-x:scroll;
                margin-bottom:3rem;
            }

                #phonePostMedia_container img,#phonePostMedia_container video{
                    width:50vw;
                    margin:.5rem;
                }

            .phonePanel_button{
                width:80vw;
                padding:1rem 2rem;
                text-align:center;
                font-size:max(2lvh,2lvw,18px) !important;
                font-weight:800;
                margin:.5rem 0;
            }

                .phonePanel_button:last-of-type{
                    margin-bottom:20lvh;
                }

                .phonePanel_button-skip{
                    border-color:var(--pending_background);
                    background-color:var(--pending_background);
                    color:var(--main);
                }

                .phonePanel_button-skip:hover{
                    border-color:var(--pending_background);
                    background-color:var(--pending_background);
                    color:var(--main);
                }

                .phonePanel_button-suggest_changes{
                    border-color:var(--needs_review_background);
                    background-color:var(--needs_review_background);
                    color:var(--black_text);
                }

                .phonePanel_button-suggest_changes:hover{
                    border-color:var(--needs_review_background);
                    background-color:var(--needs_review_background);
                    color:var(--black_text);
                }

                .phonePanel_button-approve{
                    border-color:var(--approved_background);
                    background-color:var(--approved_background);
                    color:var(--black_text);
                }

                .phonePanel_button-approve:hover{
                    border-color:var(--approved_background);
                    background-color:var(--approved_background);
                    color:var(--black_text);
                }
}


.addCustomerButton{
    width:100%;
    font-weight:800;
    padding:1rem;
    margin:1.5rem 0;
}

#customers_container{
    display:flex;
    align-items: center;
    flex-wrap: wrap;
}

    .customerRow{
        border:2px solid var(--secondary);
        border-radius:.5rem;
        padding:1rem;
        display:flex;
        flex-direction:column;
        align-items: flex-start;
        width:600px;
        max-width:80vw;
        margin:1rem;
    }

    .customerRow.disabled:not(.aos-animate) {
        opacity: 0;
        transform: translateY(20px);
    }

    .customerRow.disabled.aos-animate {
        opacity: 0.7 !important;
        border-color: gray;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }


        .topCustomerInfo{
            display:flex;
            align-items: center;
            justify-content: flex-start;
            margin-bottom:1rem;
        }

            .businessName{
                margin-left:1rem;
            }

        .customerActions{
            width:100%;
            display:flex;
            align-items: center;
            justify-content: space-around;
            flex-wrap: wrap;
        }

#businessesSearch{
    padding:.5rem 1rem;
    border-radius:.5rem;
    font-weight: 400;
    color:var(--black_text);
    border:2px solid var(--secondary);
    transition: border-color 0.15s;
    display:inline;
    background-color:var(--main)
}

#businessesSearch:hover{
    border-color:var(--highlight);
}

#clearFiltersButton{
    display:inline;
    margin-left:1rem;
}

#businessSM_container{
    display:flex;
    flex-wrap:wrap;
    align-items: center;
}

.addCustomerForm_container{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    align-items: center;
    padding:1rem;
    border:2px solid var(--secondary);
    border-radius:.5rem;
}

    .addCustomerForm_container div,  .addCustomerForm_container button{
        margin:.5rem;
    }

    .addCustomerForm_container h3{
        width:100%;
    }

    .addCustomerForm_container input,.addCustomerForm_container select{
        padding:.3rem;
        border-color:var(--secondary);
        border-radius:.3rem;
    }

    .addCustomerForm_container button{
        width:100%;
    }

.actionConfirmationOverlay{
    position:fixed;
    width:100vw;
    height:100vh;
    display:flex;
    align-items: center;
    justify-content: center;
    top:0;
    left:0;
    background: rgba(0,0,0,0.5);
    z-index:10000;
}

    .actionConfirmationPopup{
        position:fixed;
        background:var(--main);
        padding:2rem;
        border-radius:1rem;
        z-index:20000; 
    }

        .actionConfirmationPopup h3{
            margin-bottom:.5rem;
        }

        .actionConfirmationPopup input{
            padding:.5rem 1rem;
            border-color:var(--secondary);
            border-radius:.5rem;
        }

        .actionConfirmationButtons{
            margin-top:1rem;
        }

            .actionConfirmationButtons button:last-of-type{
                margin:0 1rem;
            }

    @media(max-width:801px){
        .actionConfirmationPopup,.actionConfirmationButtons{
            display:flex;
            flex-direction:column;
            align-items:center;
        }

            .actionConfirmationButtons button:first-of-type{
                order:1;
                margin:1rem 0;
            }

            .actionConfirmationButtons button:last-of-type{
                order:0;
                margin:1rem 0;
            }
    }

.fileInputContainer {
    position: relative;
    display: inline-block;
    border:none !important;
}

    .fileInput {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .customFileInput {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--secondary);
        border: 2px dashed #ccc;
        border-radius: 8px;
        cursor: pointer;
        font-size: 24px;
        color: var(--main);
        transition: background-color 0.3s, border-color 0.3s;
        padding: 0 !important;
    }

    .customFileInput:hover {
        background-color: var(--highlight);
        border-color: var(--highlight);
    }

        .customFileInput span{
            color:var(--black_text);
        }


#updatePanelButton{
    margin-top:2rem;
    background-color: var(--secondary);
    color:var(--main);
    font-weight: 800;
    display:flex;
    align-items:center;
}

#updatePanelButton:hover{
    background-color: var(--highlight);
}

    #updatePanelButton img{
        margin-right:.3rem;
    }

#loadOlderPostsButton{
    border-radius:unset;
    border:none;
    width:100%;
    display: flex;
    justify-content: center;
}

#updatesPopup_container{
    position:fixed;
    width:100lvw;
    height:90lvh;
    margin-top:10lvh;
    background-color:var(--secondary_transparency);
    z-index:900;
    display:flex;
    align-items: center;
    justify-content: center;
}

    #updatesPopup{
        width:800px;
        padding:3rem;
        max-width:70vw;
        background-color:var(--main);
    }

        #updatesPopup h3{
            margin:1rem 0;
        }

        #updatesPopup ul li{
            margin:0.7rem 0;
        }

        #updatesPopup button{
            width:100%;
            margin:1rem 0;
        }




/* Phone Dropdown Styles */
.phoneDropdown_container {
    margin: 15px 0;
    background-color: var(--highlight);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    width:80vw;
    margin-bottom:2rem !important;
}

.phoneDropdown_container.active {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.phoneDropdown_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--highlight);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e9ecef;
}

.phoneDropdown_title {
    font-weight: 600;
    font-size: 14px;
    color:var(--main);
    flex-grow: 1;
}

.phoneDropdown_arrow {
    font-size: 12px;
    color:var(--main);
    transition: transform 0.3s ease, color 0.2s ease;
    font-weight: bold;
    min-width: 16px;
    text-align: center;
}

.phoneDropdown_container.active .phoneDropdown_arrow {
    color:var(--main);
}

.phoneDropdown_content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--highlight);
}

.phoneDropdown_content.expanded {
    max-height: 500px;
    padding: 16px;
}

.phoneDropdown_text {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--main);
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .phoneDropdown_container {
        margin: 10px -10px;
        border-radius: 0;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }
    
    .phoneDropdown_header {
        padding: 14px 16px;
    }
    
    .phoneDropdown_title {
        font-size: 15px;
    }
    
    .phoneDropdown_content.expanded {
        padding: 16px 20px;
    }
    
    .phoneDropdown_text {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Animation for smooth expand/collapse */
@keyframes dropdownExpand {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phoneDropdown_content.expanded .phoneDropdown_text {
    animation: dropdownExpand 0.3s ease forwards;
}

/* Dark mode support (optional) */
/* @media (prefers-color-scheme: dark) {
    .phoneDropdown_container {
        background-color: var(--secondary);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .phoneDropdown_header {
        background-color: var(--secondary);
        border-bottom-color: #2d3748;
    }
    
    .phoneDropdown_header:hover {
        background-color: #2d3748;
    }
    
    .phoneDropdown_title {
        color: #e2e8f0;
    }
    
    .phoneDropdown_arrow {
        color: #a0aec0;
    }
    
    .phoneDropdown_content {
        background-color: #2d3748;
    }
    
    .phoneDropdown_text {
        color: #e2e8f0;
    }
} */



.managerNotification_container{
    display:flex;
    border:2px solid var(--secondary);
    padding:1rem;
    border-radius:0.5rem;
    align-items: center;
    justify-content: space-around;
    margin:1rem 0;
}

    .managerNotification_container h3, .managerNotification_container p, .managerNotification_container button{
        margin:0 1rem;
    }

.managerNotification_container.payment-item{
    margin:0;
}

.paymentSubtitle{
    font-size:max(2lvh,2lvw,25px)
}

/* Plan Form Styles */
.plan-form-container {
    /* background-color: #F5F1E8; */
    border-radius: 16px;
    padding: 32px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border:2px solid var(--secondary);
}

.plan-form-title {
    color: var(--black_text);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
}

.plan-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.plan-form-group {
    flex: 1;
    min-width: 150px;
}

.plan-form-group.name-group {
    min-width: 200px;
}

.plan-form-label {
    color: var(--black_text);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.plan-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5DCC9;
    border-radius: 8px;
    font-size: 16px;
    color: var(--black_text);
    background-color: #FEFDF8;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.plan-form-input:focus {
    outline: none;
    border-color: var(--secondary);
}

.plan-form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5DCC9;
    border-radius: 8px;
    font-size: 16px;
    color: var(--black_text);
    background-color: #FEFDF8;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.plan-form-select:focus {
    outline: none;
    border-color: var(--secondary);
}

.plan-characteristics-section {
    margin: 24px 0;
}

.plan-characteristics-title {
    color: var(--black_text);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.plan-characteristic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.plan-characteristic-item.removing {
    opacity: 0;
    transform: translateX(-20px);
}

.plan-characteristic-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #E5DCC9;
    border-radius: 8px;
    font-size: 14px;
    color: var(--black_text);
    background-color: #FEFDF8;
    transition: border-color 0.3s ease;
}

.plan-characteristic-input:focus {
    outline: none;
    border-color: var(--secondary);
}

.plan-save-button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 24px;
    transition: all 0.3s ease;
}

.plan-save-button:hover {
    background-color: #7A6348;
}

.plan-save-button:active {
    transform: translateY(1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .plan-form-row {
        flex-direction: column;
    }
    
    .plan-form-container {
        padding: 24px 16px;
        margin: 10px 0;
    }
    
    .plan-form-group {
        min-width: unset;
    }
    
    .plan-form-group.name-group {
        min-width: unset;
    }
}

.plans-management-section{width: 80%;}

.upcoming-payments-section{
    width:100%;
}

    .upcoming-payments-header{
        display:flex;
        align-items: center;
        transition:all 0.4s ease-in-out;
        cursor:pointer;
        width:fit-content;
        user-select: none;
    }
    .upcoming-payments-header:hover{
        color:var(--secondary) !important;
    }

        .upcoming-payments-header span{
            margin-left:.5rem;
        }

.payments-list{
    width:80%;
    max-width:min(80vw,800px);
    gap:0 !important;
}

.payment-item, .plan-item{
    padding:1rem 2rem;
}

.payment-item{
    display:grid;
    grid-template-columns: 1fr 10px 1fr 1fr;
    height:3rem;
    margin:1rem 0 !important;
}

.plan-item{
    height:3rem;
    align-items: center;
    display:grid;
    grid-template-columns: repeat(4,1fr);
}

    .plan-icon{
        height:fit-content;
        display:flex;
        align-items: center;
    }

        .plan-icon img{
            height:45px;
        }

.client-billing-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: var(--text-primary);
}



.client-plans-section {
    margin-bottom: 30px;
    width:80%;
    max-width:90vw;
}

    .client-plan-item {
        display: flex;
        justify-content: flex-start;
        gap: 15px;
        margin-bottom: 10px;
        border:2px solid var(--secondary);
        border-radius:0.5rem;
        padding:1rem;
        margin-top:1rem;
        display:flex;
        flex-direction: column;
        width:100%;
    }

        .client-plan-item.editable{
            flex-direction:row;
        }

        .payment-form{
            width:100%;
            display:flex;
            flex-wrap: wrap;
        }

            .payment-formInfo_container{
                margin:.4rem;
                width:40%;
            }


.plan-icon {
    flex-shrink: 0;
}

.plan-icon img {
    width: 24px;
    height: 24px;
}

.plan-details {
    flex: 1;
}

.plan-name {
    margin: 0 0 5px 0;
    font-weight: 600;
}

.plan-next-payment {
    margin: 0;
    font-size: 14px;
    opacity: 0.7;
}

.client-value-section {
    margin-bottom: 30px;
}

.value-cards {
    display: flex;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    flex-direction:column;
    gap: 15px;
}

    .value-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        text-align: center;
        width:100%;
    }

        .value-label {
            font-size: max(1.3lvh,1.3lvw,15px);
            font-weight: 800;
        }

        .value-amount {
            font-size: max(2lvh,2lvw,15px);
            font-weight: 800;
            margin-left:2rem;
        }

.plans-management-section {
    margin-top:2rem;
    width:80vw !important;
    max-width:800px;
}

.payment-history-section {
    margin-bottom: 30px;
}

.payments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width:80vw;
}

.payment-history-item {
    width:100%;
    cursor:pointer;
    border:2px solid var(--secondary);
    border-radius:0.5rem;
    padding:1rem;
    margin-top:1rem;
    display:flex;
    flex-direction: column;
}

    .payment-history-item .managerNotification_container, .client-plan-item .managerNotification_container{
        border:none;
        padding:0;
    }

    .payment-info {
        flex: 1;
        width:fit-content
    }

        .payment-plan-name {
            margin: 0 0 5px 0;
            font-weight: 800;
            font-size:max(1.2lvw,1.2lvh,14px);
        }

        .payment-date {
            margin: 0 0 8px 0;
            font-size: 14px;
            opacity: 0.7;
        }

    .payment-details {
        display: flex;
        gap: 15px;
        font-size: 12px;
        font-size:max(1lvw,1lvh,14px);
    }

    .payment-amount {
        text-align: right;
        margin-right: 15px;
    }

        .amount {
            font-size: 18px;
            font-weight: bold;
        }


.accounting-section {
    margin-bottom: 30px;
}

.accounting-cards {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap:wrap;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 20px;
}

    .accounting-cards .value-card{
        width:fit-content;
    }

.earnings-chart-container {
    border-radius: 8px;
}

.earnings-chart-container h4 {
    margin: 0 0 15px 0;
    color: var(--black_text);
    font-size:max(1.4lvh,1.4lvw,16px)
}

#earnings_chart {
    background: var(--main);
    color:var(--black_text);
    font-weight: 800;
    border-radius: 1rem;
    padding:.7rem;
    border:2px solid var(--secondary);
    min-width:40vw;
    width:fit-content !important;
    max-width:80vw;
}



.pseudo-managerNotification_container{
    border:2px solid var(--secondary);
    border-radius:0.5rem;
    display:flex;
    flex-direction:column;
    padding:1rem;
    height:fit-content;
}

    .pseudo-managerNotification_container .managerNotification_container{
        border:none;
        padding:0;
    }

.business-without-plan-item{
    display:flex;
    align-items: center;
    justify-content: space-between;
    border:2px solid var(--secondary);
    border-radius:.5rem;
    padding:.7rem;
}


/* Plan controls styles */
.plan-controls {
    position: relative;
}

.plan-menu-button {
    background: none;
    border: none;
    font-size: 18px;
    font-weight:800;
    color: var(--black_text);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.plan-menu-button:hover {
    background-color: #f0f0f0;
    color: var(--black_text);
}

.plan-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 160px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.plan-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.plan-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    color: var(--black_text);
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.plan-dropdown-item:last-child {
    border-bottom: none;
}

.plan-dropdown-item:hover {
    background-color: #f8f8f8;
}

.plan-dropdown-item.delete {
    color: #dc3545;
}

.plan-dropdown-item.delete:hover {
    background-color: #fff5f5;
}

.plan-dropdown-item.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.plan-dropdown-item.disabled:hover {
    background-color: transparent;
}

/* Archived plans section */
.archived-plans-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--secondary);
    overflow: hidden;
    padding-bottom:7rem;
}

.archived-plans-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 0;
    user-select: none;
}

.archived-plans-toggle h4 {
    /* color: #666; */
    margin: 0;
    font-size: 16px;
}

.archived-toggle-arrow {
    /* color: #666; */
    transition: transform 0.3s ease;
}

.archived-toggle-arrow.expanded {
    transform: rotate(90deg);
}

.archived-plans-list {
    margin-top: 10px;
    opacity: 0;
    max-height: 0;
    transition: all 0.3s ease;
}

.archived-plans-list.show {
    opacity: 1;
    max-height: 500px;
}

.archived-plan-item {
    opacity: 0.7;
    margin-bottom: 10px;
}

.archived-plan-item .plan-name {
    /* color: #666; */
}

.archived-plan-item .plan-client-count {
    /* color: #999; */
}


/* Customer Form Styles - matching plan form design */
.customer-form-container {
    border-radius: 16px;
    padding: 32px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary);
}

.customer-form-title {
    color: var(--black_text);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
}

.customer-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.customer-form-group {
    flex: 1;
    min-width: 200px;
}

.customer-form-group.full-width {
    flex-basis: 100%;
}

.customer-form-label {
    color: var(--black_text);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.customer-form-input,
.customer-form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5DCC9;
    border-radius: 8px;
    font-size: 16px;
    color: var(--black_text);
    background-color: #FEFDF8;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.customer-form-input:focus,
.customer-form-select:focus {
    outline: none;
    border-color: var(--secondary);
}

.customer-form-select {
    cursor: pointer;
}

.customer-save-button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 24px;
    transition: all 0.3s ease;
}

.customer-save-button:hover {
    background-color: #7A6348;
}

.customer-save-button:active {
    transform: translateY(1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .customer-form-row {
        flex-direction: column;
    }
    
    .customer-form-container {
        padding: 24px 16px;
        margin: 10px 0;
    }
    
    .customer-form-group {
        min-width: unset;
    }
}


/* Toggle styles */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-switch.active {
    background-color: var(--secondary);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 14px;
    color: var(--black_text);
    user-select: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

.copy-code-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.copy-code-button:hover {
    background-color: var(--highlight) !important;
    transform: scale(1.05);
}

.copy-code-button:active {
    transform: scale(0.95);
}

.code-box {
    position: relative;
}

/* Status Dropdown Styles */
.status-dropdown-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1001;
}

.status-dropdown-trigger {
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    position: relative;
    z-index: 1002;
}

.status-dropdown-trigger:hover {
    background: #f0f0f0;
}

.status-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1003;
    margin-top: 5px;
}

.status-dropdown-menu.active {
    display: block;
}

.status-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.status-option:hover {
    background: #f5f5f5;
}

.status-option.active {
    background: #f0f0f0;
    font-weight: 600;
}

.status-option-icon {
    font-size: 16px;
}

.status-text-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    position: relative;
    z-index: 1001;
}

.status-text-container h3 {
    margin: 0;
}

.status-specific-content {
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.connection-section {
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

/* Verification Message Styles */
.verification-message {
    margin-top: 15px;
    display: none;
}

.verification-status {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verification-status.checking {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.verification-status.success {
    background-color: #e8f5e9;
    border-color: #4caf50;
}

.verification-status.warning {
    background-color: #fff3e0;
    border-color: #ff9800;
}

.verification-status.error {
    background-color: #ffebee;
    border-color: #f44336;
}

.verification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.verification-status div {
    flex: 1;
}

.verification-status strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.verification-status p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.verification-status.checking strong {
    color: #1976d2;
}

.verification-status.success strong {
    color: #388e3c;
}

.verification-status.warning strong {
    color: #f57c00;
}

.verification-status.error strong {
    color: #d32f2f;
}

.website-orders-container .section-header{
    font-size:max(1.6lvh,1.6lvw,18px)
}

.website-list-item{
    width:100%;
    max-width: 90vw;
    padding:0 1rem !important;
    cursor:default;
}

    .website-list-item .payment-plan-name{
        margin:0;

    }

    .website-list-item .payment-details{
        padding-bottom:1rem;
    }

    .underDevelopment{
        cursor:pointer;
    }


#outsourceBenefits_contaienr{
    display:flex;
    align-items: center;
    justify-content: space-around;
    width:100%;
    margin:2rem 0 1rem 0;
}

    .outsourceBenefit_container{
        display:flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

        .outsourceBenefit_container img{
            filter:invert(0) grayscale(1);
            width:60px;
        }


/* Layout Tablet (700px - 969px) */
.layout-tablet {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.layout-tablet .tablet-row {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.layout-tablet .tablet-row .info_container {
    flex: 1;
    min-width: 0;
}

.layout-tablet #socialMedia_container {
    width: 100%;
}

.layout-tablet #pastMonths_container {
    width: 100%;
}

.layout-tablet #dataUpdateWarning {
    text-align: center;
    margin-top: 1rem;
}

/* Ajuste para plan_container en tablet */
@media (min-width: 700px) and (max-width: 969px) {
    #plan_container {
        padding: 20px 0;
    }
    #panel_container{
        display:flex;
        flex-direction: column;
        gap:0;
    }
}

/* Layout Mobile (< 700px) */
.layout-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 1rem;
}

.layout-mobile #dataUpdateWarning {
    text-align: center;
    margin: 1rem 0;
}

/* Layout Desktop (>= 970px) */
.layout-desktop {
    /* Mantén tus estilos actuales para desktop */
}

/* Responsive adjustments */
@media (max-width: 969px) {
    .column_container {
        width: 100%;
    }
}

/* Main Container */
#phoneArchive_container {
    width: 100%;
    background: var(--main);
    min-height: 100vh;
    padding:0 3rem;
}

/* Navigation Bar */
#phoneArchive_navigation {
    background: var(--main);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#phoneArchive_title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

#phoneArchive_tabsList {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.phoneTab {
    display: inline-block !important;
    white-space: nowrap;
}

/* Platform Header */
#phoneArchive_header {
    background: var(--main);
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
}

#phoneArchive_accountInfo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.phoneArchive_platformLogo {
    height: 50px;
    width: 50px;
    object-fit: contain;
}

.phoneArchive_platformName {
    font-size: 1.5rem;
    margin: 0;
    color: #333;
}

.phoneArchive_username {
    margin: 0.5rem 0 0 3.8rem;
    color: #666;
    font-weight: normal;
}

/* Posts Container */
#phoneArchive_postsContainer {
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Post Card */
.phoneArchive_postCard {
    background: var(--main);
    border-radius: 12px;
    border:1px solid var(--secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.phoneArchive_postCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Post Card Rows */
.phoneArchive_row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

/* Header Row */
.phoneArchive_headerRow {
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
}

.phoneArchive_postName {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    flex-grow: 1;
    cursor: pointer;
}

.phoneArchive_postType {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Media Row */
.phoneArchive_mediaRow {
    justify-content: flex-start;
}

.phoneArchive_mediaContainer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.phoneArchive_media {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
    /* border: 1px solid #e0e0e0; */
}

.phoneArchive_media:hover {
    transform: scale(1.05);
}

.phoneArchive_mediaVideo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.phoneArchive_addMedia {
    width: 70px;
    height: 70px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.phoneArchive_addMedia:hover {
    border-color: #866e56;
    background: #f9f9f9;
}

.phoneArchive_addMedia .customFileInput {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phoneArchive_addMedia .customFileInput span {
    font-size: 1.5rem;
    color: #999;
}

/* Bottom Row */
.phoneArchive_bottomRow {
    justify-content: space-around;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Status Container */
.phoneArchive_statusContainer {
    flex: 0 0 auto;
}

.phoneArchive_statusDropdown .dropdown-selected,
.phoneArchive_postStatus {
    padding: 0.4rem 0.8rem;
    border-radius: .4rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

/* Dropdown Sections */
.phoneDropdown_container {
    flex: 1;
    min-width: 0;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.phoneDropdown_container.active {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.phoneDropdown_header {
    padding: 0.6rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.phoneDropdown_header:hover {
    background: rgba(134,110,86,0.05);
}

.phoneDropdown_title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

.phoneDropdown_arrow {
    color: #999;
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.phoneDropdown_content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.phoneDropdown_content.expanded {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

.phoneDropdown_text {
    padding: 0.8rem;
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
    border-top: 1px solid #e0e0e0;
}

.phoneArchive_postComment {
    cursor: pointer;
}

.phoneArchive_postComment:hover {
    background: rgba(134,110,86,0.03);
}

.phoneArchive_postDescription {
    cursor: pointer;
}

.phoneArchive_postDescription:hover {
    background: rgba(134,110,86,0.03);
}

/* Load More Button */
.phoneArchive_loadMoreButton {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: var(--highlight);
    border: 2px solid var(--highlight);
    border-radius: .5rem !important;
    color: var(--black_text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.phoneArchive_loadMoreButton:hover {
    background: #866e56;
    color: white;
}

.phoneArchive_loadMoreButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Portal Dropdown Options (for status/type dropdowns) */
.portal-dropdown-options {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    padding: 0.25rem;
    margin: 0;
}

.portal-dropdown-options li {
    padding: 0.5rem 0.75rem;
    margin: 0.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.portal-dropdown-options li:hover {
    transform: translateX(2px);
}

/* Comment Editor Popover
.comment-editor-popover {
    position: absolute;
    background: white;
    border: 2px solid #866e56;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100000;
    min-width: 250px;
    max-width: 400px;
}

.commentEditorInput {
    width: 100%;
    min-height: 60px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

.commentEditorInput:focus {
    outline: none;
    border-color: #866e56;
} */

/* Responsive adjustments for tablets */
@media (min-width: 700px) and (max-width: 969px) {
    .phoneArchive_postCard {
        padding: 1.25rem;
    }
    
    .phoneArchive_media {
        width: 90px;
        height: 90px;
    }
    
    .phoneArchive_addMedia {
        width: 90px;
        height: 90px;
    }
    
    .phoneDropdown_container {
        flex: 1 1 calc(50% - 0.25rem);
    }
    
    .phoneArchive_bottomRow {
        flex-wrap: wrap;
    }
    
    .phoneArchive_statusContainer {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }
}

/* No posts message */
#noPostsTitle {
    text-align: center;
    color: #666;
    font-weight: normal;
    padding: 3rem 1rem;
}

/* Custom scrollbar for tabs list */
#phoneArchive_tabsList::-webkit-scrollbar {
    height: 4px;
}

#phoneArchive_tabsList::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#phoneArchive_tabsList::-webkit-scrollbar-thumb {
    background: #866e56;
    border-radius: 2px;
}

#phoneArchive_tabsList::-webkit-scrollbar-thumb:hover {
    background: #6b5745;
}


.phoneArchive_addMedia {
    background-color: var(--main) !important;
    border: 2px solid var(--secondary) !important;
}

.phoneArchive_addMedia .customFileInput {
    background-color: var(--main) !important;
    border:none !important;
}

.phoneArchive_addMedia .customFileInput span {
    color: var(--secondary) !important;
    font-weight: bold;
}


/* ============================================
   PHONE MOBILE MODE STYLES
   ============================================ */

#phoneMobile_container {
    width: 100%;
    max-width: 100vw;
    padding: 0;
    margin: 0;
    background: var(--background);
}

#phoneMobile_navigation {
    /* background: var(--highlight); */
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#phoneMobile_title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--text);
}

#phoneMobile_tabsList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#phoneMobile_header {
    padding: 1rem;
    /* background: var(--white_text); */
    border-bottom: 1px solid var(--highlight);
}

#phoneMobile_accountInfo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.phoneMobile_platformLogo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.phoneMobile_platformName {
    margin: 0;
    font-size: 1.25rem;
    /* color: var(--text); */
}

.phoneMobile_username {
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: 800;
}

.phoneMobile_addPostButton {
    width: 100%;
    margin:0 !important;
}

#phoneMobile_postsContainer {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Phone Mobile Post Card */
.phoneMobile_postCard {
    /* background: var(--white_text); */
    border:2px solid var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.phoneMobile_postCard:active {
    transform: scale(0.98);
}

.phoneMobile_postCard.expanded {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Compact Section (Always Visible) */
.phoneMobile_compactSection {
    padding: 1rem;
}

.phoneMobile_headerRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.phoneMobile_postName {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    flex: 1;
    cursor: pointer;
}

.phoneMobile_expandArrow {
    font-size: 1.2rem;
    color: var(--secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.phoneMobile_postCard.expanded .phoneMobile_expandArrow {
    transform: rotate(180deg);
}

.phoneMobile_mediaRow {
    margin-bottom: 0.75rem;
}

.phoneMobile_mediaContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.phoneMobile_media {
    width: 80px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.phoneMobile_media:active {
    transform: scale(0.95);
}

.phoneMobile_mediaImage {
    border: 2px solid var(--highlight);
}

.phoneMobile_mediaVideo {
    /* border: 2px solid var(--video_background); */
    object-fit: contain;
    /* background: var(--highlight); */
}

.phoneMobile_addMedia {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: var(--highlight); */
    border: 2px dashed var(--secondary);
}

    .phoneMobile_addMedia .customFileInput{
        background:none !important;
    }

.phoneMobile_statusRow {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .phoneMobile_typeDropdown, .phoneMobile_statusDropdown{
        min-height: 2.75rem !important;
        margin-top:.5rem;
    }

        .phoneMobile_typeDropdown .dropdown-selected, .phoneMobile_statusDropdown .dropdown-selected{
            min-height: 2.75rem !important;
            display:flex;
            align-items: center;
            justify-content: center;
            font-size: max(1.6lvh, 1.6lvw, 1rem) !important;
        }

@media (max-width:700px){
    .dropdown-options li, .portal-dropdown-options li{
        min-height: 2.75rem !important;
        display:flex;
        align-items: center;
        justify-content: center;
        font-size: max(1.6lvh, 1.6lvw, 1rem) !important;
    }
}


.phoneMobile_statusDropdown,
.phoneMobile_typeDropdown {
    width: 100%;
}

.phoneMobile_statusDropdown .dropdown-selected,
.phoneMobile_typeDropdown .dropdown-selected {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: max(1.6lvh, 1.6lvw, 1rem);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.phoneMobile_postStatus,
.phoneMobile_postType {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: max(1.6lvh, 1.6lvw, 1rem);
    font-weight: 600;
    text-align: center;
    width: 100%;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Expanded Section (Hidden by default) */
.phoneMobile_expandedSection {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid var(--highlight);
}

.phoneMobile_expandedSection.expanded {
    max-height: 1000px;
    padding: 1rem;
}

.phoneMobile_expandedRow {
    margin-bottom: 1rem;
}

.phoneMobile_expandedRow:last-child {
    margin-bottom: 0;
}

.phoneMobile_expandedLabel {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phoneMobile_expandedDescription,
.phoneMobile_expandedComment,
.phoneMobile_expandedDate {
    margin: 0;
    padding: 0.5rem;
    background: var(--highlight);
    border-radius: 6px;
    font-size: 18px;
    line-height: 1.4;
    color: var(--text);
    cursor: pointer;
}

.phoneMobile_expandedDate {
    cursor: default;
}

/* Load More Button */
.phoneMobile_loadMoreButton {
    margin:2rem 0 !important; 
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.phoneMobile_loadMoreButton:active {
    transform: scale(0.98);
    opacity: 0.8;
}

.phoneMobile_loadMoreButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .phoneMobile_media {
        /* width: calc(50% - 0.25rem); */
    }
}

@media (min-width: 600px) {
    #phoneMobile_postsContainer {
        padding: 1rem;
        gap: 1rem;
    }
    
    .phoneMobile_postCard {
        max-width: 600px;
        margin: 0 auto;
    }
}

.portal-dropdown-options {
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-dropdown-options li {
    list-style: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 6px;
    margin: 0.5rem;
}

.portal-dropdown-options li:hover,
.portal-dropdown-options li:active {
    background: var(--highlight);
}

.phoneMobile_expandArrow {
    font-size: 1.2rem;
    color: var(--secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
    display: inline-block; /* ✅ IMPORTANTE: Para que la transformación funcione */
}

.phoneMobile_postCard.expanded .phoneMobile_expandArrow {
    transform: rotate(180deg); /* ✅ Rota cuando está expandido */
}

/* Long-press states and animations */
.phoneMobile_postCard.pressing {
    transform: scale(0.98);
    transition: transform 0.1s ease-out;
}

.phoneMobile_postCard.long-press-selected {
    animation: longPressSelect 0.3s ease-out forwards;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 10;
    position: relative;
}

@keyframes longPressSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1.01);
    }
}

/* Context menu - Bottom sheet style */
.post-context-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

.post-context-menu.active {
    pointer-events: all;
}

.post-context-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.post-context-menu.active .post-context-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.post-context-sheet {
    position: relative;
    width: 100%;
    background: var(--white_text);
    border-radius: 20px 20px 0 0;
    padding: 1rem 1rem 2rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.post-context-menu.active .post-context-sheet {
    transform: translateY(0);
}

.post-context-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.post-context-handle {
    width: 36px;
    height: 4px;
    background: var(--secondary);
    opacity: 0.3;
    border-radius: 2px;
}

.post-context-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.post-context-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--highlight);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
    width: 100%;
    text-align: left;
    justify-content: center;
}

.post-context-option:active {
    transform: scale(0.98);
    opacity: 0.8;
}

.post-context-delete span {
    font-weight: 800;
}

.post-context-delete svg {
    flex-shrink: 0;
    stroke: currentColor;
}

.post-context-cancel {
    background: var(--secondary);
    
}

    .post-context-cancel span{
        color: var(--white_text);
        font-weight: 800;
    }

/* Prevent text selection during long press */
.phoneMobile_postCard {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.phoneMobile_expandedDescription[contenteditable="true"],
.phoneMobile_expandedComment[contenteditable="true"],
.phoneMobile_postName[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}


/* Media Modal Navigation Styles */
.media-modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary);
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    user-select: none;
}

.media-modal-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.media-modal-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.media-modal-nav-prev {
    left: 20px;
}

.media-modal-nav-next {
    right: 20px;
}

/* Responsive adjustments for navigation buttons */
@media (max-width: 768px) {
    .media-modal-nav {
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }

    .media-modal-nav-prev {
        left: 10px;
    }

    .media-modal-nav-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .media-modal-nav {
        width: 45px;
        height: 45px;
        font-size: 2rem;
        background: rgba(255, 255, 255, 0.8);
    }

    .media-modal-nav-prev {
        left: 5px;
    }

    .media-modal-nav-next {
        right: 5px;
    }
}

/* Media modal indicator styles are inline in JS */
.media-modal-indicator {
    pointer-events: none;
    user-select: none;
}

/* Ensure media container has smooth transitions */
.media-modal-media-container img,
.media-modal-media-container video {
    transition: opacity 0.3s ease;
}






















/*STYLE FOR PHONE PANEL MANAGER (TEMPORAL)*/

@media (max-width:700px) {
    /* Override the phone panel detection - COMMENTED to allow initial phone panel screen */
    /* #SMAccount-phone_container,
    #panelPhoneInfo_container {
        display: none !important;
    } */

    /* Force settings container to show */
    #settings_container {
        display: flex !important;
        flex-direction: column;
        width: 100vw !important;
        padding: 0 !important;
        align-items: center;
    }
    
    /* Navigation sidebar becomes horizontal */
    #settingsNavigation_container {
        position: relative !important;
        width: 100% !important;
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    #settingsNavigationList {
        /* display: flex !important; */
        overflow-x: auto !important;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .settingsTab {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Settings page takes full width */
    #settingsPage_container {
        width: 100vw !important;
        margin: 0 !important;
        padding: 1rem !important;
        overflow-x: hidden !important;
    }
    
    /* Make panel table scrollable but visible */
    #panelTable_container {
        overflow-x: auto !important;
        overflow-y: visible !important;
        width: 100vw !important;
        min-width: unset !important;
        padding: 0 !important;
        margin: 0 !important;
        -webkit-overflow-scrolling: touch;
    }
    
    #panelInfo_container {
        width: max-content !important;
        min-width: 100% !important;
        margin: 0 !important;
    }
    
    /* Keep the grid but make it scrollable */
    .postLine, #columns_container {
        display: grid !important;
        /* Reduce column widths for better mobile fit */
        grid-template-columns: 120px 100px 120px 120px 100px 120px 80px 80px !important;
    }
    
    /* Smaller fonts for mobile */
    .postLine p, #columns_container p {
        font-size: 0.75rem !important;
    }
    
    /* Smaller status/type badges */
    .postStatus, .postType {
        font-size: max(1.6lvh, 1.6lvw, 1rem) !important;
        padding: 0.2rem 0.3rem !important;
    }
    
    /* Smaller media thumbnails */
    .postRowMedia {
        width: 25px !important;
        height: 25px !important;
        margin: 0.1rem !important;
    }
    
    /* Smaller dropdowns */
    .custom-dropdown {
        width: 100% !important;
    }
    
    .dropdown-selected {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.3rem !important;
    }
    
    /* Add scroll indicator */
    #panelTable_container::after {
        content: "→ Scroll for more →";
        position: sticky;
        right: 0;
        top: 50%;
        background: var(--secondary);
        color: white;
        padding: 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.7rem;
        opacity: 0.8;
        pointer-events: none;
    }
    
    /* Manager add post button */
    .addCustomerButton {
        width: calc(100vw - 2rem) !important;
        /* margin: 0.5rem 1rem !important; */
    }
    
    /* Portal dropdowns positioning fix */
    .portal-dropdown-options {
        position: fixed !important;
        max-width: 200px !important;
        /* max-height: 300px !important; */
        overflow-y: auto !important;
    }
    
    /* Comment popover adjustments */
    .comment-editor-popover {
        position: fixed !important;
        max-width: 90vw !important;
        left: 5vw !important;
        transform: none !important;
    }
    
    .comment-editor-popover textarea {
        max-width: calc(90vw - 2rem) !important;
        min-width: 200px !important;
    }
    
    /* Date popover adjustments */
    .date-editor-popover {
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: 90vw !important;
    }
    
    /* Load older posts button */
    #loadOlderPostsButton {
        position: sticky;
        left: 0;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    /* Context menu positioning */
    .context-menu {
        position: fixed !important;
        max-width: 200px !important;
    }
    
    /* File input adjustments */
    .fileInputContainer {
        min-width: 25px !important;
        min-height: 25px !important;
    }
    
    .customFileInput {
        /* width: 25px !important;
        height: 25px !important;
        font-size: 14px !important; */
    }

    .filter-controls div:first-of-type{
        display:flex;
        flex-direction: column;
        align-items: center;
    }

        .toggle-container{
            display:flex;
            flex-direction: row !important;
            align-items: center;
        }
}

/* OAuth Connection Overlay */
#fb-oauth-overlay,
#tiktok-oauth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.fb-oauth-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.fb-oauth-content {
    width: 100%;
}

.fb-oauth-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.fb-oauth-title {
    margin: 0 0 10px 0;
    color: #1f2937;
    font-size: 24px;
}

.fb-oauth-description {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

.fb-oauth-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.fb-oauth-icon.success {
    background: #10b981;
}

.fb-oauth-icon.error {
    background: #ef4444;
}

.fb-oauth-icon svg {
    width: 30px;
    height: 30px;
}

.fb-oauth-button {
    background: var(--secondary);
    color: var(--main);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 20px;
}

.fb-oauth-button:hover {
    background: #2563eb;
}

/* Website Statistics Styles */

.statCard {
    background: var(--background);
    border: 1px solid var(--secondary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.statCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.statCard_label {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.statCard_value {
    font-size: 2rem;
    color: var(--text);
    margin: 0;
    font-weight: 700;
}

.statsTable_container {
    background: var(--background);
    border: 1px solid var(--secondary);
    border-radius: 0.75rem;
    overflow: hidden;
}

.statsTable {
    width: 100%;
    border-collapse: collapse;
}

.statsTable thead {
    background: var(--secondary);
    color: var(--main);
}

.statsTable th {
    padding: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.statsTable tbody tr {
    border-bottom: 1px solid var(--secondary);
    transition: background-color 0.2s ease;
}

.statsTable tbody tr:last-child {
    border-bottom: none;
}

.statsTable tbody tr:hover {
    background: rgba(0,0,0,0.02);
}

.statsTable td {
    padding: 1rem;
    color: var(--text);
}

/* Mobile responsive */
@media (max-width: 700px) {
    .statCard_value {
        font-size: 1.5rem;
    }

    .statsTable {
        font-size: 0.85rem;
    }

    .statsTable th,
    .statsTable td {
        padding: 0.75rem 0.5rem;
    }

    #websiteStatistics_container > div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    #statisticsPeriodSelector {
        width: 100%;
    }
}