
.system-messages{
    position: absolute;
    left: 25%;
    top: 3.5rem;
    width: 50%;
    height: auto;
    max-height: 10rem;
    border-radius: 10px;
    padding: 10px 10px 20px 10px;
    font-weight: 600;
    text-align: center;
    z-index: 1000000!important;
}

.ide-inline-pane{
    width:100%;
    height:90vh;
    position:sticky;
    top:75px;
    border: none
}

body {
    overflow-x: hidden;
}

.item-metadata-container{
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    padding: 10px 10px 10px 10px;
    margin-right: 3rem;
}

.dynamic-margin-top{
    margin-top: 100px;
}

/* ═══════════════════════════════════════════
   TOP NAV BAR
   ═══════════════════════════════════════════ */
#top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.25rem;
    background: #FAFAFA;
    border-bottom: 1px solid #eef1f5;
    z-index: 10000;
    display: flex;
    align-items: center;
    padding: 0 1rem 0 0.75rem;
    gap: 1rem;
}

/* Brand */
.topnav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #08152c;
    flex-shrink: 0;
    min-width: 3rem;
}

.topnav-brand:hover {
    text-decoration: none;
    color: #0f1f2e;
}

.topnav-brand-logo {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

.topnav-brand-text {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: #08152c;
}

/* Search */
.topnav-search {
    flex: 1;
    max-width: 540px;
    margin: 0 auto;
    position: relative;
}

.topnav-search-form {
    display: flex;
    align-items: center;
    background: #f0f3f6;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0 0.5rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.topnav-search-form:focus-within {
    background: #fff;
    border-color: #339fbd;
    box-shadow: 0 0 0 3px rgba(51, 159, 189, 0.08);
}

.topnav-search-icon {
    color: #8a9baa;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.topnav-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.45rem 0;
    font-family: "Ubuntu", sans-serif;
    font-size: 0.88rem;
    color: #0f1f2e;
    outline: none;
}

.topnav-search-input::placeholder {
    color: #a0aeba;
}

.topnav-search-btn {
    border: none;
    background: none;
    padding: 0.3rem 0.75rem;
    font-family: "Ubuntu", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #339fbd;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.topnav-search-btn:hover {
    background: rgba(51, 159, 189, 0.08);
}

/* Actions area (right side) */
.topnav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    position: relative;
}

.topnav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #5a6e7a;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.topnav-icon-btn:hover {
    background: #f0f3f6;
    color: #0f1f2e;
}

.topnav-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    color: #0f1f2e;
    font-family: "Ubuntu", sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    padding: 0;
    line-height: 1;
}

.topnav-avatar:hover {
    box-shadow: 0 0 0 3px rgba(161, 196, 253, 0.4);
}

.topnav-account-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    background: linear-gradient(135deg, #339fbd, #2bb5a0);
    color: #fff;
    font-family: "Ubuntu", sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.topnav-account-btn:hover {
    opacity: 0.9;
}

/* Dropdown menus */
.topnav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 10001;
}

.topnav-dropdown.show {
    display: block;
}

.topnav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-family: "Ubuntu", sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #3a4a56;
    text-decoration: none;
    transition: background 0.15s ease;
}

.topnav-dropdown-item:hover {
    background: #f4f8fc;
    text-decoration: none;
    color: #0f1f2e;
}

.topnav-dropdown-item.active {
    color: #339fbd;
    font-weight: 600;
}

.topnav-dropdown-item i {
    width: 1.1rem;
    text-align: center;
    color: #8a9baa;
    font-size: 0.85rem;
}

.topnav-dropdown-item:hover i {
    color: #339fbd;
}

.topnav-dropdown-flag {
    width: 1.50rem;
    height: 1.25rem;
    border-radius: 3px;
    object-fit: cover;
}

.topnav-dropdown-divider {
    height: 1px;
    background: #eef1f5;
    margin: 0.35rem 0.5rem;
}

.topnav-dropdown-danger {
    color: #d9534f;
}

.topnav-dropdown-danger:hover {
    background: rgba(217, 83, 79, 0.06);
    color: #c9302c;
}

.topnav-dropdown-danger i {
    color: #d9534f;
}

.topnav-dropdown-highlight {
    color: #339fbd;
}

.topnav-dropdown-highlight:hover {
    color: #1a7a94;
}

/* Search submenu (live results) */
.search-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    padding: 0.5rem;
    max-height: 420px;
    overflow-y: auto;
}

.search-submenu.show {
    display: block;
}

/* Search result items */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover {
    background: #f4f8fc;
    transform: translateX(2px);
    text-decoration: none;
    color: inherit;
}

.search-result-item + .search-result-item {
    margin-top: 2px;
}

.search-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-family: "Ubuntu", sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: #0f1f2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-type {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.search-result-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aeba;
    font-size: 0.75rem;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover .search-result-arrow {
    opacity: 1;
    transform: translateX(0);
}

.search-result-item:hover .search-result-name {
    color: #339fbd;
}

/* Empty state */
.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    gap: 0.5rem;
    color: #a0aeba;
}

.search-empty i {
    font-size: 1.4rem;
}

.search-empty p {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
    color: #6b8299;
}

/* ═══════════════════════════════════════════
   SIDEBAR NAVIGATION
   ═══════════════════════════════════════════ */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 3.25rem;
    background: #FAFAFA;
    overflow: hidden;
    overflow-y: auto;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s ease;
    z-index: 9999;
    border-right: 1px solid #eef1f5;
}

#sidebar::-webkit-scrollbar {
    width: 0;
}

#sidebar.expanded {
    width: 240px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
}

.sidebar-inner {
    padding: 4rem 0 1.5rem;
}

/* Section */
.sidebar-section {
    padding: 0.25rem 0.5rem 0.4rem;
}

.sidebar-section + .sidebar-section {
    margin-top: 0.15rem;
    padding-top: 0.4rem;
    border-top: 1px solid #eef1f5;
}

/* Collapsed icon (visible when collapsed) */
.sidebar-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    color: #5a6e7a;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: default;
}

.sidebar-section-icon:hover {
    background: #f0f3f6;
    color: #339fbd;
}

#sidebar.expanded .sidebar-section-icon {
    display: none;
}

/* Section label (visible when expanded) */
.sidebar-section-label {
    display: none;
    font-family: "Ubuntu", sans-serif;
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a9baa;
    padding: 0.4rem 0.75rem 0.25rem;
}

#sidebar.expanded .sidebar-section-label {
    display: block;
}

/* Links */
.sidebar-link {
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-family: "Ubuntu", sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #3a4a56;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

#sidebar.expanded .sidebar-link {
    display: flex;
}

.sidebar-link:hover {
    background: #f0f3f6;
    color: #0f1f2e;
    text-decoration: none;
}

.sidebar-link i {
    width: 1.1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #8a9baa;
    flex-shrink: 0;
}

.sidebar-link:hover i {
    color: #339fbd;
}

.sidebar-link-text {
    opacity: 0;
    transition: opacity 0.15s ease;
}

#sidebar.expanded .sidebar-link-text {
    opacity: 1;
}

/* ═══════════════════════════════════════════
   MISC
   ═══════════════════════════════════════════ */
.user-icon1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid black;
    border-radius: 50%;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    color: black;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
}

.language-submenu {
    /* legacy positioning override — now handled by .topnav-dropdown */
}

.user-submenu {
    /* legacy positioning override — now handled by .topnav-dropdown */
}

.blur-screen{
    filter: blur(7px);
}

/* ═══════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════ */
#cookie-banner .modal-content {
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

#cookie-banner .modal-header {
    border-bottom: 1px solid #e8eef3;
    padding: 1rem 1.5rem;
}

#cookie-banner .modal-title {
    font-family: "Ubuntu", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #0f1f2e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#cookie-banner .modal-title i {
    color: #339fbd;
}

#cookie-banner .modal-body {
    padding: 1.25rem 1.5rem;
}

#cookie-banner .cookie-text {
    font-family: "Ubuntu", sans-serif;
    font-weight: 400;
    color: #3a4a56;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

#cookie-banner .cookie-text a {
    color: #339fbd;
    text-decoration: none;
}

#cookie-banner .cookie-text a:hover {
    text-decoration: underline;
}

#cookie-banner .cookie-question {
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    color: #43575c;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

#cookie-banner .cookie-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

#cookie-banner .cookie-btn-decline {
    font-family: "Ubuntu", sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    background: #f0f3f6;
    color: #3a4a56;
    border: 1px solid #eef1f5;
    transition: background 0.2s ease;
}

#cookie-banner .cookie-btn-decline:hover {
    background: #e4e9ef;
    color: #0f1f2e;
}

#cookie-banner .cookie-btn-accept {
    font-family: "Ubuntu", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #339fbd, #2bb5a0);
    color: #fff;
    border: none;
    transition: opacity 0.2s ease;
}

#cookie-banner .cookie-btn-accept:hover {
    opacity: 0.88;
    color: #fff;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}
