/* define root styles pn = plugin-name*/
:root {
    --tm-primary-color: #333;
    --tm-secondary-color: #f79431;
    --tm-secondary-color-hover: #c26e1a;
    --tm-gradient: radial-gradient(circle, #333 0%, #111 100%);
}
body{
    background: #000;
    
}
ul#adminmenu a.wp-has-current-submenu:after, ul#adminmenu>li.current>a.current:after{
    border-right-color: #000;
}

#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head, #adminmenu .wp-menu-arrow, #adminmenu .wp-menu-arrow div, #adminmenu li.current a.menu-top, #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu{
    background-color: var(--tm-secondary-color);
}
#wpbody{
    background: url(../assets/marmalade.png) 0 100% no-repeat;
    background-size: 300px;
}

#wpfooter{
    color: #ccc;
}
#wpfooter a{
    color: var(--tm-secondary-color);
}

.notice, div.error, div.updated{
    margin: 0;
}

#footer-thankyou{
    padding-left: 130px;
}
#wpcontent, .auto-fold #wpcontent {
    padding-left: 0;
    
}

.tm-banner { 
    max-width: 100%;
    min-height: 400px;
    background: #333;
    
}
.tm-banner-bg{
    padding: 40px 15px 50px 45vw;
    min-height: 450px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: left;
    background: url(../assets/featured.jpg) 50% 50% no-repeat; 
    background-size: cover;
    z-index: -1;
}

@media screen and (max-width: 1024px) {
    .tm-banner-bg{
        padding: 40px 20px 90px 25vw;
        background-position: 75% 20%;
    }
    
}

.tm-banner h1 span {
    font-size: 2em;
    line-height: 1em;
    color: #fff;
    text-shadow: 0 5px 5px rgba(0,0,0,0.3);
}

.tm-banner p {
    padding-top: 10px;
    color: #fff;
    font-size: 1.2em;
    font-weight: 300;
    text-shadow: 0 2px 2px rgba(0,0,0,0.7);
    margin: 0;
}
.tm-banner a{
    color: var(--tm-secondary-color);
    text-decoration: none;
    text-emphasis: none;
    z-index: 999;
}
.tm-banner a:hover{
    color: var(--tm-secondary-color-hover);
}

.tm-banner .version{
    font-size: .9em;
    opacity: .6;
    font-weight: 100!important;
    margin: 0;
}
.tm-banner cite{
    display: none;
}

.tm-banner .btn {
    padding: 15px 30px;
    background: var(--tm-secondary-color);
    border-radius: 50px;
    color: #FFF;
    text-decoration: none !important;
    font-size: 1.4em;
    width: max-content;
    display: block;
    transition: all .3s;
}

.tm-banner .btn:hover {
    background: var(--tm-secondary-color-hover);
    transform: scale(2) rotate(-12deg);
    box-shadow: -20px 20px 50px #000;
    color: #fff;
}
.rss-title {
    background: var(--tm-gradient); 
    max-width: 100%;
    height: 100px;
    display: flex;
    justify-content: start;
}
.rss-title .rss-icon{
    background: rgba(255,255,255,0.2) url(../assets/menu-logo.svg) 50% 50% no-repeat;
    background-size: 70%;
    color: #fff;
    height: 100px;
    width:100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.rss-title .rss-icon .dashicons{
    transform:scale(2.5);
}
.rss-title .rss-content{
    color: #fff;
    display: block;
    height: 100px;
    margin-left: 20px;
    width: max-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.rss-title .rss-content h1,.rss-title .rss-content p{
    color: #fff;
    margin: 5px 0;
}
.rss-title .rss-content p{
    font-size: 1.2em;
}

.mt0{
    margin-top: 20px!important;
}

#wpbody-content .logo-wrapper{
    width: 100%;
    text-align: center;
}
#wpbody-content .logo-wrapper svg{
    max-width: 450px;
    width: 80%;
    display: inline-block;
    margin:60px auto 30px;
    text-align: center;
}
#wpbody-content .logo-wrapper svg path{
    fill:#fff;
}
.tm-wrap{
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    margin: -60px 20px 20px;
    display: flex;
    z-index: 999!important;
}
.tm-wrap h2{
    margin-top: 7px;
    font-size: 1.8em;
}
.tm-wrap a{
    color: var(--tm-secondary-color);
}
.tm-wrap a:hover{
    color: var(--tm-secondary-color);
}
.tm-left-wrapper{
    width: 100%;
    padding-right: 20px;
}
.tm-right-wrapper{
    width: 100%;
    max-width: 400px;
    min-height: 300px;
    padding: 20px;
    border-radius: 10px;
}
@media (max-width: 1024px) {
    .tm-wrap{
        flex-wrap: wrap;
        margin: -40px 20px 20px 20px;
    }
    .tm-left-wrapper, .tm-right-wrapper{
        width: 100%;
        max-width: 100%;
    }
    #wpbody-content .logo-wrapper svg{
        
        margin:60px auto 150px;
    }
}
/*FORM STYLING*/
input[type=checkbox]:checked::before, input[type=radio]:checked::before{
    content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23fff%27%2F%3E%3C%2Fsvg%3E")!important;
}

input[type=checkbox]:checked, input[type=radio]:checked{
    background-color: var(--tm-secondary-color)!important;
}

.tm-wrap input[type=text],.tm-wrap input[type=number],.tm-wrap input[type=submit], .tm-wrap textarea,.tm-wrap .button{
    min-width: 50px;
    padding: 10px 20px!important;
    border-radius: 30px!important;
    background: #f8f8f8;
    border:none!important;
}
.tm-wrap input[type=text]:focus, .tm-wrap input[type=number]:focus, .tm-wrap select:focus, .tm-wrap input[type=checkbox]:focus, .tm-wrap input[type=radio]:focus,.tm-wrap textarea:focus{
    box-shadow: 0 0 0 2px var(--tm-secondary-color)!important;
}
.tm-wrap input[type=checkbox], .tm-wrap input[type=radio]{
    width:30px;
    height:30px;
    border-radius: 30px!important;
    background: #f0f0f1;
    border:none!important;
    box-shadow: none;
}
.tm-wrap input[type=checkbox]:checked::before, .tm-wrap input[type=radio]:checked::before{
    width:30px;
    height:30px;
    font-size: 20px;
    margin:0 -2px;
    background-color: transparent;
}
.tm-wrap input[type=text]:read-only{
    color:#999;
    width: calc(50% - 50px)!important;
}
.tm-wrap input.button, .tm-wrap .button.select-image, .tm-wrap .button.clear-image, .tm-wrap .tm-upload-button{
    background: var(--tm-secondary-color)!important;
    width: max-content!important;
    border-radius: 30px!important;
    padding: 3px 20px!important;
    font-size: 1em!important;
    transition: all .3s;
    height: 48px;
    color: #fff;
}
.tm-wrap input.button:hover, .button.select-image:hover, .tm-wrap .button.clear-image:hover, .tm-wrap .tm-upload-button:hover{
    background: var(--tm-secondary-color-hover)!important;
    color: #fff!;
}
.tm-wrap input.default-image{
    width: 80%!important;
    background: none!important;
    color: #ddd;
}
.tm-wrap input.default-image:focus{
    box-shadow:none!important;
}
.tm-wrap .button.clear-image{
    background-color: transparent!important;
    color: #999;
    padding: 0!important;
    width:40px!important;
    height: 40px;
}
.tm-wrap .button.clear-image:hover{
    color: var(--tm-secondary-color-hover);
}
.tm-wrap .button.clear-image span:before{
    width:30px!important;
    height: 30px;
    font-size: 38px;
}
.tm-wrap select{
    min-width: 50%!important;
    padding: 10px 20px!important;
    border-radius: 30px!important;
    border:none!important;
    position: relative!important;
    background: #f8f8f8 url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 15px top 55%!important;
}
.preview-image{
    max-width: 33%;
    border:1px solid #999;
    border-radius: 10px;
    box-shadow: inset 2px 2px 30px #FFF!important;
}

.tm-wrap input::placeholder{
    color: #BBB;
}
.tm-wrap p.field-description, .tm-wrap label.field-description{
    font-size: 0.8em!important;
    margin: 0;
}
.color-field.wp-color-picker{
    min-width: 150px!important;
}
.tm-wrap .wp-picker-container .button{
    border: 1px solid #ddd!important;
    color: #fff;
    height: 50px;
    position: relative;
}
.tm-wrap .wp-picker-container .button:before{
    font-family: 'dashicons'!important;
    font-size: 1.5em;
    position: absolute;
    width: 100%;
    content: "\f327";
    left: 50%;
    top: 50%;
    transition: all .3s;
    transform: translateX(-50%) translateY(-50%);
    opacity: .3;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.3), -1px -1px 0 rgba(0,0,0,0.3), 1px -1px 0 rgba(0,0,0,0.3), -1px 1px 0 rgba(0,0,0,0.3), 0 1px 0 rgba(0,0,0,0.3), 0 -1px 0 rgba(0,0,0,0.3), 1px 0 0 rgba(0,0,0,0.3), -1px 0 0 rgba(0,0,0,0.3);
}
.tm-wrap .wp-picker-container .button:hover:before{
    opacity: 1;
    font-size: 2.5em;
}
.tm-wrap .wp-picker-container .button span{
    display: none;
}

.distm-colour-picker{
    display: inline-block!important;
    min-width: 10%;
    background-color: #f8f8f8;
    padding: 0 10px;
    margin-right: 5px;
    border-radius: 15px;
}
.distm-colour-picker input{
    background: #FFF!important;
}

.distm-colour-picker .wp-picker-active{
    min-width: 20%!important;
}
.wp-picker-default{
    display: none!important;
}

.wp-picker-container {
    width: 100%;
    display: flex;
    position: relative;
}
.setting-field label{
    font-weight: bold;
    padding: 10px 0 5px!important;
    display: block;
}
.iris-picker {
    position: absolute!important;
    z-index: 9999!important;
    left: 0!important;
    top: 50px;
    border-radius: 15px!important;
}
.wp-picker-open+.wp-picker-input-wrap{
    display: flex;
}
.wp-picker-input-wrap label{
    font-weight: normal;
    padding: 0!important;
}
.icon-type-selector{
    display: flex;
}

/*DASHICONS*/

.menu-item-settings .field-custom {
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

.menu-item-settings .icon-type-selector {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.menu-item-settings .icon-preview {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background: #fff;
    vertical-align: middle;
    margin-right: 10px;
}

.menu-item-settings .icon-preview img {
    max-width: 100%;
    height: auto;
}

.menu-item-settings .dashicon-selection-section {
    background: #fff;
    border-radius: 30px;
    padding: 10px;
}

.menu-item-settings .dashicon-search {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.menu-item-settings .dashicon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 5px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.menu-item-settings .dashicon-option {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.menu-item-settings .dashicon-option:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.menu-item-settings .dashicon-option.selected {
    background: #2271b1;
    color: white;
}

.icon-upload-section{
    display: flex;
    justify-content: start;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

/* Tab Container */
.tm-tabs {
    margin-bottom: 30px;
}

.tm-tab-list {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0;
    margin-bottom: 30px;
}

/* Tab Buttons */
.tm-tab {
    padding: 12px 24px 12px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 1.8em;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.tm-tab:hover {
    color: var(--tm-secondary-color);
}

.tm-tab.active {
    color: var(--tm-secondary-color);
    border-bottom-color: var(--tm-secondary-color);
}

/* Tab Content */
.tm-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tm-tab-content.active {
    display: block;
}

/* Settings Layout Adjustments */
.settings-section {
    margin-bottom: 0;
}

.settings-section-title {
    display: none; /* Hide original titles since they're now in tabs */
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tm-tab-list {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tm-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

.dashicon-option {
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}
.dashicon-option:hover {
    background: #f0f0f0;
    transform: scale(1.2);
    border-radius: 10px;
}
.dashicon-option.selected {
    background: var(--tm-secondary-color, #2271b1);
    color: white;
    border-radius: 10px;
}
.icon-type-label {
    display: inline-block;
    margin-right: 15px;
}
.dashicon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 5px;
    padding: 10px;
    border-radius: 10px;
    max-height: 200px; 
    overflow-y: auto; 
    background: #fff;
    padding: 10px;
}
.dashicon-selection-section {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 15px;
}
.dashicon-selection-section input{
    background: #fff!important;
}
.icon-preview {
    margin: 5px 0;
    min-height: 40px;
}
.dashicon-separator {
    grid-column: 1/-1;
    border-bottom: 1px solid #ddd;
    margin: 10px 0;
}
.icon-upload-section {
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon-upload-section img {
    width: 30px;
    margin-top: 8px;
    height: auto;
}

/*PREVIEW*/

.preview-container {
    position: sticky;
    top: 60px;
    width: 100%;
    height: 60svh;
    max-height: 700px;
    min-height: 300px;
    background: #222;
    border-radius: 50px;
    overflow: hidden;
    border: 10px solid #222;
    margin-bottom: 20px;
    margin-top: -80px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.preview-container .addon-message{
    display: none;
    position: absolute;
    background: #555;
    text-align: center;
    bottom: 100px;
    left:50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    border-radius: 30px;
    color: #fff;
    z-index:1002;
    text-transform: uppercase;
    font-size: .8em;
}
.preview-container .addon-message:before{
    position: absolute;
    background: #555;
    width: 10px;
    height: 10px;
    content: '';
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    z-index: 1001;
}
.preview-container:hover .addon-message{
    display: block;
}
@media screen and (max-width: 1024px) {
    .preview-container{
        margin-top: 0;
    }
    
}

.preview-header {
    padding: 8px 15px;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    background: #222;
    position: absolute;
    top: 8px;
    left:50%;
    z-index: 9999;
    transform: translateX(-50%);
    border-radius: 30px;
}

.preview-frame {
    height: 100%;
    background: #fff;
    overflow: hidden;
    position: relative;
    
}

.preview-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001; /* Above iframe but below menu */
    cursor: not-allowed;
}

.preview-content {
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 25%, #e9e9e9 25%) -20px 0/ 40px 40px;
    width: 100%;
    display: block;
    
}

.preview-frame .the-menu {
    margin: 0 10px;
    z-index: 1002;
}

.preview-content iframe{
    pointer-events: none;
    height: calc(100% + 100px)!important;
    
}
.preview-frame:hover::before {
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(3px);
}

.preview-frame .tm-fixed-mobile-menu-wrapper {
    position: absolute;
    bottom: 10px;
    width: calc(100% - 20px);
    
}
.preview-frame .tm-fixed-mobile-menu-wrapper.rounded, .preview-frame .tm-fixed-mobile-menu-wrapper.flat  {
    bottom: 0;
    width: 100%;
}
.preview-frame .tm-addon-menu-wrapper{
    position: absolute;
    top:0;
    left:0;
    height: 700px !important;
    width: 100%;
}
.preview-frame #tm-addon-menu {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 700px!important;
}
.preview-frame .tm-featured {
    position: absolute;
    bottom: 25px;
}

.preview-notice {
    padding: 10px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.4;
}

.preview-notice code {
    background: rgba(255,255,255,0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

.preview-frame .tm-folder-preview{
    width: 50px;
    height: 50px;
}

@media screen {
    #tm-addon-menu li{
        width:21.25%;
    }
    #tm-addon-menu a{
        width:70px;
    }
    #tm-addon-menu img{
        height: 70px;
        width: 70px;
    }
    #tm-addon-menu svg, #tm-addon-menu .dashicons{
        width: 40px;
        height: 40px;
        font-size: 40px;
    }
    #tm-addon-menu .tm-menu-item-title{
        margin-top: 10px;
        line-height: 1.2em;
        font-size: 1em;
    }
}

.preview-frame #tm-addon-menu .tm-folder-preview .dashicons{
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.preview-item-add {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.preview-item-add:hover {
    opacity: 1;
    background: rgba(0,0,0,0.1);
}

.preview-item-add .dashicons {
    color: var(--distm-addon-icon-color, #fff);
    font-size: 35px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-frame .app-icon #tm-addon-menu svg, .preview-frame .app-icon #tm-addon-menu img, .preview-frame .app-icon #tm-addon-menu .dashicons{

    width: 70px;
    height: 70px;
}

.tm-menu-item-default {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tm-menu-item-default a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--distm-label-color);
    padding: 10px 0;
    width: 100%;
}

.tm-menu-item-default .tm-menu-item-title {
    margin-top: 5px;
}
.tm-menu-item-add {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tm-menu-item-add:hover {
    opacity: 1;
}

.tm-menu-item-add .preview-item {
    padding: 10px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--distm-label-color);
}


.menu-exists-but-empty .tm-menu-item-default .tm-menu-item-title {
    color: var(--distm-label-color);
    opacity: 0.8;
}

/* Style differences for empty menu vs no menu */
.tm-menu-item-default .preview-item-add, .tm-menu-item-add .preview-item-add {
    border: 2px dashed var(--distm-icon-color);
    border-radius: 8px;
    padding: 8px 16px;
    opacity: 0.7;
}

.tm-menu-item-default .preview-item-add:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.tm-menu-item-add .preview-item-add {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin: 4px;
}

.tm-menu-item-add .preview-item-add:hover {
    background: rgba(255,255,255,0.2);
}

/*PAGE EXCLUSIONS*/
.page-exclusion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.page-exclusion-item {
    background: #f8f8f8;
    border-radius: 15px;
    padding: 10px;
    transition: all 0.2s ease;
}

.page-exclusion-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.setting-field label.page-checkbox-label {
    display: flex!important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 0!important;
}

.page-checkbox-label:hover .page-title {
    color: var(--tm-secondary-color);
}

.page-checkbox-label input[type="checkbox"] {
    margin: 0;
    min-width: 30px;
}

.page-title {
    font-size: 14px;
    transition: color 0.2s ease;
    margin-left: 10px;
}

.child-pages {
    margin-left: 25px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e2e2;
}

.child-label {
    font-size: 13px;
    opacity: 0.9;
}

.child-label:hover {
    opacity: 1;
}

.description {
    color: #666;
    font-style: italic;
}

.description .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    color: #777;
}

/*HELP PAGE*/
.help-content {width:100%;  margin: 0 auto; }
.help-content h1 { font-size: 2.4em; margin: 0.5em 0; color: #333; }
.help-content h2 { font-size: 1.8em; margin: 0; padding-bottom: 0.3em; border-bottom: 1px solid #eee; color: #444; }
.help-content h3 { font-size: 1.4em; margin: 0; color: #555; }
.help-content h4 { font-size: 1.2em; margin: 0; color: #666; }
.help-content p { font-size: 1.1em; line-height: 1.6; margin: 0.8em 0; color: #555; }
.help-content ul, .help-content ol { margin: 0.8em 0 0.8em 2em; }
.help-content li { margin: 0.4em 0; line-height: 1.6; }
.help-content code { background: #f5f5f5; padding: 0.2em 0.4em; border-radius: 3px; font-size: 0.9em; }
.help-content .button { display: inline-block; padding: 8px 16px; background: #f79431; color: white; text-decoration: none; border-radius: 4px; margin: 10px 0; }
.help-content .button:hover { background: #c26e1a; }
.help-section { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 20px 0 0; }
.help-card { background: #f8f8f8; padding: 20px; border-radius: 8px; }
.help-card h4 { margin-top: 0; }
.step-list { list-style-type: none; margin-left: 0; }
.step-list li { margin: 15px 0; padding-left: 30px; position: relative; }
.step-list li:before { content: counter(step-counter); counter-increment: step-counter; position: absolute; left: 0; top: 0; background: #f79431; color: white; width: 20px; height: 20px; border-radius: 50%; text-align: center; line-height: 20px; font-size: 12px; }
.tip-box { background: #fff7e6; border-left: 4px solid #f79431; padding: 15px; margin: 15px 0 0; }
.warning-box { background: #ffe6e6; border-left: 4px solid #dc3545; padding: 15px; margin: 15px 0 0; }

/* Loader style selector */
.loader-style-selector {
    margin-top: 10px;
}

.loader-preview-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: start;
    align-items: center;
    width: 300px;
}

.loader-preview {
    width: 80px;
    height: 80px;
    position: relative;
}

.loader-preview .custom-loader {
    width: 80px;
    height: 80px;
    background-color: var(--tm-secondary-color, #2271b1);
}

.loader-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.loader-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: calc(20% - 15px);
    box-sizing: border-box;
}

.loader-option:hover {
    background-color: rgba(0,0,0,0.03);
}

.loader-option.selected {
    border-color: var(--tm-secondary-color, #2271b1);
    background-color: rgba(34, 113, 177, 0.05);
}

.loader-option input[type="radio"] {
    display: none;
}

.loader-style-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 8px;
    position: relative;
    background-color: var(--tm-secondary-color, #2271b1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Preview animations for each loader style */
.loader-style-preview.wave:before,
.loader-style-preview.wave:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 45%;
    top: -40%;
    background-color: rgba(255, 255, 255, 0.6);
    animation: wave 5s linear infinite;
}

.loader-style-preview.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    animation: spin 1s linear infinite;
}

.loader-style-preview.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-style-preview.dots {
    background: transparent;
    border: none;
}

.loader-style-preview.dots:before,
.loader-style-preview.dots:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    animation: dots 1.5s infinite ease-in-out;
}

.loader-style-preview.dots:before {
    left: 25%;
}

.loader-style-preview.dots:after {
    right: 25%;
}

.loader-style-preview.circle {
    border: 3px solid transparent;
    border-top: 3px solid white;
    border-bottom: 3px solid white;
    animation: circle 2s ease infinite;
}

.loader-style-label {
    font-size: 12px;
    color: #444;
    text-align: center;
}

@media (max-width: 782px) {
    .loader-option {
        width: calc(33.33% - 15px);
    }
}

@media (max-width: 480px) {
    .loader-option {
        width: calc(50% - 15px);
    }
}

/* Animations for loader styles in admin */
@keyframes wave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

@keyframes dots {
    0%, 100% { transform: scale(0.2); opacity: 0.2; }
    50% { transform: scale(1); opacity: 1; }
}

@keyframes circle {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

