:root{
    --fldty-default-bg: #f5f9fd;
    --fldty-blue: #195FAA;
    --fldty-card-bg: #fff;
    --fldty-card-border: 1px solid #ddd;
    --fldty-hover-bg: #f0f8ff;
    /*--fldty-card-shadow: 0 0 10px rgba(0,0,0,.1);*/
    --fldty-card-title: #195FAA;
    --fldty-border-radius: 12px;
    --fldty-card-border-radius: 12px;
    --fldty-card-padding: 10px 20px;
    --fldty-card-margin-bottom: 20px;
    --fldty-active-filter-bg: var(--fldty-hover-bg);

    --fldty-list-ele-date-width: 85px;
    --fldty-list-ele-type-width: 75px;
    --fldty-list-ele-editor-width: 100px;
    --fldty-list-ele-status-width: 24px;
    --fldty-list-ele-title-width: calc(100% - (var(--fldty-list-ele-date-width) + var(--fldty-list-ele-type-width) + var(--fldty-list-ele-editor-width) + var(--fldty-list-ele-status-width) + 40px));
    --fldty-post-side-sheet-wrap-width: 360px;
    --vpss-control-border-color: #90bada;
    --vpss-control-border-radius: 8px;
}

/***** Override WP Admin Default Styles *****/



.wp-admin {
    background: var(--fldty-default-bg);
}

div#wpcontent {
    margin: 0 0 0 170px;
}


#wpcontent #wpbody-content > .wrap > h1,
#wpcontent #screen-meta-links,
#wpcontent #dashboard-widgets-wrap {
    display: none !important;
}


#wpcontent div#welcome-panel {
    display: none;
}

#wpcontent .notice-info {
    display: none !important;
}

#wpcontent .e-notice.e-notice--warning.e-notice--dismissible {
    display: none !important;
}

/***** End Override WP Admin Default Styles *****/


/**** VWP Styles *****/
.fldty-user-avatar {
    border-radius: 50%;
    height: 20px;
    width: 30px;
    padding: 10px 5px;
    font-size: 20px;
    font-weight: 600;
    /* display: block; */
    background: orange;
    color: #fff;
    text-align: center;
}

span.fldty-user-avatar.sm {
    font-size: 12px;
    width: 24px;
    height: 22px;
    display: block;
    padding: 2px 0 0 0;
}

.fldty-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.fldty-flex-3 {
    width: 75%;
}

.fldty-flex-1 {
    width: 25%;
}


.fldty-card{
    background: var(--fldty-card-bg);
    border: var(--fldty-card-border);
    border-radius: var(--fldty-card-border-radius);
    box-shadow: var(--fldty-card-shadow);
    padding: 0;
    margin-bottom: var(--fldty-card-margin-bottom);
}

.fldty-card-header {
    padding: var(--fldty-card-padding);
    border-bottom: var(--fldty-card-border);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fldty-card-title);
}

.fldty-card-body {
    padding: var(--fldty-card-padding);
}

.fldty-card-footer {
    padding: var(--fldty-card-padding);
}

/**** End VWP Styles *****/

/**** VisualWP Dashboard Styles *****/
div#fldty-dash-wrap {
    display: flex;
    gap: 30px;
}

.fldty-dash-layout {
    width: calc(100% - 30px) ;
    transition: width .5s ease-in-out;
}

.fldty-dash-layout.contract{
    width: calc(100% - var(--fldty-post-side-sheet-wrap-width) - 30px);
}

#fldty-post-side-sheet-wrap {
    background: #fff;
    width: 0;
    height: 100vh;
    display: block;
    height: calc(100vh - 36px);
    background: #fff;
    transition: width .5s ease-in-out;
    z-index: 99999;
    border-radius: 12px 0 0 12px;
    /* padding: 24px; */
    border: var(--fldty-card-border);
    box-shadow: 0 0 10px rgba(0,0,0,.1);
    visibility: hidden;
    position: fixed;
    right: 0;
}

#fldty-post-side-sheet-wrap.active {
    display: block;
    width: var(--fldty-post-side-sheet-wrap-width);
    visibility: visible;
}

div#fldty-post-side-sheet {
    padding: 24px 0;
}

#fldty-post-side-sheet.active {
    right: 0;
}

div#fldty-movables {
    display: none;
    position: absolute;
    right: -99999px
}


#fldty-dash-header {
    padding: 0;
    border-radius: var(--fldty-card-border-radius);
    /* border: var(--fldty-card-border); */
    margin-bottom: 40px;
    display: flex;
    align-items: flex-end;
    /* justify-content: space-between; */
    gap: 30px;
}

#fldty-dash-header-branding img {
    max-height: 100px;
}

#fldty-dash-header-admin {
    background: #fff;
    padding: 10px 20px;
    border-radius: var(--fldty-card-border-radius);
    border: var(--fldty-card-border);
    margin-bottom: var(--fldty-card-margin-bottom);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--fldty-blue);
    width: 100%;
}

.fldty-dash-name {
    color: var(--fldty-blue);
    font-size: 24px;
    font-weight: 600;
    font-family: Poppins;
}

/*ul.fldty-list-filter {
    margin: 0;
    display: flex;
    gap: 15px;
    padding: 2px 0;
    background: #fff;
}*/

.fldty-list-filter {
    display: flex;
    flex-wrap: nowrap;             /* force items into one row */
    overflow-x: auto;              /* enable horizontal scroll if needed */
    overflow-y: hidden;            /* no vertical scroll */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    gap: 0.75rem;                  /* space between items */
    padding: 0.5rem 0;             /* breathing room */
    margin: 0;
    list-style: none;
}

ul.fldty-list-filter li {
    font-size: 14px;
    font-family: Poppins;
    cursor: pointer;
    padding: 5px;
    /* border-radius: 6px; */
    font-weight: 500;
    border-bottom: 3px solid transparent;
    /* min-width: 25px; */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
    white-space: nowrap;
}

ul.fldty-list-filter li.active {
    /* background: var(--fldty-active-filter-bg); */
    border-bottom: 3px solid var(--fldty-blue);
}

ul.fldty-list-filter li:hover {
    border-bottom: 3px solid var(--fldty-blue);
}

/* Hide scrollbar in WebKit browsers */
.fldty-list-filter::-webkit-scrollbar {
    height: 6px; /* slim horizontal bar */
}

.fldty-list-filter::-webkit-scrollbar-track {
    background: transparent;
}

.fldty-list-filter::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.fldty-list-filter::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Hide scrollbar in Firefox */
.fldty-list-filter {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

div#fldty-list-rows {
    max-height: 40vh;
    overflow: auto;
}

ul.fldty-list {
    line-height: 1.5em;
    margin: 10px 3px;
    height: 50vh;
    overflow: auto;
}

.fldty-list-th {
    font-weight: 500;
    font-size: 1em;
    text-transform: uppercase;
    color: #777;
}

.fldty-list-ele {
    align-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

li.fldty-list-row, li.fldty-list-row-head {
    position: relative;
    display: flex;
    gap: 10px;
    flex-flow: row;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    padding: 10px 3px 10px 3px;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
    background-color: #fff;
    align-items: center;
}

.fldty-list-row.active{
    background: var(--fldty-hover-bg);
}

/*ul.fldty-list li.fldty-list-row:hover {
    box-shadow: inset 1px 0 0 rgb(218,220,224),inset -1px 0 0 rgb(218,220,224),0 1px 2px 0 rgba(60,64,67,.3),0 1px 3px 1px rgba(60,64,67,.15);
    z-index: 2;
}*/

ul.fldty-list li.fldty-list-row:hover {
    box-shadow: inset 0px 0 0 rgb(218,220,224),inset 0px 0 0 rgb(218,220,224),0 0px 1px 0 rgba(60,64,67,.3),0 0px 3px 1px rgba(60,64,67,.15);
    z-index: 2;
    background: var(--fldty-hover-bg);
}

.fldty-list-ele.date, .fldty-list-th.date {
    width: var(--fldty-list-ele-date-width);
}

.fldty-list-ele.title, .fldty-list-th.title {
    width: var(--fldty-list-ele-title-width);
}

.fldty-list-ele.title { /* to bold the title in the list only */
    font-weight: 600;
    color: #555;

}

.fldty-list-ele.type, .fldty-list-th.type {
    width: var(--fldty-list-ele-type-width);
}

.fldty-list-ele.editor, .fldty-list-th.editor {
    width:  var(--fldty-list-ele-editor-width);
}

.fldty-list-ele.status, .fldty-list-th.status {
    width: var(--fldty-list-ele-status-width);
}

.fldty-list-ele.status::after {
    content: attr(data-icon);
    font-family: "Material Symbols Outlined";
    font-size: 24px;
    vertical-align: middle;
}

div#fldty-list-row-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    padding: 0 10px;
    
}

div#fldty-list-row-actions.active {
    display: flex !important;
    gap: 10px;

}

.fldty-list-row-action{
    cursor: pointer;
    color: #777;
}

.fldty-list-row-action a{
    color: inherit;
    text-decoration: none;
}

.fldty-list-row-action:hover{
    color: var(--fldty-blue);
}

.fldty-post-side-sheet-body label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 10px 0 5px;
}

.vpss-control {
    margin-bottom: 10px;
}

.vpss-control select, .vpss-control input {
    border: 1px solid var(--vpss-control-border-color);
    border-radius: var(--vpss-control-border-radius);
}

.vpss-control input.full-width, .vpss-control select.full-width, .vpss-control textarea.full-width {
    width: -webkit-fill-available;  
}

.vpss-control textarea {
    border: 1px solid var(--vpss-control-border-color);
    border-radius: var(--vpss-control-border-radius);
    height: 100px !important;
}

.vpss-control #permalink-con {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#permalink-copy{
    cursor: pointer;
    color: #777;
    font-size: 22px;
}

input#post-nav-order {
    width: 60px;
}

.fldty-list-load-more {
    background: #eeeeee;
    border-radius: 50px;
    color: var(--fldty-blue);
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    vertical-align: middle;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.3s ease, background 0.3s ease;
}

.fldty-list-load-more:hover {
    background: var(--fldty-blue);
    color: #fff;
}

/******* Side Sheets ********/

/** Tabs **/
.fldty-tabs-label-con {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
    z-index: 1;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: #ddd;
}
.fldty-tab-list {
    flex-grow: 1;
    position: relative;
    transition: transform 500ms cubic-bezier(0.35, 0, 0.25, 1);
}

.fldty-tab-labels {
    display: flex;
    flex: 1 0 auto;
    flex-grow: 1;
    justify-content: space-around;
    /* padding: 0 0 10px; */
    /* text-align: center; */
}

span.fldty-tab-label {
    display: flex;
    cursor: pointer;
    padding: 10px 0;
    width: -webkit-fill-available;
    justify-content: center;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-family: Poppins;
    font-weight: 500;
    color: #555;
}

span.fldty-tab-label:hover {
    background: var(--fldty-hover-bg);
    font-weight: 600
}
span.fldty-tab-label.active {
    border-bottom: 2px solid var(--fldty-blue);
    font-weight: 600
}

.fldty-tab-content {
    display: none;
    padding: 24px;
}
.fldty-tab-content.active {
    display: block;
}

/** End Tabs **/

.fldty-post-side-sheet-actions {
    position: fixed;
    bottom: 24px;
}

#save-post-btn {
    background: var(--fldty-blue);
    color: #fff;
    padding: 4px 16px;
    margin: 0 0 0 20px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    border: 1px solid var(--fldty-blue);
    cursor: pointer;
    transition: background 0.3s ease;
}

#save-post-btn:hover {
    background: #0f3a67;
} 

#cancel-post-btn {
    background: #fff;
    color: #333;
    padding: 4px 16px;
    margin: 0 0 0 10px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 500;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

#cancel-post-btn:hover {
    color: var(--fldty-blue);
}



.fldty-post-side-sheet-header {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    border-bottom: var(--fldty-card-border);
    /* margin-bottom: 12px; */
    padding: 0 24px;
    align-items: baseline;
}

span.fldty-post-side-sheet-close {
    background: transparent;
    height: 24px;
    width: 24px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

span.fldty-post-side-sheet-close:hover {
    background:  var(--fldty-hover-bg);
}
.fldty-post-side-sheet-title {
    font-size: 22px;
    margin-bottom: 24px;
}

.fldty-web-preview {
    height: 300px;
    overflow: hidden;
}
.fldty-web-preview iframe {
    width: 100%;
    height: 100%;
    transform: scale(0.5);
}

.fldty-form-group {
    margin: 0 0 20px;
}

.fldty-form-group label {
    display: block;
    font-size: 16px;
    line-height: 1.6em;
    font-weight: 500;
    color: #999;
}

span.fldty-post-side-sheet-title {
    font-size: 22px;
    margin-bottom: 24px;
    line-height: 1.2em;
    /* border-bottom: 1px solid; */
}

div#fldty-settings-type {
    font-size: 16px;
}

div#fldty-settings-tags, div#fldty-settings-cats {
    display: flex;
    gap: 12px;
}

span.fldty-chip {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    font-size: 14px;
}


div#site-content-search {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 10px;
    gap: 10px;
}

input#site-content-search-inp {
    width: -webkit-fill-available;
    border: none;
}

input#site-content-search-inp:focus, input#site-content-search-inp:focus-visible, input#site-content-search-inp:focus-within {
    box-shadow: none;
    outline: none;
    border: none;
}


#schedule-date-container{
    display: none;
}

/**** End VisualWP Dashboard Styles *****/
