/**
* 2010-2026 SwissGeek | Web Developer Freelance
* 2010-2026 ADPixNet | WebMastering Agency
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop or ThirtyBees to newer
* versions in the future. If you wish to customize PrestaShop or ThirtyBees for your
* needs please refer to https://www.prestashop.com or https://www.thirtybees.com for more information.
*
*
* @Module		SGK DARK MODE
* @Description	Switch your PrestaShop to dark mode - Front Office and Back Office
* @Version		1.1.4
*
* @Autor		SwissGeek | Web Developer Freelance <https://swissgeek.dev/>
* @Copyright	ADPixNet | WebMastering Agency <https://adpixnet.com/>
*
* @Blog			Breaking News for PrestaShop - PhenixSuite - ThirtyBees <https://prestageek.ch/>
* @Addons		PrestaShop - PhenixSuite - ThirtyBees <https://addons.swissgeek.dev/> <https://addons.adpixnet.com/> <https://prestageek.ch/>
*
* @support		Support Requests <https://admin.adpixnet.com/forms/ticket?styled=1&with_logo=1>
* @license		Valid for 1 website (or project) for each purchase of license International Registered 
*				Trademark & Property of ADPixNet. More information on <https://addons.adpixnet.com/content/1-politique-de-license>
*/

/* ── Toggle button container ─────────────────────────────────────────── */
#sgkdarkmode-toggle-wrap {
    position: fixed;
    bottom: 50%;
    right: 0;
    transform: translateY(50%);
    z-index: 9999;
    pointer-events: none;
    animation: sgkFadeIn 0.4s ease-in-out forwards;
}

/* ── Toggle button ───────────────────────────────────────────────────── */
#sgkdarkmode-toggle-btn {
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50% 0 0 50%;
    border: none;
    background: #1e293b;
    color: #f8fafc;
    font-size: 22px;
    cursor: pointer;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.35);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    outline: none;
    padding: 0;
    line-height: 1;
}

#sgkdarkmode-toggle-btn:hover {
    background: #334155;
    box-shadow: -4px 0 18px rgba(0, 0, 0, 0.45);
    transform: translateX(-3px);
}

#sgkdarkmode-toggle-btn:active {
    transform: translateX(-1px);
}

#sgkdarkmode-toggle-btn[data-enabled="true"] {
    background: #f8fafc;
    color: #1e293b;
}

#sgkdarkmode-toggle-btn[data-enabled="true"]:hover {
    background: #e2e8f0;
}

/* Tooltip */
#sgkdarkmode-toggle-btn::before {
    content: attr(title);
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #f8fafc;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

#sgkdarkmode-toggle-btn:hover::before {
    opacity: 1;
}

/* ── Fade-in animation ───────────────────────────────────────────────── */
@keyframes sgkFadeIn {
    from { opacity: 0; transform: translateY(50%) translateX(50px); }
    to   { opacity: 1; transform: translateY(50%) translateX(0); }
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    #sgkdarkmode-toggle-wrap {
        bottom: 20px;
        right: 0;
        transform: none;
    }
    #sgkdarkmode-toggle-btn {
        border-radius: 50% 0 0 50%;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #sgkdarkmode-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}
