html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body * {
    margin-bottom: 60px;
    color: #fff !important;
}


.global-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(128, 128, 128, 0.5); /* semi-transparent gray overlay */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-size {
    width: 4rem;
    height: 4rem;
}


/*--------------Toggle slider-------------*/
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #2196F3;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }

/* Simple Chatbox UI Mockup Styles */
#chatbox-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 320px;
    max-width: 90vw;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    overflow: hidden;
}

#chatbox-header {
    background: #2196F3;
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

#chatbox-close {
    font-size: 18px;
    cursor: pointer;
}

#chatbox-messages {
    flex: 1;
    padding: 12px;
    background: #f9f9f9;
    overflow-y: auto;
    max-height: 240px;
    min-height: 120px;
}

#chatbox-input-area {
    display: flex;
    border-top: 1px solid #eee;
    padding: 8px;
    background: #fafafa;
}

#chatbox-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
    outline: none;
}

#chatbox-send {
    margin-left: 8px;
    background: #2196F3;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

    #chatbox-send:hover {
        background: #1769aa;
    }

/* Hide chatbox by default on small screens if needed */
@media (max-width: 480px) {
    #chatbox-container {
        width: 98vw;
        right: 1vw;
        bottom: 1vw;
    }
}

#chatbox-minimize {
    font-size: 18px;
    cursor: pointer;
    margin-right: 8px;
}

#chatbox-container.minimized #chatbox-messages,
#chatbox-container.minimized #chatbox-input-area {
    display: none;
}

#chatbox-container.minimized {
    height: auto;
    min-height: 0;
    max-height: none;
    width: 320px;
}
