/*
Template Name: Velzon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/

.blink_me {
    -webkit-animation-name: blinker;
    -webkit-animation-duration: 1s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;

    -moz-animation-name: blinker;
    -moz-animation-duration: 1s;
    -moz-animation-timing-function: linear;
    -moz-animation-iteration-count: infinite;

    animation-name: blinker;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}


.blink_me_extra {
    -webkit-animation-name: blinker_extra;
    -webkit-animation-duration: 4s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;

    -moz-animation-name: blinker_extra;
    -moz-animation-duration: 4s;
    -moz-animation-timing-function: linear;
    -moz-animation-iteration-count: infinite;

    animation-name: blinker_extra;
    animation-duration: 4s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@-moz-keyframes blinker_extra {
    30% { opacity: 1.0; }
    10% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

@-webkit-keyframes blinker_extra {
    30% { opacity: 1.0; }
    10% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

@keyframes blinker_extra {
    30% { opacity: 1.0; }
    10% { opacity: 0.0; }
    100% { opacity: 1.0; }
}

.toastify .toast-close {
    color: black !important;
    opacity: 1;
}

/* === Back-to-top: subtelne kółko w prawym dolnym rogu === */
#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 20px;
    left: auto;
    transform: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(18, 39, 56, 0.55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.2s ease;
    padding: 0;
    text-align: center;
    line-height: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

#back-to-top i {
    font-size: 20px;
    vertical-align: middle;
    line-height: inherit;
}

#back-to-top:hover {
    background-color: rgba(18, 39, 56, 0.85);
    animation: none;
}

/* === Mobile: zapobiegaj poziomemu overflow który psuje position:fixed toppara === */
html {
    overflow-x: hidden;
}

@media (max-width: 767.98px) {
    /* Topbar nie może wychodzić poza viewport */
    #page-topbar {
        max-width: 100vw;
        overflow: hidden;
    }

    /* Prawa strona toppara — ograniczamy szerokość, by nie wypychała hamburgera */
    .navbar-header > .d-flex.align-items-center {
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }

    /* Lewa strona z hamburgerem nie może być ściskana */
    .navbar-header > .d-flex:first-child {
        flex-shrink: 0;
    }
}
