/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1050; /* Updated z-index for modal interaction */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* These z-index values are critical for modal interaction */
.modal-backdrop {
    z-index: 1040;
}

.modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
    position: relative;
    z-index: 1050; /* Ensure dialog is above backdrop */
}

.modal-content {
    background-color: rgb(190, 235, 255);
    color: rgb(25, 55, 125);
    border-radius: 0.3rem;
    position: relative;
    z-index: 1055; /* Ensure content is above dialog */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5); /* Added shadow for better visibility */
}

/* Important fix: Make sure buttons in modal are clickable */
.modal-content button {
    position: relative;
    z-index: 1060; /* Ensure buttons are above modal content */
    cursor: pointer !important; /* Added fix for modal buttons */
}

.modal-header {
    border-bottom: 1px solid rgb(25, 55, 125);
    padding: 1rem;
}

.modal-body {
    padding: 1rem;
}

.btn-close {
    opacity: 1;
    z-index: 1065;
}

.btn-close:focus {
    box-shadow: none; /* Fix for Bootstrap 5 close button */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Font declarations - corrected paths */
@font-face {
    font-family: 'PowerGrotesk';
    src: url('/versions/PowerGrotesk-Medium.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/versions/Inter-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* OpenFin Versions Page Styles */
.trademark {
    font-size: 30px;
}
.nav-item .nav-link {
    background-color: rgb(0, 145, 235) !important;
    color: rgb(255, 255, 255) !important;
    border: 2px solid rgb(25, 55, 125) !important;
}
.nav-item .nav-link.active {
    color: rgb(25, 55, 125) !important;
    background-color: rgb(190, 235, 255) !important;
}

/* Match the original styling for links */
#bootstrap-overrides a {
    color: rgb(25, 55, 125);
    font-family: 'Inter', sans-serif !important;;
}

.rounded-table {
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid #ddd;
}

.rounded-table th,
.rounded-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.rounded-table th {
    background-color: #f2f2f2;
    text-align: left;
}

/* Text styling with improved font application */
h1.site-name {
    font-family: 'PowerGrotesk', sans-serif !important;;
    font-weight: normal;
}

h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif !important;;
}

p, td, th, li, a {
    font-family: 'Inter', sans-serif !important;;
}

/* Footer styling */
.footer a {
    color: white;
}

/* Code blocks styling */
code {
    color: rgb(25, 55, 125) !important;
    background-color: rgb(230,230,230) !important;
}

pre {
    background-color: rgb(230,230,230) !important;
}

/* Table styling */
th {
    color: rgb(25, 55, 125);
    background-color: rgb(190, 235, 255) !important;
    font-family: 'Inter', sans-serif !important;;
}

td {
    color: rgb(25, 55, 125);
    font-family: 'Inter', sans-serif !important;;
    background-color: white !important;
}

td.version-column {
    color: rgb(25, 55, 125);
    text-align: left;
}

tr.table-data {
    color: rgb(190, 235, 255);
    background-color: rgb(243, 241, 235);
}

/* Body styling */
.body {
    background-color: rgb(25, 55, 125);
    color: rgb(190, 235, 255);
}

/* Header styling with proper spacing and margins */
.header {
    text-align: left;
    margin-bottom: 20px;
    padding-left: 40px; /* Added buffer on the left */
}

.header img {
    max-width: 120px;
    margin-left: 20px;
    margin-top: 10px;
}

/* Tab styling */
.active-tab {
    background-color: rgb(25, 55, 125);
    color: rgb(190, 235, 255);
}

.table-header {
    background-color: rgb(190, 235, 255);
    color: rgb(25, 55, 125);
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.table-data td {
    text-align: center;
}

.versions-table {
    width: 100%;
}

/* Label styling */
.label {
    display: inline-block;
    padding: 3px 6px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    border-radius: 3px;
}

.label-success {
    background-color: #5cb85c;
}

.version-column {
    text-align: left;
}

.popover-title {
    background-color: rgb(190, 235, 255);
    color: #FFFFFF;
    font-size: 28px;
    text-align: center;
}

/* Button styling */
.btn-primary {
    background-color: rgb(0, 145, 235);
    border-color: rgb(25, 55, 125);
}

.btn-primary:hover {
    background-color: rgb(25, 55, 125);
    border-color: rgb(0, 145, 235);
}

/* Notes row styling */
.notes-row td {
    background-color: #f9f9f9 !important;
}

/* Container spacing with buffer on the sides */
.container {
    padding-left: 0px;
    padding-right: 0px;
}

/* Specifically for the table container to ensure it has space */
.table-responsive.container {
    padding-left: 0px;
    padding-right: 0px;
}

/* Add left margin to the container */
#footer {
    padding-left: 40px;
    padding-right: 40px;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Base font application */
/*body {
//    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
*/