a {
    text-decoration: none;
    color: #f8f9fa;
}

.demo_btn_container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo_btn {
    margin-top: 1rem;
    text-decoration: none;
    border: 1px solid rgb(163, 163, 163);
    position: relative;
    overflow: hidden;
    font-size: 1.5rem;
    padding: 1rem 3rem;
    color: #6f6f6f;
    text-transform: uppercase;
    cursor: pointer;
}

.demo_btn:hover {
    text-decoration: none;
    box-shadow: 1px 1px 25px 10px rgb(178 145 239);
    color: #000;
}

.demo_btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      120deg,
      transparent 0%,
      rgba(178, 145, 255, 0.6) 50%,
      transparent 100%
    );
    transition: left 0.6s ease;
  }

.demo_btn:hover:before {
    left: 100%;
}



.auth-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
    border: none;
    color: #000
}

@media (min-width: 1100px) {
    .auth-btn {
        margin-right: 1rem;
    }
}

@media (max-width: 1100px) {
    .auth-btn {
        margin-bottom: 1rem;
    }
}

.login {
    background: #fff;
    color: #000;
    border: none;
}

.login:hover {
    background: #2e0146;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.register {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

.register:hover {
    background: #2e0146;
    color: #fff;
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.15);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.createBtn {
    --primary-color: #0e5015;
    --secondary-color: #86c7a5;
    --accent-color: #7a7a7a;
    --text-color: #fff;
    --shadow-color: rgba(192, 224, 194, 0.4);

    position: relative;
    padding: 0.8rem 0.8rem;
    border: none;
    border-radius: 7px;

    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    
    cursor: pointer;
    overflow: hidden;
    
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    
    box-shadow: 
        0 4px 15px var(--shadow-color),
        0 0 0 0px rgba(183, 183, 183, 0.1) inset,
        0 0 0 0px rgba(0, 0, 0, 0.1) inset;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    z-index: 1;
}

.createBtn__text {
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
    letter-spacing: 0.5px;
}

.createBtn__icon {
    margin-left: 0.8rem;
    font-size: 1.3rem;
    font-weight: bold;
    
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    position: relative;
    z-index: 3;
}

.createBtn__glow {
    position: absolute;
    width: 100%;
    height: 100%;
    
    background: radial-gradient(circle at center, rgba(90, 175, 96, 0.8), transparent 70%);
    
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.createBtn__particles {
    position: absolute;
    width: 100%;
    height: 100%;
    
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.8) 0%, transparent 3%);
    
    background-size: 200% 200%;
    opacity: 0;
    
    transition: opacity 0.8s ease, background-position 0.8s ease;
    z-index: 1;
}

.createBtn:hover {
    transform: translateY(-3px) scale(1.02);
    
    box-shadow: 
        0 8px 25px var(--shadow-color),
        0 0 0 3px rgba(255, 255, 255, 0.1) inset,
        0 0 0 3px rgba(0, 0, 0, 0.05) inset;
    
    animation: pulse 2s infinite;
}

.createBtn:hover .createBtn__text {
    transform: translateX(5px);
}

.createBtn:hover .createBtn__glow {
    opacity: 0.6;
}

.createBtn:hover .createBtn__particles {
    opacity: 0.3;
    background-position: 100% 100%;
}

.createBtn:active {
    transform: translateY(1px) scale(0.98);
    
    box-shadow: 
        0 2px 10px var(--shadow-color),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 0 1px rgba(0, 0, 0, 0.1) inset;
}

.createBtn:active .createBtn__icon {
    transform: rotate(180deg) scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 
            0 8px 25px var(--shadow-color),
            0 0 0 3px rgba(255, 255, 255, 0.1) inset,
            0 0 0 3px rgba(0, 0, 0, 0.05) inset;
    }
    50% {
        box-shadow: 
            0 8px 35px var(--shadow-color),
            0 0 0 3px rgba(255, 255, 255, 0.1) inset,
            0 0 0 3px rgba(0, 0, 0, 0.05) inset;
    }
    100% {
        box-shadow: 
            0 8px 25px var(--shadow-color),
            0 0 0 3px rgba(255, 255, 255, 0.1) inset,
            0 0 0 3px rgba(0, 0, 0, 0.05) inset;
    }
}

.createBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 7px;
}

.createBtn:focus::before {
    opacity: 1;
}

.createBtn:focus .createBtn__text,
.createBtn:focus .createBtn__icon {
    color: white;
}

.searchBtn {
    --primary-color: #4a4a4a;
    --secondary-color: #a0a0a0;
    --accent-color: #7a7a7a;
    --text-color: #fff;
    --shadow-color: rgba(200, 200, 200, 0.4);

    position: relative;
    padding: 0.8rem 0.8rem;
    border: none;
    border-radius: 7px;

    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    
    cursor: pointer;
    overflow: hidden;
    
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    
    box-shadow: 
        0 4px 15px var(--shadow-color),
        0 0 0 0px rgba(183, 183, 183, 0.1) inset,
        0 0 0 0px rgba(0, 0, 0, 0.1) inset;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    z-index: 1;
}

.searchBtn__text {
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
    letter-spacing: 0.5px;
}

.searchBtn__icon {
    margin-left: 0.8rem;
    width: 1.3rem;
    height: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.searchBtn__icon svg {
    width: 100%;
    height: 100%;
}

.searchBtn__glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(150, 150, 150, 0.8), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.searchBtn__particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.8) 0%, transparent 3%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.8s ease, background-position 0.8s ease;
    z-index: 1;
}

.searchBtn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px var(--shadow-color),
        0 0 0 3px rgba(255, 255, 255, 0.1) inset,
        0 0 0 3px rgba(0, 0, 0, 0.05) inset;
    animation: pulse 2s infinite;
}

.searchBtn:hover .searchBtn__text {
    transform: translateX(5px);
}

.searchBtn:hover .searchBtn__glow {
    opacity: 0.6;
}

.searchBtn:hover .searchBtn__particles {
    opacity: 0.3;
    background-position: 100% 100%;
}

.searchBtn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 
        0 2px 10px var(--shadow-color),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 0 1px rgba(0, 0, 0, 0.1) inset;
}

.searchBtn:active .searchBtn__icon {
    transform: rotate(180deg) scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 
            0 8px 25px var(--shadow-color),
            0 0 0 3px rgba(255, 255, 255, 0.1) inset,
            0 0 0 3px rgba(0, 0, 0, 0.05) inset;
    }
    50% {
        box-shadow: 
            0 8px 35px var(--shadow-color),
            0 0 0 3px rgba(255, 255, 255, 0.1) inset,
            0 0 0 3px rgba(0, 0, 0, 0.05) inset;
    }
    100% {
        box-shadow: 
            0 8px 25px var(--shadow-color),
            0 0 0 3px rgba(255, 255, 255, 0.1) inset,
            0 0 0 3px rgba(0, 0, 0, 0.05) inset;
    }
}

.searchBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 7px;
}

.searchBtn:focus::before {
    opacity: 1;
}

.searchBtn:focus .searchBtn__text,
.searchBtn:focus .searchBtn__icon {
    color: white;
}

.aiAssistantBtn {
    --primary-color: #1a73e8;
    --secondary-color: #34a4f5;
    --accent-color: #5ab1f7;
    --text-color: #fff;
    --shadow-color: rgba(100, 181, 246, 0.4);

    position: relative;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 
        0 4px 15px var(--shadow-color),
        0 0 0 0px rgba(255, 255, 255, 0.1) inset,
        0 0 0 0px rgba(0, 0, 0, 0.1) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.aiAssistantBtn__text {
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
    letter-spacing: 0.5px;
}

.aiAssistantBtn__loader {
    margin-left: 0.8rem;
    width: 1.3rem;
    height: 1.3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    position: relative;
    z-index: 3;
    
    opacity: 0;
    transform: rotate(0deg);
    transition: opacity 0.3s ease;
}

.aiAssistantBtn:active .aiAssistantBtn__loader {
    opacity: 1;
    animation: 
        spin 0.8s linear 5 forwards,
        fadeOut 0.3s ease 4s forwards;
}

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

@keyframes fadeOut {
    to { opacity: 0; }
}

.aiAssistantBtn:not(:active) .aiAssistantBtn__loader {
    animation: none;
}

.aiAssistantBtn__glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(74, 144, 226, 0.8), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.aiAssistantBtn__particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.8) 0%, transparent 3%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.8s ease, background-position 0.8s ease;
    z-index: 1;
}

.aiAssistantBtn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px var(--shadow-color),
        0 0 0 3px rgba(255, 255, 255, 0.1) inset,
        0 0 0 3px rgba(0, 0, 0, 0.05) inset;
    animation: aiPulse 2s infinite;
}

.aiAssistantBtn:hover .aiAssistantBtn__text {
    transform: translateX(5px);
}

.aiAssistantBtn:hover .aiAssistantBtn__glow {
    opacity: 0.6;
}

.aiAssistantBtn:hover .aiAssistantBtn__particles {
    opacity: 0.3;
    background-position: 100% 100%;
}

.aiAssistantBtn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 
        0 2px 10px var(--shadow-color),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 0 1px rgba(0, 0, 0, 0.1) inset;
}

@keyframes aiPulse {
    0%, 100% {
        box-shadow: 
            0 8px 25px var(--shadow-color),
            0 0 0 3px rgba(255, 255, 255, 0.1) inset,
            0 0 0 3px rgba(0, 0, 0, 0.05) inset;
    }
    50% {
        box-shadow: 
            0 8px 35px var(--shadow-color),
            0 0 0 3px rgba(255, 255, 255, 0.1) inset,
            0 0 0 3px rgba(0, 0, 0, 0.05) inset;
    }
}

.aiAssistantBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 7px;
}

.aiAssistantBtn:focus::before {
    opacity: 1;
}

.clearBtn {
    --primary-color: #6a0c0c;
    --secondary-color: #c78686;
    --accent-color: #7a7a7a;
    --text-color: #fff;
    --shadow-color: rgba(224, 192, 192, 0.4);

    position: relative;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 
        0 4px 15px var(--shadow-color),
        0 0 0 0px rgba(183, 183, 183, 0.1) inset,
        0 0 0 0px rgba(0, 0, 0, 0.1) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.clearBtn__text {
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
    letter-spacing: 0.5px;
}

.clearBtn__icon {
    margin-left: 0.8rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 3;
}

.clearBtn__glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(175, 90, 90, 0.8), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.clearBtn__particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.8) 0%, transparent 3%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.8s ease, background-position 0.8s ease;
    z-index: 1;
}

.clearBtn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px var(--shadow-color),
        0 0 0 3px rgba(255, 255, 255, 0.1) inset,
        0 0 0 3px rgba(0, 0, 0, 0.05) inset;
    animation: pulse-red 2s infinite;
}

.clearBtn:hover .clearBtn__text {
    transform: translateX(-5px);
}

.clearBtn:hover .clearBtn__icon {
    transform: scale(1.2);
}

.clearBtn:hover .clearBtn__glow {
    opacity: 0.6;
}

.clearBtn:hover .clearBtn__particles {
    opacity: 0.3;
    background-position: 100% 100%;
}

.clearBtn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 
        0 2px 10px var(--shadow-color),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 0 1px rgba(0, 0, 0, 0.1) inset;
}

.clearBtn:active .clearBtn__icon {
    transform: scale(0.9);
}

@keyframes pulse-red {
    0% { box-shadow: 0 8px 25px var(--shadow-color), 0 0 0 3px rgba(255,255,255,0.1) inset, 0 0 0 3px rgba(0,0,0,0.05) inset; }
    50% { box-shadow: 0 8px 35px var(--shadow-color), 0 0 0 3px rgba(255,255,255,0.1) inset, 0 0 0 3px rgba(0,0,0,0.05) inset; }
    100% { box-shadow: 0 8px 25px var(--shadow-color), 0 0 0 3px rgba(255,255,255,0.1) inset, 0 0 0 3px rgba(0,0,0,0.05) inset; }
}

.clearBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 7px;
}

.clearBtn:focus::before {
    opacity: 1;
}

.clearBtn:focus .clearBtn__text,
.clearBtn:focus .clearBtn__icon {
    color: white;
}

.backBtn {
    --primary-color: #4a4a4a;
    --secondary-color: #9e9e9e;
    --accent-color: #7a7a7a;
    --text-color: #fff;
    --shadow-color: rgba(192, 192, 192, 0.4);

    position: relative;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 
        0 4px 15px var(--shadow-color),
        0 0 0 0px rgba(183, 183, 183, 0.1) inset,
        0 0 0 0px rgba(0, 0, 0, 0.1) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.backBtn__text {
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
    letter-spacing: 0.5px;
}

.backBtn__glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(158, 158, 158, 0.8), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.backBtn__particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.8) 0%, transparent 3%),
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.8) 0%, transparent 3%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.8s ease, background-position 0.8s ease;
    z-index: 1;
}

.backBtn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px var(--shadow-color),
        0 0 0 3px rgba(255, 255, 255, 0.1) inset,
        0 0 0 3px rgba(0, 0, 0, 0.05) inset;
    animation: pulse-gray 2s infinite;
}

.backBtn:hover .backBtn__text {
    transform: translateX(-5px);
}

.backBtn:hover .backBtn__glow {
    opacity: 0.6;
}

.backBtn:hover .backBtn__particles {
    opacity: 0.3;
    background-position: 100% 100%;
}

.backBtn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 
        0 2px 10px var(--shadow-color),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 0 1px rgba(0, 0, 0, 0.1) inset;
}

@keyframes pulse-gray {
    0% { box-shadow: 0 8px 25px var(--shadow-color), 0 0 0 3px rgba(255,255,255,0.1) inset, 0 0 0 3px rgba(0,0,0,0.05) inset; }
    50% { box-shadow: 0 8px 35px var(--shadow-color), 0 0 0 3px rgba(255,255,255,0.1) inset, 0 0 0 3px rgba(0,0,0,0.05) inset; }
    100% { box-shadow: 0 8px 25px var(--shadow-color), 0 0 0 3px rgba(255,255,255,0.1) inset, 0 0 0 3px rgba(0,0,0,0.05) inset; }
}

.backBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 7px;
}

.backBtn:focus::before {
    opacity: 1;
}

.backBtn:focus .backBtn__text {
    color: white;
}

.backBtn-link {
    display: inline-block;
    text-decoration: none;
    outline: none;
}

:root {
  --gray-toggle-sz: 1.2vmin;
  --gray-toggle-on: #666666;
  --gray-toggle-of: #fff0;
  --gray-toggle-gr: #888888;
  --gray-toggle-tr: all 0.5s ease 0s;
  --gray-toggle-lg: var(--gray-toggle-of);
  --gray-toggle-active-color: #333;
  --gray-toggle-inactive-color: #999;
}	

.gray-toggle-container * {
  box-sizing: border-box;
  transition: var(--gray-toggle-tr);
}

body .gray-toggle-container {
  margin: 0;
  padding: 0;
  width: 9vw;
  height: 4vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: left;
  background: #ffffff;
  font-family: Arial, sans-serif;
}

body .gray-toggle-container:before, body .gray-toggle-container:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    repeating-conic-gradient(#0001 0.000095%, #fff0 .0005%, #fff0 .005%, #fff0 .0005%), 
    repeating-conic-gradient(#0001 0.00001%, #fff0 .00009%, #fff0 .00075%, #fff0 .000025%);
  opacity: 0.15;
  filter: blur(0.5px);
}

.gray-toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.gray-toggle-label {
  font-size: 16px;
  font-weight: 500;
  min-width: 30px;
  text-align: center;
  transition: color 0.3s ease;
}

.gray-toggle-left {
  color: var(--gray-toggle-active-color);
}

.gray-toggle-right {
  color: var(--gray-toggle-inactive-color);
}

.gray-toggle-switch  {
  position: relative;
  width: calc(var(--gray-toggle-sz) * 4);
  height: calc(var(--gray-toggle-sz) * 2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gray-toggle-switch input {
  display: none;
}

.gray-toggle-switch label {
  position: absolute;
  width: calc(var(--gray-toggle-sz) * 4);
  height: calc(var(--gray-toggle-sz) * 2);
  background: linear-gradient(0deg, #e0e0e0, #f5f5f5);
  border-radius: var(--gray-toggle-sz);
  box-shadow: 0 0 calc(var(--gray-toggle-sz) / 50) calc(var(--gray-toggle-sz) / 50) #0002, 0 -2px calc(var(--gray-toggle-sz) / 10) calc(var(--gray-toggle-sz) / 500) #f0f0f0, 0 0px calc(var(--gray-toggle-sz) / 10) calc(var(--gray-toggle-sz) / 50) #cccccc88, 0 -2px calc(var(--gray-toggle-sz) / 5) calc(var(--gray-toggle-sz) / 50) #e8e8e8cc;
}	

.gray-toggle-thumb {
  position: absolute;
  width: calc(calc(var(--gray-toggle-sz) * 2) - calc(var(--gray-toggle-sz) / 8));
  height: calc(calc(var(--gray-toggle-sz) * 2) - calc(var(--gray-toggle-sz) / 8));
  top: calc(calc( var(--gray-toggle-sz) / 10) + calc(var(--gray-toggle-sz) / -20));
  left: calc(calc( var(--gray-toggle-sz) / 10) + calc(var(--gray-toggle-sz) / -30));
  background: 
    radial-gradient(circle at 48% 50%, #fff0 calc(var(--gray-toggle-sz) / 1.05), var(--gray-toggle-lg) calc(var(--gray-toggle-sz) / 0.99) ), 
    radial-gradient(circle at 40% 50%, #fff0 calc(var(--gray-toggle-sz) / 0.95), var(--gray-toggle-lg) calc(var(--gray-toggle-sz) / 0.75)), 
    linear-gradient(180deg, #d4d4d4, #c9c9c9);
  border-radius: var(--gray-toggle-sz);
  box-shadow: 
    calc(var(--gray-toggle-sz) / -50) calc(var(--gray-toggle-sz) / 50) calc(var(--gray-toggle-sz) / 30) 0 #fff2 inset, 
    calc(var(--gray-toggle-sz) / 50) calc(var(--gray-toggle-sz) / -50) calc(var(--gray-toggle-sz) / 30) 0 #fff2 inset,
    0 0 calc(var(--gray-toggle-sz) / 10) calc(var(--gray-toggle-sz) / 50) #0003, 
   0 calc(var(--gray-toggle-sz) / 3) calc(var(--gray-toggle-sz) / 3) 0 #0002;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

#tam-toggle-btn:checked + label .gray-toggle-thumb,
#sam-toggle-btn:checked + label .gray-toggle-thumb,
#som-toggle-btn:checked + label .gray-toggle-thumb {
  --gray-toggle-lg: var(--gray-toggle-on);
  transition: var(--gray-toggle-tr);
  left: calc(calc(100% - calc(calc(var(--gray-toggle-sz) * 2) - calc(var(--gray-toggle-sz) / 3))) - calc(calc( var(--gray-toggle-sz) / 10) + calc(var(--gray-toggle-sz) / 5.75)));
}

#tam-toggle-btn:checked ~ .gray-toggle-right,
#sam-toggle-btn:checked ~ .gray-toggle-right,
#som-toggle-btn:checked ~ .gray-toggle-right {
  color: var(--gray-toggle-active-color);
}

#tam-toggle-btn:checked ~ .gray-toggle-left,
#sam-toggle-btn:checked ~ .gray-toggle-left,
#som-toggle-btn:checked ~ .gray-toggle-left {
  color: var(--gray-toggle-inactive-color);
}

.gray-toggle-container:has(#tam-toggle-btn:checked) .gray-toggle-left,
.gray-toggle-container:has(#sam-toggle-btn:checked) .gray-toggle-left,
.gray-toggle-container:has(#som-toggle-btn:checked) .gray-toggle-left {
  color: var(--gray-toggle-inactive-color);
}

.gray-toggle-container:has(#tam-toggle-btn:checked) .gray-toggle-right,
.gray-toggle-container:has(#sam-toggle-btn:checked) .gray-toggle-right,
.gray-toggle-container:has(#som-toggle-btn:checked) .gray-toggle-right {
  color: var(--gray-toggle-active-color);
}

.gray-toggle-thumb:before {
  content: "";
  position: absolute;
  width: calc(var(--gray-toggle-sz) / 0.5);
  height: calc(var(--gray-toggle-sz) / 0.5);
  background: radial-gradient(circle at 45% 50%, #fff0 calc(var(--gray-toggle-sz) / 1), var(--gray-toggle-lg) calc(var(--gray-toggle-sz) / 0.95));
  filter: blur(1px);
}

.gray-toggle-light {
  position: absolute;
  width: calc(var(--gray-toggle-sz) * 1);
  height: calc(var(--gray-toggle-sz) / 1.75);
  right: calc(var(--gray-toggle-sz) * -2.75);
  display: flex;
  justify-content: center;
  z-index: 1;
  background: #f0f0f0;
  position: relative;
  width: calc(var(--gray-toggle-sz) / 1.75);
  height: calc(var(--gray-toggle-sz) / 1.75);
  border-radius: var(--gray-toggle-sz);
  box-shadow: 
    0 0px calc(var(--gray-toggle-sz) / 50) calc(var(--gray-toggle-sz) / 50) #0004, 
    0 -2px calc(var(--gray-toggle-sz) / 10) calc(var(--gray-toggle-sz) / 500) #e0e0e0, 
    0 1px calc(var(--gray-toggle-sz) / 10) calc(var(--gray-toggle-sz) / 500) #fff8, 
    0 0px calc(var(--gray-toggle-sz) / 20) calc(var(--gray-toggle-sz) / 25) #0002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--gray-toggle-tr);
}

.gray-toggle-light:before {
  content: "";
  transition: var(--gray-toggle-tr);
  width: calc(100% - calc(var(--gray-toggle-sz) / 15));
  height: calc(100% - calc(var(--gray-toggle-sz) / 15));
  position: absolute;
  background: radial-gradient(circle at 50% 32%, #fff5 0 calc(var(--gray-toggle-sz) / 20), #aaa calc(var(--gray-toggle-sz) / 3) calc(var(--gray-toggle-sz) / 3));
  border-radius: var(--gray-toggle-sz);
  box-shadow: 
    0 0 calc(var(--gray-toggle-sz) / 3) 0 #66666620, 
    0 0 calc(var(--gray-toggle-sz) / 3) calc(var(--gray-toggle-sz) / 20) #66666620 inset;
}

#tam-toggle-btn:checked + label + .gray-toggle-light:before,
#sam-toggle-btn:checked + label + .gray-toggle-light:before,
#som-toggle-btn:checked + label + .gray-toggle-light:before {
  --gray-toggle-lg: var(--gray-toggle-on);
  transition: var(--gray-toggle-tr);
  box-shadow: 
    0 0 calc(var(--gray-toggle-sz) / 2.5) 0 var(--gray-toggle-lg), 
    0 0 calc(var(--gray-toggle-sz) / 3) calc(var(--gray-toggle-sz) / 20) var(--gray-toggle-lg) inset, 
    0 calc(var(--gray-toggle-sz) / -20) calc(var(--gray-toggle-sz) / 10) calc(var(--gray-toggle-sz) / 10) #cccccc inset;
  background: radial-gradient(circle at 50% 32%, #fff 0 calc(var(--gray-toggle-sz) / 20), var(--gray-toggle-lg) calc(var(--gray-toggle-sz) / 3) calc(var(--gray-toggle-sz) / 3));
}

.tabs-container {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.tab {
    padding: 12px 24px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    bottom: -1px;
    margin: 0;
}

.tab:hover {
    background: #e9ecef;
    color: #495057;
}

.tab.active {
    background: #fff;
    border-bottom: 2px solid #fff;
    color: #0d6efd;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 600;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0d6efd;
}

.tab-content {
    display: none;
    padding: 24px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease;
}

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

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

@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tab {
        border-radius: 6px;
        margin-bottom: 0.25rem;
        text-align: center;
    }
    
    .tab.active {
        border-radius: 6px 6px 0 0;
    }
    
    .tab-content {
        border-radius: 0 0 6px 6px;
    }
}

.tabs-primary .tab.active {
    color: #0d6efd;
}

.tabs-primary .tab.active::after {
    background: #0d6efd;
}

.tabs-success .tab.active {
    color: #198754;
}

.tabs-success .tab.active::after {
    background: #198754;
}

.tabs-warning .tab.active {
    color: #ffc107;
}

.tabs-warning .tab.active::after {
    background: #ffc107;
}

.tabs-danger .tab.active {
    color: #dc3545;
}

.tabs-danger .tab.active::after {
    background: #dc3545;
}