* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    height: 100%;
}

h2 {
    display: block;
    font-size: 1.5em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    margin: 0;
    unicode-bidi: isolate;
}

hr {
    border-top: 0.2px solid #595959;

}

.title-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-left: 10px;
    margin-top: 12px;
}

.btn-primary {
    padding: 0.5rem 1rem;
    background-color: #033D5F;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    width: 60%;
    min-width: 240px;
    max-width: 400px;
    margin-bottom: 15px;
    /* Make the button full width */
}

.btn-secondary {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 10px;
    color: white !important;
    cursor: pointer !important;
    width: 60%;
    min-width: 240px;
    max-width: 400px;
    margin-bottom: 15px;
    /* Make the button full width */
}

.btn-primary:hover {
    background-color: #0056b3;
}

.container {
    padding-left: 5px;
    padding-right: 5px;
    max-width: 100%;
}

h3 {
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}



/* Filter Screen CSS */
.filter-buttons {
    display: flex;
    flex-direction: column;
}

.filter-button {
    height: 40px;
    align-items: center;
    justify-content: center;
    display: flex;
    width: 40px;
    padding-right: 20px;
}

#blocker {
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
}

.filter-screen {
    width: 100%;
    margin: 0;
    /* Remove initial margin */
    display: flex;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
    /* Rounded top corners */
    overflow: hidden;
    position: sticky;
    max-height: 75%;
    bottom: -100%;
    /* Start off-screen */
    left: 0;
    /* Ensure it aligns with the left edge of the screen */
    color: black;
    visibility: hidden;
    /* Initially not visible */
    opacity: 0;
    /* Initially transparent */
    z-index: 55;
    height: 0px;
    transition: bottom 0.5s ease-in-out;
    box-sizing: border-box;
    /* Include padding and borders in the width */
}

.filter-screen.active {
    bottom: 0;
    /* Slide up to the bottom of the screen */
    visibility: visible;
    /* Make visible when active */
    opacity: 1;
    /* Make opaque when active */
    height: 550px;
}

.categories {
    width: 35%;
    background-color: #f8f9fa;
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid #e0e0e0;
}

.categories h1 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.categories ul {
    list-style: none;
    padding: 0;
}

.categories li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* .categories li:last-child { */
/* border-bottom: none; */
/* } */

.categories li.active {
    font-weight: bold;
    color: #033D5F;
}

.filter-categories {
    width: 65%;
    background-color: #ffffff;
    padding: 15px;
    overflow-y: auto;
}

.filter-options {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    margin-right: 10px;
}

.filter-options li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.filter-options li:last-child {
    border-bottom: none;
}

.filter-options img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
}

.filter-options label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.filter-options input[type="checkbox"] {
    margin-right: 10px;
}


/* Center Parent */
.center-parent {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-direction: column;
}

.link-format {
    color: #0056b3;
}

.filter-count {
    position: absolute;
    top: 13px;
    right: 13px;
    background-color: #de5050;
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 50%;
}


.row-horizontal {
    align-items: center;
    display: flex;
    flex-direction: row;
}

.flash-message {
    padding: 15px 20px;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.4s ease;
    backdrop-filter: blur(3px);
    position: absolute;
    width: 100%;
}

.flash-message.success {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d4edda;
    z-index: 1;
    z-index: 1;

}

.flash-message.error {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8d7da;
    z-index: 1;

}

.flash-message.warning {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff3cd;
    z-index: 1;

}

.flash-message.info {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d1ecf1;
    z-index: 1;

}

.flash-message strong {
    display: inline-block;
    margin-right: 5px;
    font-weight: 600;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 16px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    font-weight: bold;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.relative {
    position: relative;
}


/* select container style */
.select-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.action-box {
    background-color: #ffd6d7;
    border-radius: 10px 10px 10px 10px;
    text-align: start;
    width: 100%;
    color: white;
    padding: 5px 10px;
    display: flex;
    flex-direction: row;
    margin-left: 10px;
    margin-right: 10px;
}

.action-title {
    margin: 10px 5px;
    font-size: 15px;
    font-weight: 600;
    color: black;
    margin-right: 5px;
}

.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.action-btn {
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    color: white;
}

/* .action-btn.connect {
    background-color: #28a745;
} */

/* .action-btn.delete {
    background-color: #dc3545;
} */

.action-btn.connect {
    background-color: #d4edda;
    /* Light green */
    color: #28a745;
    /* Dark green text */
    border: 1px solid #28a745;
    /* Optional border to match */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.action-btn.connect:hover {
    background-color: #28a745;
    /* Dark green */
    color: #fff;
    /* White text on hover */
}

.action-btn.disconnect {
    background-color: #fff;
    color: #333;
}

.action-btn.delete {
    background-color: #f8d7da;
    /* Light red */
    color: #dc3545;
    /* Dark red text (optional) */
    border: 1px solid #dc3545;
    /* Optional: border to match hover color */
    transition: background-color 0.3s ease;
}

.action-btn.delete:hover {
    background-color: #dc3545;
    /* Dark red */
    color: #fff;
    /* White text on hover */
}

.action-btn:hover {
    opacity: 0.9;
}

.select-container {
    display: none;
}

@media (max-width: 600px) {
    .action-box {
        flex-direction: column;
    }

    .action-title {
        margin-right: 5px;
    }
}

.container {
    position: relative;
    margin-top: 0.83em;
    height: auto;
}


.swal2-toast h2 {
    font-family: 'Nunito', sans-serif !important;
    font-size: 1rem !important;
}


/* Blocker Css */
#blocker {
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
}



/* Spinner CSS */

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
    color: white;
    /* hidden by default */
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    /* light gray background ring */
    border-top: 5px solid #ffffff;
    /* white spinning part */
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.spinner-message {
    margin-top: 10px;
    color: white;
    font-size: 14px;
}

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    /* Add rounded corners */
}

.list-spinner-container {
    display: flex;
    justify-content: center;
}

.list-spinner-container .spinner {
    width: 25px;
    height: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* light gray background ring */
    border-top: 2px solid #033D5F;
    /* red spinning part */
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-top: 10px;
}

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

    100% {
        transform: rotate(360deg);
    }
}


.dot-indicator {
    height: 8px;
    width: 8px;
    background-color: #007bff;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
}


/* Breadcrumb (Page nav route) */
.page-nav {
    padding: 0;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.breadcrumb {
    list-style: none;
    padding: 10px 15px;
    margin: 0;
    display: flex;
    gap: 5px;
    font-size: 14px;
    color: #666;
    background-color: #e9ecef;
    border-radius: .25rem;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li a {
    text-decoration: none;
    color: #007bff;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 5px;
    color: #999;
}

.discontinue-orange {
    background-color: #ffe5b4;
    /* light orange background */
    color: #a04900;
    /* dark orange text */
    border: 1px solid #ffc074;
}

.action-btn.add-selected {
    background-color: #cce5ff;
    color: #0056b3;
    border: 1px solid #80bdff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.action-btn.add-selected:hover {
    background-color: #0056b3;
    /* solid blue */
    color: #fff;
    /* white text */
}