﻿/* Override Bootstrap default colors */
:root {
    --bs-primary: #fea916;
    --bs-secondary: #6c757d;
    --bs-body-font-size: 12px;

}

.nav-link {
    --bs-nav-link-color: #6c757d !important; /* inactive: gray-600 */
    --bs-nav-link-hover-color: #343a40 !important; /* hover: gray-800 */
    --bs-nav-link-disabled-color: #adb5bd !important; /* disabled: gray-500 */
    --bs-nav-tabs-link-active-color: #000000 !important; /* active: black */
}

.btn-primary {
    color: #000;
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    font-size:12px;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: var(--bs-secondary) !important;
}


.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-disabled-color: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.bb-check {
    accent-color: var(--bs-primary) !important;
}

.page-link {
    --bs-pagination-color: var(--bs-primary) !important;
    --bs-pagination-hover-color: var(--bs-primary) !important;
    --bs-pagination-focus-color: var(--bs-primary) !important;
    --bs-pagination-active-bg: var(--bs-primary) !important;
    --bs-pagination-active-border-color: var(--bs-primary);
    --bs-pagination-bg: #fff; /* optional */
    --bs-pagination-border-color: #dee2e6; /* optional */
}

/* This is for aligning two containers vertically or horizontally depending on the screen size*/
.container {
    display: flex;
    flex-wrap: wrap;
}

.right-div,
.left-div {
    width: 50%; /* Default to side-by-side */
}

.right-div {
    order: 2; /* Place right-div below left-div */
}

.left-div {
    order: 1; /* Place left-div above right-div */
}

@media (max-width: 768px) {
    .right-div,
    .left-div {
        width: 100%; /* Stack vertically */
    }

    .right-div {
        order: 1; /* Place right-div below left-div */
    }

    .left-div {
        order: 2; /* Place left-div above right-div */
    }
    .hide-on-small-screen {
        display: none;
    }
}


.welcome-container {
    max-width: 1600px; /* Keeps the content at a readable width */
    margin: 5rem auto; /* Centers the container vertically and horizontally */
    padding: 2rem; /* Adds spacing inside the box */

    text-align: center; /* Centers all text */
    background-color: var(--bs-primary) !important; /* Light background for contrast */

    border: 2px solid var(--bs-primary); /* Uses Bootstrap's primary color */
    border-radius: 0.5rem; /* Rounds the corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Adds a soft shadow */
}

    .welcome-container h1 {
        color: #000;
        font-size: 1.8rem; /* Adjusts heading size */
        margin-bottom: 0.5rem;
    }

    .welcome-container p {
        font-size: 1.1rem;
        color: #333;
        margin-bottom: 0;
    }


    .welcome-container a {
        font-size: 1.1rem;
        color: #000;
        margin-bottom: 0;
    }


.header-container {
    display: flex;
    justify-content: space-between; /* Aligns buttons on the left and title on the right */
    align-items: center; /* Keeps everything aligned in one row */
    padding: 1rem; /* Adds spacing */
}

.button-group {
    display: flex;
    gap: 0.5rem; /* Adds spacing between buttons */
}

.page-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    margin: 0;
    text-align: right;
}

.loading-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px; /* Or match your layout */
}

.svg-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.spinner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10; /* Ensures it appears above the SvgViewer */
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-start; /* Align to top but allow growth */
    overflow-y: auto; /* Allows scrolling if content overflows screen */
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    margin: 1rem;
    width: 95%;
    height: 95%;
    max-height: 95vh; /* No more overflow outside screen */
    display: flex;
    flex-direction: column;
}

.dialog-body {
    flex: 1 1 auto;
    overflow-y: auto; /* scroll here ONLY */
    min-height: 0; /* required to enable scrolling within flex */
    margin-bottom: 1rem;
}

.dialog-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ccc;
}
