﻿/* Override Bootstrap default colors */
:root {
    --bs-primary: #fea916;
    --bs-secondary: #6c757d;
}

.btn-primary {
    color: #000;
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}


.btn-secondary {
    background-color: #6c757d;
    border-color: var(--bs-secondary) !important;
}




.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 */
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: space-between;
    height: 100px;
    display: flex;
    align-items: center;
}

    .top-row ::deep a, .top-row ::deep .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
            text-decoration: underline;
        }

        .top-row ::deep a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

@media (max-width: 640.98px) {
    .top-row {
        justify-content: space-between;
    }

        .top-row ::deep a, .top-row ::deep .btn-link {
            margin-left: 0;
        }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth ::deep a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }

    .top-row, article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

.red-text {
    color: red;
}

.logo {
    max-height: 80px;
    height: auto;
    width: auto;
    max-width: 100%; /* Important for responsiveness */
    display: block;
}

@media (max-width: 600px) {
    .logo {
        max-height: 50px;
        max-width: 100px;
    }
}