
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Material Design Elevation Shadows - Light Theme */
.elevation-1 {
    box-shadow: 0 1px 3px rgba(115, 42, 137, 0.12), 0 1px 2px rgba(115, 42, 137, 0.24);
}

.elevation-2 {
    box-shadow: 0 3px 6px rgba(115, 42, 137, 0.16), 0 3px 6px rgba(115, 42, 137, 0.23);
}

.elevation-3 {
    box-shadow: 0 10px 20px rgba(115, 42, 137, 0.19), 0 6px 6px rgba(115, 42, 137, 0.23);
}

.elevation-4 {
    box-shadow: 0 14px 28px rgba(115, 42, 137, 0.25), 0 10px 10px rgba(115, 42, 137, 0.22);
}

.elevation-5 {
    box-shadow: 0 19px 38px rgba(115, 42, 137, 0.30), 0 15px 12px rgba(115, 42, 137, 0.22);
}

.fancytree-container {
    background: transparent !important;
    border: none !important;
}

.fancytree-title {
    color: #1C2340 !important;
}

.my-fancytree-hover {
    border: 1px dashed rgba(115, 42, 137, 0.4) !important;
}

.my-fancytree-active {
    border: 1px solid #205FAC !important;
    background: none !important;
}

/* Selection in the tree */
.fancytree-selected {
    background: linear-gradient(135deg, rgba(115, 42, 137, 0.15), rgba(115, 42, 137, 0.1)) !important;
    color: #1C2340 !important;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(115, 42, 137, 0.2);
    padding: 4px 8px;
    margin: 2px 0;
    transition: all 0.2s ease;
}

span.fancytree-node.fancytree-folder > span.fancytree-expander:after {
    color: #6A7796;
}

span.fancytree-node.fancytree-folder.fancytree-expanded > span.fancytree-expander:after {
    color: #6A7796;
}

/* QueryBuilder overrides */

.query-builder-field + .query-builder-field {
    border-top: 1px solid rgba(115, 42, 137, 0.25) !important;
}

.query-builder-group {
    border: 1px solid rgba(115, 42, 137, 0.25) !important;
}

.qb-drop-target {
    background: rgba(115, 42, 137, 0.1);
}

.qb-error {
    background: rgba(238, 51, 35, 0.3) !important;
}

/* Dataerai Theme */

body {
    color: #1C2340 !important;
    background: radial-gradient(ellipse at top left, rgba(115, 42, 137, 0.08), transparent 60%),
                radial-gradient(ellipse at bottom right, rgba(126, 157, 76, 0.08), transparent 60%),
                linear-gradient(135deg, #F6F7FB 0%, rgba(115, 42, 137, 0.02) 50%, #F6F7FB 100%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    scrollbar-color: rgba(115, 42, 137, 0.3) #F8F9FC;
    min-height: 100vh;
    font-family: 'Helvetica Neue', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 300;
}

* {
    font-family: 'Helvetica Neue', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content {
    background: transparent !important;
    color: #1C2340;
}

/* Material Design Cards - Light Theme */
.material-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 2px 4px rgba(115, 42, 137, 0.12), 0 2px 4px rgba(115, 42, 137, 0.16);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(115, 42, 137, 0.15);
}

.material-card:hover {
    box-shadow: 0 8px 16px rgba(115, 42, 137, 0.18), 0 6px 10px rgba(115, 42, 137, 0.15);
    transform: translateY(-2px);
    border-color: rgba(115, 42, 137, 0.3);
}

.material-card-elevated {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 6px 12px rgba(115, 42, 137, 0.15), 0 4px 8px rgba(115, 42, 137, 0.12);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(115, 42, 137, 0.2);
}

.material-card-elevated:hover {
    box-shadow: 0 12px 24px rgba(115, 42, 137, 0.20), 0 8px 12px rgba(115, 42, 137, 0.15);
    transform: translateY(-4px);
}

.input-bg {
    background: rgba(255, 255, 255, 0.95) !important;
    border: solid 1px rgba(115, 42, 137, 0.25);
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(115, 42, 137, 0.08);
    transition: all 0.3s ease;
}

.input-bg:focus-within {
    box-shadow: inset 0 1px 3px rgba(115, 42, 137, 0.08), 0 0 0 2px rgba(115, 42, 137, 0.3);
}

input {
    background: rgba(255, 255, 255, 0.95) !important;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid rgba(115, 42, 137, 0.25);
    padding: 12px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(115, 42, 137, 0.08);
}

input:focus {
    outline: none;
    border-color: rgba(115, 42, 137, 0.5);
    box-shadow: 0 0 0 3px rgba(115, 42, 137, 0.15), 0 2px 6px rgba(115, 42, 137, 0.12);
    background: rgba(255, 255, 255, 1) !important;
}

textarea {
    background: rgba(255, 255, 255, 0.95) !important;
    resize: vertical;
    border-radius: 8px;
    border: 1px solid rgba(115, 42, 137, 0.25);
    padding: 12px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(115, 42, 137, 0.08);
}

textarea:focus {
    outline: none;
    border-color: rgba(115, 42, 137, 0.5);
    box-shadow: 0 0 0 3px rgba(115, 42, 137, 0.15), 0 2px 6px rgba(115, 42, 137, 0.12);
    background: rgba(255, 255, 255, 1) !important;
}

select#matches {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 8px;
    border: 1px solid rgba(115, 42, 137, 0.25);
    padding: 12px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(115, 42, 137, 0.08);
}

/* text notice */
.notice {
    color: #205FAC;
}

.ui-state-disabled {
    opacity: .65 !important;
    color: var(--text-subtle, #6A7796);
}

ul.tagit {
    background: #fff;
    border-radius: 0;
}

.btn-icon span {
    color: var(--text-subtle, #6A7796) !important;
}

.ui-resizable-s:hover {
    background: rgba(115, 42, 137, 0.15);
}

.top-border {
    border-top: solid 1px #999;
}


.task-table th {
    background: linear-gradient(135deg, rgba(115, 42, 137, 0.15), rgba(115, 42, 137, 0.1));
    box-shadow: 0 2px 4px rgba(115, 42, 137, 0.08);
    border-radius: 8px 8px 0 0;
    padding: 16px;
    font-weight: 500;
}

.task-succeeded {
    color: #3AA68A;
}

.task-failed {
    color: #EE3323;
}

/* Catalog Styles */

.accordion .ui-accordion-content {
    padding: 0.25em 0.5em !important;
}

.cat-coll-title-div {
    border-bottom: solid 1px rgba(115, 42, 137, 0.25) !important;
    border-radius: 8px;
    padding: 12px;
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cat-coll-title-div:hover {
    background: linear-gradient(135deg, rgba(115, 42, 137, 0.12), rgba(115, 42, 137, 0.08));
    box-shadow: 0 2px 4px rgba(115, 42, 137, 0.12), 0 2px 4px rgba(115, 42, 137, 0.16);
    transform: translateX(4px);
    border-left: 3px solid rgba(115, 42, 137, 0.6);
}

.cat-coll-info-div {
    color: #4F5D7A;
}

.cat-topic-cnt {
    background: linear-gradient(135deg, #732A89, rgba(115, 42, 137, 0.85));
    color: #FFFFFF;
    border-radius: 16px;
    padding: 6px 14px;
    box-shadow: 0 2px 4px rgba(115, 42, 137, 0.3);
    font-weight: 500;
    transition: all 0.2s ease;
}

.cat-topic-cnt:hover {
    box-shadow: 0 4px 8px rgba(115, 42, 137, 0.4);
    transform: scale(1.05);
}

/* Dependency Graph Styles */

.links {
    stroke-width: 3px;
}

.links .derivation {
    stroke: #205FAC;
}

.links .component {
    stroke: #888;
}

.links .new-version {
    stroke: #EE3323;
}

.arrow-path {
    stroke: none;
}

.arrow-path.derivation {
    fill: #205FAC;
}

.arrow-path.component {
    fill: #888;
}

.arrow-path.new-version {
    fill: #EE3323;
}

.nodes {
    stroke-width: 2.5px;
}

.nodes .main {
    fill: #732A89;
}

.nodes .prov {
    fill: #6BA8E5;
}

.nodes .other {
    fill: #aaa;
}

.nodes .comp {
    stroke: #000;
}

.nodes .part {
    stroke: #888;
}

.nodes .anchored {
    stroke-dasharray: 5, 3;
    stroke-width: 3px;
}

/* Tooltip for graph interaction help */
.graph-tooltip {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.98);
    color: #1C2340;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    border: 1px solid rgba(115, 42, 137, 0.3);
}

.node .highlight {
    stroke: #732A89 !important;
    stroke-width: 2px !important;
    fill: none !important;
}

.node .hidden {
    display: none !important;
}

.node .data {
    stroke: #1C2340;
    stroke-width: 2;
}

.node text {
    font-size: 14px;
    fill: #1C2340;
}

.node text.locked {
    font-size: 14px;
    fill: #EE3323;
}

.note {
    color: #205FAC !important;
}

.inh-err-title {
    color: #EE3323 !important;
}

.inh-warn-title {
    color: #cf7f00 !important;
}

.ui-icon-notice {
    color: #205FAC;
}

.ui-icon-wrench {
    color: #EE3323;
}

.ui-icon-person {
    color: #205FAC;
}

.ui-icon-persons {
    color: #205FAC;
}

.ui-icon-folder {
    color: #dFbF40;
}

.ui-icon-copy {
    color: #008F00;
}

.ui-icon-box {
    color: #732A89;
}

/* Override box icon to use favicon */
.ui-icon-box:after {
    content: '' !important;
    background: url('/favicon.ico') no-repeat center center !important;
    background-size: contain !important;
    text-indent: 0 !important;
}

.ui-icon-view-icons {
    color: #732A89;
}

.ui-icon-view-icons-b {
    color: #732A89;
}


.ui-icon-file-text {
    color: #060;
}

.ui-icon-file {
    color: #444;
}

.ui-icon-files {
    color: #444;
}

.ui-icon-disk {
    color: #444;
}

.ui-icon-reload {
    color: #444;
}

.ui-icon-arrowthick-1-e {
    color: #444;
}

.ui-icon-arrowthick-1-4 {
    color: #444;
}

.ui-icon-flag {
    color: #FF0000;
}

.ui-icon-alert {
    color: #ef9f00;
}

.ui-icon-circle-info {
    color: #00aF00;
}

.ui-icon-circle-help {
    color: #205FAC;
}

.ui-icon-heart {
    color: #ff0000;
}

.ui-icon-circle-plus {
    color: #009090;
}

.ui-icon-plus {
    color: #006000;
}

.ui-icon-close {
    color: #FF0000;
}

.ui-icon-view-list {
    color: #a0b000;
}

.ui-icon-zoom {
    color: #000000;
}

.ui-icon-locked {
    color: #FF0000;
}

/*.ui-icon-minusthick*/
.ui-icon-grip-solid-horizontal {
    color: #df6000;
}

.ui-icon-structure {
    color: #df6000;
}

.ui-icon-sign-in {
    color: #007800;
}

.ui-icon-book {
    color: #a06000
}

.ui-icon-databases {
    color: #606060;
}

.ui-icon-database {
    color: #606060;
}

.ui-icon-linkext {
    color: #060;
}

/* Material Design Buttons - Light Theme */
button, .ui-button {
    background: linear-gradient(135deg, rgba(115, 42, 137, 0.15), rgba(115, 42, 137, 0.12));
    border: 1px solid rgba(115, 42, 137, 0.3);
    border-radius: 8px;
    padding: 12px 24px;
    color: #1C2340;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(115, 42, 137, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

button:hover, .ui-button:hover {
    background: linear-gradient(135deg, rgba(115, 42, 137, 0.25), rgba(115, 42, 137, 0.2));
    box-shadow: 0 4px 8px rgba(115, 42, 137, 0.2);
    transform: translateY(-2px);
    border-color: rgba(115, 42, 137, 0.5);
}

button:active, .ui-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(115, 42, 137, 0.15);
}

button.primary, .ui-button-primary {
    background: linear-gradient(135deg, #732A89, rgba(115, 42, 137, 0.9));
    color: #FFFFFF;
    border: none;
    box-shadow: 0 3px 6px rgba(115, 42, 137, 0.3);
}

button.primary:hover, .ui-button-primary:hover {
    background: linear-gradient(135deg, #8533a1, #732A89);
    box-shadow: 0 6px 12px rgba(115, 42, 137, 0.4);
}

.shadowed {
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(115, 42, 137, 0.15), 0 2px 4px rgba(115, 42, 137, 0.12);
    border-radius: 8px;
}

mark {
    background: #ff5fa8;
    color: #FFFFFF;
}

.fancytree-ext-filter-dimm span.fancytree-node span.fancytree-title {
    color: #6A7796 !important;
    font-weight: lighter !important;
}

.fancytree-ext-filter-dimm tr.fancytree-submatch span.fancytree-title,
.fancytree-ext-filter-dimm span.fancytree-node.fancytree-submatch span.fancytree-title {
    color: #1C2340 !important;
    font-weight: bold !important;
}

.fancytree-ext-filter-hide tr.fancytree-submatch span.fancytree-title,
.fancytree-ext-filter-hide span.fancytree-node.fancytree-submatch span.fancytree-title {
    color: #6A7796 !important;
    font-weight: lighter !important;
}

.fancytree-ext-filter-dimm tr.fancytree-match span.fancytree-title,
.fancytree-ext-filter-dimm span.fancytree-node.fancytree-match span.fancytree-title {
    color: #1C2340 !important;
    font-weight: bold !important;
}

.fancytree-ext-filter-hide tr.fancytree-match span.fancytree-title,
.fancytree-ext-filter-hide span.fancytree-node.fancytree-match span.fancytree-title {
    color: #1C2340 !important;
    font-weight: normal !important;
}

::-webkit-scrollbar-track {
    background: #F8F9FC;
}

::-webkit-scrollbar-corner {
    background: #F8F9FC;
}

::-webkit-scrollbar-thumb {
    background: rgba(115, 42, 137, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(115, 42, 137, 0.5);
}

/* Material Design UI States - Light Theme */
.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
    border: 1px solid rgba(115, 42, 137, 0.3) !important;
    background: linear-gradient(135deg, rgba(115, 42, 137, 0.08), rgba(115, 42, 137, 0.05)) !important;
    color: #1C2340 !important;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus {
    border: 1px solid rgba(115, 42, 137, 0.5) !important;
    background: linear-gradient(135deg, rgba(115, 42, 137, 0.15), rgba(115, 42, 137, 0.12)) !important;
    color: #1C2340 !important;
    box-shadow: 0 4px 8px rgba(115, 42, 137, 0.12);
    transform: translateY(-2px);
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active {
    border: 1px solid rgba(115, 42, 137, 0.6) !important;
    background: linear-gradient(135deg, #732A89, rgba(115, 42, 137, 0.9)) !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 6px rgba(115, 42, 137, 0.3);
    font-weight: 500;
}

.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
    border: 1px solid rgba(115, 42, 137, 0.3) !important;
    background: linear-gradient(135deg, rgba(115, 42, 137, 0.12), rgba(115, 42, 137, 0.08)) !important;
    color: #1C2340 !important;
}

.ui-state-error,
.ui-widget-content .ui-state-error,
.ui-widget-header .ui-state-error {
    border: 1px solid rgba(238, 51, 35, 0.4) !important;
    background: linear-gradient(135deg, rgba(238, 51, 35, 0.15), rgba(238, 51, 35, 0.1)) !important;
    color: #EE3323 !important;
}

.ui-priority-primary,
.ui-widget-content .ui-priority-primary,
.ui-widget-header .ui-priority-primary {
    font-weight: 500;
}

.ui-priority-secondary,
.ui-widget-content .ui-priority-secondary,
.ui-widget-header .ui-priority-secondary {
    opacity: 0.7;
    font-weight: 300;
}

/* Widget Overlays */
.ui-widget-overlay {
    background: rgba(246, 247, 251, 0.85);
    backdrop-filter: blur(4px);
}

/* Material Design Corner Radius Override */
.ui-corner-all,
.ui-corner-top,
.ui-corner-left,
.ui-corner-right,
.ui-corner-bottom,
.ui-corner-tl,
.ui-corner-tr,
.ui-corner-bl,
.ui-corner-br {
    border-radius: 8px !important;
}

/* Material Design Links */
a {
    color: #732A89;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

a:hover {
    color: #8533a1;
}

a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #732A89, rgba(115, 42, 137, 0.5));
    transition: width 0.3s ease;
}

a:hover:after {
    width: 100%;
}

/* Material Design Forms - Light Theme */
label {
    font-weight: 500;
    color: #1C2340;
    margin-bottom: 8px;
    display: inline-block;
}

fieldset {
    border: 1px solid rgba(115, 42, 137, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    background: rgba(255, 255, 255, 0.5);
}

legend {
    padding: 0 12px;
    font-weight: 500;
    color: #1C2340;
}


span.fancytree-node.fancytree-folder > span.fancytree-icon:after {
    color: #dFbF40;
}

span.fancytree-node.fancytree-folder.fancytree-expanded > span.fancytree-icon:after {
    color: #dFbF40;
}

.data-tree-id {
    color: #732A89;
}

.data-tree-alias {
    color: #7e9d4c;
}

.data-tree-owner-other {
    color: #B03020;
}

.data-tree-creator-other {
    color: #EF7000;
}

.data-tree-creator-self {
    color: #205FAC;
}