:root {
    --primary: #fb9100;
    --secondary: rgba(18, 72, 119, 1);
    --sidebar-width: 280px;
}

.placeholder, .placeholder-glow{
    border-radius: 3px;
}

.btn-progress {
    /* The gradient is white at 20% opacity. 
       It will lighten 'btn-primary' to a lighter blue, 
       or 'btn-danger' to a lighter red. */
    background-image: linear-gradient(
            to right,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.3) 100%
    );
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.4s ease-out;
}

/* Optional: To make the progress look darker instead of lighter */
.btn-progress-dark {
    background-image: linear-gradient(
            to right,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.15) 100%
    );
}
html, body {
    overflow-x: hidden;
}
.friday-13th-shrink {
    display: inline-block;
    transition: transform var(--shrink-speed) ease-in-out;
    /* Key addition: This makes the shrink happen smoothly */
    transform: scale(0.00001%);
}
td.friday-13th-shrink,
th.friday-13th-shrink {
    display: table-cell;
    transform-origin: center;
    transition: transform var(--shrink-speed) ease-in-out;
    transform: scale(0.00001%);
}

td.friday-13th-shrink > *,
th.friday-13th-shrink > * {
    pointer-events: none;
}

.friday-13th-shrink-active {
    pointer-events: auto; /* Keep them clickable if you want! */
}
body {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.bg-purple {
    background: var(--bs-purple);
}

.breadcrumb {
    margin-bottom: 0;
    padding: 8px 0 8px 8px;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: var(--secondary);
    color: white;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1030;
    padding: 0;
}

.sidebar .navbar-brand {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
}

#headerLogo {
    filter: grayscale(100%) brightness(300%);
    max-width: 80%;
}

.sidebar .nav-item {
    width: 100%;
}

.sidebar .nav-link {
    color: white;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    width: 100%;
}

.sidebar .nav-link i {
    filter: grayscale(100%) brightness(300%);
    transition: filter 0.3s ease;
}

.sidebar .nav-link.active {
    background-color: #f8f9fa;
    border-left: 5px solid var(--primary);
}

.sidebar .nav-item:hover .nav-link, .sidebar .nav-link.active {
    color: var(--primary);
}

.sidebar .nav-item:hover .nav-link i,
.sidebar .nav-link.active i {
    filter: none;
}

.nav-separator {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 0;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.main-content header {
    background: #f8f9fa;
    padding: 0;
    border-bottom: 1px solid #dee2e6;
}

.container.my-4 {
    flex: 1;
}

footer {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-top: 1px solid #dee2e6;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.main-nav {
    background: var(--secondary);
    box-shadow: 0 0 5px var(--secondary);
}

.main-nav .nav-link {
    color: white;
    transition: none;
}

.main-nav .dropdown-menu .nav-link {
    color: #2b3035;
}

.nav-link {
    display: flex;
}

.nav-tabs {
    margin-bottom: 1rem;
}

.nav-tabs .nav-item {
    margin: 0;
    margin-right: .1rem;
}

.nav-tabs .nav-link {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    font-size: 1.1rem;
    font-weight: bold;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-tabs .nav-link.active {
    box-shadow: 0 0 6px 1px antiquewhite;
    background-color: antiquewhite;
}

.vertical {
    border: none;
    border-left: 1px solid #000;
    height: 100%;
    margin: 0 3px;
}

.secondary-nav .nav-link {
    margin: .5em;
}

.secondary-nav .nav-item {
    margin: 0em;
}

.btn-round {
    border-radius: 1.875rem;
}

@media (max-width: 576px) {
    .modal-dialog {
        min-width: 100%;
    }
}

.modal-dialog {
    min-width: 400px;
}

tr {
    transition: box-shadow 0.2s ease;
}

tr:hover {
    box-shadow: 0 0 17px #eeeeee;
    position: relative;
    z-index: 1;
    transition: none;
}

tr td {
    transition: background-color 0.2s ease;
}

tr:hover td {
    background-color: #eeeeee;
    transition: none;
}

.shortcut.card {
    transition: box-shadow, transform 0.3s ease;
}

.shortcut.card:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 0 17px #eeeeee;
}

.card.entry {
    padding: 0;
}

.accordion, .accordion-body, .accordion-button, .accordion-button:not(.collapsed) {
    background: none;
}

.card-header[aria-expanded="false"] {
    border-bottom: none;
}

.card-header[aria-expanded="false"] h5 {
    margin-bottom: 0;
}

.card-title {
    margin-bottom: 0;
}

.gravatar .avatar {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-right: 1em;
}

.gravatar .name {
    font-weight: bold;
    display: block;
}

.gravatar .domain {
    font-size: 0.7em;
    color: #666;
}

.nav-link.active {
    color: var(--primary) !important;
}

.platform-icon {
    width: 1rem;
    display: inline-block;
    text-align: center;
}

.diff-line:hover {
    background-color: #eeeeee;
}

.diff-line {
    display: block;
    position: relative;
}

.diff-line pre {
    margin: 0;
    padding: 0;
    border: none;
}

.diff {
    border: 1px solid #eeeeee;
    border-radius: 0.25rem;
}

.circle-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.diff-button-container {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.nav-section-header {
    line-height: 2.2em;
    font-size: 0.9em;
    padding-left: 1em;
    color: white;
    font-weight: bold;
    font-family: 'Quicksand Bold', sans-serif;
    background: var(--secondary);
}

.env-production {
    border: 3px dashed #ff0000;
    stroke: #ff0000;
    stroke-width: 3px;
    stroke-dasharray: 5, 5;
    background-color: #fff5f5;
    box-shadow: 0 0 10px 2px rgba(255, 0, 0, 0.3);
    position: relative;
}

.env-production::before {
    content: "PRODUCTION - Handle with care!";
    color: #ff0000;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    position: absolute;
    top: -10px;
    left: 10px;
    background: #fff;
    padding: 0 5px;
}

.display-label {
    font-weight: bold;
}

.env-staging {
    border: 3px dotted #f0ad4e;
    stroke: #f0ad4e;
    stroke-width: 3px;
    stroke-dasharray: 5, 5;
    background-color: #fffbea;
    box-shadow: 0 0 10px 1px rgba(240, 173, 78, 0.3);
    position: relative;
}

.env-staging::before {
    content: "STAGING - Sensitive Data";
    color: #f0ad4e;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    position: absolute;
    top: -10px;
    left: 10px;
    background: #fff;
    padding: 0 5px;
}

.env-development {
    border: 3px solid #5cb85c;
    stroke: #5cb85c;
    stroke-width: 3px;
    background-color: #f5fff5;
    box-shadow: 0 0 6px 1px rgba(92, 184, 92, 0.2);
    position: relative;
}

.env-development::before {
    content: "DEVELOPMENT - OK to experiment";
    color: #5cb85c;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    position: absolute;
    top: -10px;
    left: 10px;
    background: #fff;
    padding: 0 5px;
}

.data-container {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 15px;
}

.data-container .display-label {
    font-weight: bold;
}

.data-container .display-field {
    overflow: hidden;
}

.historyEntry.fa-plus {
    color: #28a745;
    width: 1.5em;
}

.historyEntry.fa-trash {
    color: #dc3545;
    width: 1.5em;
}

.marked {
    box-shadow: 0 0 10px 2px #ffff00;
}

a.historyEntry.link:hover {
    text-decoration: underline;
}

a.entitlementLink:hover {
    text-decoration: underline;
    cursor: pointer;
}

.qrcode-subtitle {
    font-size: 1.27rem;
    font-family: "JetBrainsMono-Bold", monospace;
    color: #09568a;
    font-weight: bold;
}

@font-face {
    font-family: "JetBrainsMono-Bold";
    src: url(../fonts/JetBrainsMono-Bold.ttf);
    font-weight: 500;
    font-style: normal
}

.login-container, .logout-container {
    text-align: center;
    margin-top: 50px;
}

.login-container .logo, .logout-container .logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.login-container p, .logout-container p {
    font-size: 1.2rem;
}

.login-container .back-link {
    font-size: 1rem;
    color: var(--primary);
}

.spinner-container {
    margin-top: 40px;
}

.spinner-container .spinner-border {
    width: 5rem;
    height: 5rem;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.sparkle-button {
    position: relative;
    overflow: hidden;
}

.sparkle-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: sparkle 1s infinite; /* Added 'infinite' keyword */
}

@keyframes sparkle {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

header .nav-item.avatar-dropdown ul {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

header {
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.15);
}

header .nav-item.avatar-dropdown {
    position: relative;
    top:20px;
    margin-right: 0;
}
.nav-item.dropdown .avatar-circle{
    cursor: pointer;
}

.avatar-circle {
    background-color: var(--secondary);
    color: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition:
            transform 0.15s ease,
            box-shadow 0.15s ease;
}

.avatar-circle:active {
    transform: scale(0.95);
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.2),
    0 0 3px rgba(0, 0, 0, 0.1);
}

.nav-item .avatar-circle {
    width: 48px;
    height: 48px;
    font-size: 13px;
}
