/* STYLE */

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #000;
}

a { color: #74A5E0; }

.ts-logo {
    width: 62px!important;
    height: 62px!important;
    display: inline-block!important;
    background-image: url(../../backofice/ts-img/tsclogo.png)!important;
    background-repeat: no-repeat!important;
}

.ts-btn {
    background-color: transparent!important;
    color: #000!important;
    padding: 10px;
    border: 2px solid #555 !important;
    border-radius: 20px;
    cursor: pointer;
}
.ts-btn i { 
    color: #000 !important; 
}
.ts-outline-btn { 
    border-radius: 50%; 
    background-color: transparent!important; 
    color: #000!important; 
    padding: 10px; 
    border: 2px solid #555 !important; 
    font-size: 16px; 
    cursor: pointer; 
}
.ts-btn:hover, .ts-outline-btn:hover { 
    background-color: #000 !important; 
    color: #fff !important; 
    border-color: #000 !important; 
}
.ts-btn:hover i { 
    color: #fff!important; 
}

.navbar {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.03); 
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px; 
    margin: 0 auto;  
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
}
.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.navbar-right {
    display: flex;
    align-items: center;
}

.rules-container {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    gap: 30px;
    align-items: flex-start;
}

.rules-sidebar {
    flex: 0 0 300px;
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 10;
}
.accordion-item {
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.accordion-header {
    background-color: rgba(0,0,0,0.03);
    color: #000;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.accordion-header i {
    transition: transform 0.3s;
}
.accordion-header.active i {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
    color: #000;
}

.submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.submenu-item {
    padding: 12px 20px;
    cursor: pointer;
    border-top: 1px solid rgba(0,0,0,0.05);
    transition: background 0.2s;
}
.submenu-item:hover {
    background-color: rgba(0,0,0,0.05);
}
.submenu-item.active {
    font-weight: bold;
    background-color: rgba(0,123,255,0.1);
    color: #007bff;
}

.rules-content {
    flex: 1;
    padding: 20px;
    background-color: #fff !important;
    color: #000;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    min-height: 1200px;
}
.rule-block {
    display: none;
}
.rule-block.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.custom-rule-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.custom-col {
    flex: 1 1 300px;
}
.custom-col img {
    max-width: 100%;
    height: auto;
    display: block;
}
.custom-rules-border-box {
    border: 1px dashed rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.02);
    color: #000;
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 15px;
}
.custom-table th, .custom-table td {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: left;
}
.custom-link {
    color: #0056b3; 
    text-decoration: none;
    margin-left: 15px;
}
.custom-link:hover {
    text-decoration: underline;
}
.custom-footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    font-size: 0.9em;
}

#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, transform 0.3s;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
}
#scrollTopBtn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .rules-container {
        flex-direction: column;
    }
    .rules-sidebar {
        flex: 1 1 auto;
        position: static;
        width: 100%;
    }
    #scrollTopBtn.visible {
        display: flex;
    }
}





/*

  <style>
          body {
            font-family: sans-serif;
            margin: 0;
            padding: 0;
        }

        .ts-logo {
            width: 62px!important;
            height: 62px!important;
            display: inline-block!important;
            background-image: url(../backofice/ts-img/tsclogo.png)!important;
            background-repeat: no-repeat!important;
        }

        .ts-btn {
            background-color: transparent!important;
            color: #000!important;
            padding: 10px;
            border: 2px solid #555 !important;
            border-radius: 20px;
            cursor: pointer;
        }
        .ts-btn i { color:  #000 !important; }
        .ts-outline-btn { border-radius: 50%; background-color: transparent!important; color: #000!important; padding: 10px; border: 2px solid #555 !important; font-size: 16px; cursor: pointer; }
        .ts-btn:hover, .ts-outline-btn:hover { background-color: #000 !important; color: #fff !important; border-color: #000 !important; }
        .ts-btn:hover i { color: #fff!important; }
      
        .navbar {
            width: 100%;
            background-color: rgba(0, 0, 0, 0.03); 
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        .navbar-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 1200px; 
            margin: 0 auto;  
            padding: 10px 15px;
            width: 100%;
            box-sizing: border-box;
        }

        .navbar-left {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .navbar-right {
            display: flex;
            align-items: center;
        }

        #theme_css.dark ~ .navbar {
            background-color: #222;
            border-bottom: 1px solid #444;
        }
        
     
        #theme_css.dark ~ .navbar {
            background-color: #222;
            border-bottom: 1px solid #444;
        }

       
        .rules-container {
            display: flex;
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 15px;
            gap: 30px;
            align-items: flex-start;
        }

        
        .rules-sidebar {
            flex: 0 0 300px;
            position: -webkit-sticky;
            position: sticky;
            top: 20px;
            z-index: 10;
        }

        .accordion-item {
            margin-bottom: 10px;
            border: 1px solid rgba(0,0,0,0.1);
            border-radius: 4px;
            overflow: hidden;
        }
        .accordion-header {
            background-color: rgba(0,0,0,0.03);
            padding: 15px;
            cursor: pointer;
            font-weight: bold;
            display: flex;
            justify-content: space-between;
            align-items: center;
            user-select: none;
        }
        .accordion-header i {
            transition: transform 0.3s;
        }
        .accordion-header.active i {
            transform: rotate(180deg);
        }
        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            background: #fff;
        }
        
      
        #theme_css.dark ~ .rules-container .accordion-content {
            background: #2b2b2b;
            color: #fff;
        }
        #theme_css.dark ~ .rules-container .accordion-header {
            background: #3a3a3a;
            color: #fff;
        }
        
        .submenu-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .submenu-item {
            padding: 12px 20px;
            cursor: pointer;
            border-top: 1px solid rgba(0,0,0,0.05);
            transition: background 0.2s;
        }
        .submenu-item:hover {
            background-color: rgba(0,0,0,0.05);
        }
        .submenu-item.active {
            font-weight: bold;
            background-color: rgba(0,123,255,0.1);
            color: #007bff;
        }

        
        .rules-content {
            flex: 1;
            padding: 20px;
            background-color: #fff !important;
            border: 1px solid rgba(0,0,0,0.1);
            border-radius: 4px;
            min-height: 1200px;
        }

        #theme_css.dark ~ .rules-content { background-color: #000 !important; }

        .rule-block {
            display: none;
        }
        .rule-block.active {
            display: block;
            animation: fadeIn 0.4s ease;
        }

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

        .custom-rule-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 20px;
        }
        .custom-col {
            flex: 1 1 300px;
        }
        .custom-col img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        .custom-rules-border-box {
            border: 1px dashed rgba(0, 0, 0, 0.2);
            padding: 15px;
            border-radius: 4px;
            text-align: center;
            background-color: rgba(0, 0, 0, 0.02);
        }
       
        #theme_css.dark ~ .rules-container .custom-rules-border-box {
            border-color: rgba(255, 255, 255, 0.2);
            background-color: rgba(255, 255, 255, 0.05);
        }
        .custom-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
            margin-bottom: 15px;
        }
        .custom-table th, .custom-table td {
            border: 1px solid rgba(0, 0, 0, 0.1);
            padding: 10px;
            text-align: left;
        }
        #theme_css.dark ~ .rules-container .custom-table th, 
        #theme_css.dark ~ .rules-container .custom-table td {
            border-color: rgba(255, 255, 255, 0.1);
        }
        .custom-link {
            color: #74A5E0; 
            text-decoration: none;
            margin-left: 15px;
        }
        .custom-link:hover {
            text-decoration: underline;
        }
        .custom-footer-grid {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 20px;
            font-size: 0.9em;
        }

        #scrollTopBtn {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 99;
            border: none;
            outline: none;
            background-color: #007bff;
            color: white;
            cursor: pointer;
            padding: 15px;
            border-radius: 50%;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            transition: opacity 0.3s, transform 0.3s;
            width: 50px;
            height: 50px;
            align-items: center;
            justify-content: center;
        }

        #scrollTopBtn:hover {
            background-color: #0056b3;
            transform: scale(1.1);
        }

        @media (max-width: 768px) {
            #scrollTopBtn.visible {
                display: flex;
            }
        }

        #theme_css.dark ~ #scrollTopBtn {
            background-color: #444;
        }
        #theme_css.dark ~ #scrollTopBtn:hover {
            background-color: #555;
        }



        @media (max-width: 768px) {
            .rules-container {
                flex-direction: column;
            }
            .rules-sidebar {
                flex: 1 1 auto;
                position: static;

                width: 100%;
            }
        }
    </style>

/*





