@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    font-family: "Inter", sans-serif
}

#main-grid {
    display: grid;
    grid-template-columns: 242px 1fr !important;
    grid-template-rows: 64px 1fr 56px;
    grid-template-areas:
        "sidebar header"
        "sidebar main"
        "sidebar footer";
    min-height: 100vh;

}

main {
    position: relative;
}


#mr-srvr-navigation .bln-navigation {
    position: absolute;
}

#mr-srvr-navigation .menu-container-wrapper {
    position: sticky;
    top: 0;
}

#mr-srvr-ui-contents {
    min-height: 92vh;
}

#mr-srvr-free {
    border-bottom: 2px solid #cecece;
}

#mr-srvr-premium {
    border-top: 2px solid #cecece;
}

.charts-row .chart-container {
    margin: 1rem;
    box-shadow: 10px 10px 21px -8px rgba(0, 0, 0, 0.75);
    border-radius: 12px;
}

.headerIcon {
    color: #1d1826;
    font-size: 72px;
    display: flex;
    align-self: center;
    border-radius: 12px;
}

.headerSmallerIcon {
    color: #1d1826;
    font-size: 32px;
    display: flex;
    align-self: center;
}

.smallerHeader {
    display: flex;
    align-self: center;
}

#serverStatus #serverIcon {
    color: #1d1826;
    font-size: 72px;
    display: flex;
    align-self: center;
}

.metrics-container {
    padding: 15px;
    align-items: center;
    position: relative;
}

.metrics-header {
    padding: 8px;
    background-color: #1d1826;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.CodeMirror {
    z-index: 10;
    height: 75vh !important;
    width: 75vw;
    margin: 0 auto;
}

#stateDocumentCodeEditor .CodeMirror {
    height: 400px !important;
}

.CodeMirror-scroll {
    max-width: 75vw;
}

.loadingSetting {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    place-items: center;
    justify-content: center;
    background: #000;
    z-index: 1;
    opacity: 0.3;
    border-radius: 0 0 12px 12px;
}

.avatar-container {
    position: absolute;
    border: 1px solid #cecece;
    width: 300px;
    right: 10px;
    left: auto;
    top: 40px;
    background: #ffff;
    z-index: 999;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.36);
}

.avatar-header {
    padding: 0.5rem;
    border-bottom: 1px solid #cecece;
    display: flex;
}

.avatar-container .bln-badge {
    background: transparent !important;
    color: #000;
    margin: 0;
}

.avatar-body>div {
    padding: 10px 5px;
}

.headerSpan {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.class-for-hover:hover span {
    text-decoration: underline;
}

.avatar-body>div:hover {
    background-color: #E5E4E2;
}

#stateDocumentCodeEditor .CodeMirror {
    max-width: 100%;
}

#mr-svr-dashboard-contents {
    position: relative;
}

bln-spinner {
    z-index: 900;
}

.dropdown {
    z-index: 998;
}


#sesssionStatTable .ui-grid-cell-contents {
    white-space: break-spaces !important;
}

#sessionStatPanel>div {
    width: 500px !important;
}

#packageProperties table {
    width: 100%;
    border-collapse: collapse;
}

#packageProperties th,
#packageProperties td {
    padding: 8px 12px;
    text-align: left;
}

#packageProperties th {
    background-color: #f9f9f9;
    font-weight: bold;
}

#packageProperties tr:nth-child(even) {
    background-color: #f5f5f5;
}

#mr-srvr-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 24px;
    border-top: 1px solid #e5e7eb;
    color: rgb(107, 114, 128)
}

#mr-srvr-footer span {
    font-size: 13px;
    color: #6b7280;
}

#mr-srvr-footer a {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 1px;
}

.wrap-text {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.bln-navigation .brand .logo {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0.25rem;
}

.bln-navigation .menu-item.active {
    border-left: 4px solid #fecb32;
}

.card {
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(232, 226, 242, 0.5);
    padding: 1rem
}

.subtitle {
    color: rgb(107, 114, 128);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

#metrics .card {
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

/* License Card */
.license-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 100%;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.card-title svg {
    color: #6c63ff;
}

.btn-sync {
    background: #f5c518;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
    margin-bottom: 20px;
}

.field label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    display: block;
    margin-bottom: 4px;
}

.field p {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 4px 0 20px;
}

.product-key-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f8fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 6px;
}

.product-key-wrap code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
    letter-spacing: 0.05em;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 2px;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    color: #555;
}

/* Dashboard Loaders */
@keyframes shimmer {
    0% {
        background-position: -600px 0;
    }

    100% {
        background-position: 600px 0;
    }
}

.sk {
    border-radius: 6px;
    background: linear-gradient(90deg, #e8e6e0 25%, #d4d2cc 50%, #e8e6e0 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}

/* Table Overrides */

bln-table:not(#loggers) .bln-table .grid {
    box-sizing: content-box !important;
}

/* UI GRID OVERWITE */
bln-table:not(#loggers) .ui-grid-viewport .ui-grid-cell-contents {
    word-break: break-all;
    /* Break long words like URLs */
    overflow-wrap: anywhere;
    /* Ensure wrapping on long strings */
    white-space: normal;
}

bln-table:not(#loggers) .ui-grid-header-cell-label {
    white-space: normal;
}

bln-table:not(#loggers) .bln-table .grid .ui-grid-row,
bln-table:not(#loggers) .ui-grid-cell {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
}

bln-table:not(#loggers) .ui-grid-row div[role=row] {
    display: flex;
    align-content: stretch;
}

bln-table:not(#loggers) .bln-table .grid .ui-grid-cell-contents {
    max-height: unset !important;
    height: 100% !important;
}

#statusCards .card {
    justify-content: baseline !important;
}