body {
    font-family: 'Noto Sans', sans-serif;
    margin: 0px auto;
    text-align: left;
    font-size: 14px;
    /* background-color: rgb(245, 245, 245); */ 
    background-image: url("/static/img/dpp-bg.png");
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

#dcc-body{
    background-image: url("/static/img/dcc-bg.png");
    background-size: 400px;
}
#dia-body{
    background-image: url("/static/img/dia-bg.png");
    background-size: 400px;
}
#dte-body{
    background-image: url("/static/img/dte-bg.png");
    background-size: 400px;
}


.container {
    padding: 0px;
    max-width: 600px;
    background-color: white;
}
input, button {
    padding: 10px;
    margin: 5px 5px;
    width: 80%;
    border-radius: 5px;
}
pre {
    text-align: left;
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
}
.error {
    color: red;
}
sub {
    vertical-align: sub;
    font-size: 0.8em;
}

a { 
    color: #3a3a6a;
}
a:hover {
    background-color: #f0f0f0;
}

.table tr:last-child {
    border-bottom: 2px solid #b9cbb9;
}

#dcc-table{
    margin: 5px;
    width: 98%;
}

.base-table{
    font-size: 1em;
    padding: 0 18px 8px 18px;
    border-style: hidden;
    border-width: 1px 3px 3px 3px;
    border-color: #ccc;
    margin-bottom: 5px;
    border-radius: 0px 0px 5px 5px;
}

.did-string{
    font-weight: bold;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

.p-description{
    text-align: left;
    padding: 0 5px 15px 5px;
    border-radius: 5px;
    font-size: 1.22em;
    font-weight: bold;
}
.p-furtherinfo{
    font-size: 0.8em;
    line-height: 1.8em;
    color:#888;
    margin-top: 12px;
    padding-left: 7px;
    font-family: 'Noto Sans', sans-serif;
}

.p-furtherinfo a{
    color: #888;
    text-decoration: none;
}

.product-background-image {
    position: relative;
    width: 100%;  
    height: 260px; 
    background-size: cover;
    background-position: center;
    margin-bottom: 0px;
    border-style: none;
    /* border-color:#ccc;
    border-width: 3px 3px 0px 3px; */
}

.product-background-image .overlay-text-top {
    position: absolute;
    top: 8%;
    left: 3%;
    text-align: left;
    color: white;  /* Text color */
    text-shadow: 2px 2px 3px black;  /* Text shadow for better readability */
}
.product-background-image .overlay-text-bottom {
    position: absolute;
    width: 100%; 
    text-align: left;
    color: white;  /* Text color */
    text-shadow: 2px 2px 3px black;  /* Text shadow for better readability */
    bottom: 0; /* At the bottom. Use top:0 to append it to the top */
    background: rgb(0, 0, 0); /* Fallback color */
    background: rgba(0, 0, 0, 0.3); /* Black background with 0.5 opacity */
    padding: 10px; /* Some padding */
    display: flex;
    justify-content: space-between; /* Pushes text to left and button to right */
    align-items: flex-end;
    box-sizing: border-box;
}
.jsonbtn-group {
    display: flex;
    justify-content: flex-end; /* Pushes children to the far right */
    gap: 4px;                  /* Space between the buttons */
    width: 100%;               /* Ensure it spans the full width of the parent */
    padding: 5px 5px 0 0;           
}
.tinyBtn{
  width: auto; 
  height: auto;
  padding: 4px 8px; 
  white-space: nowrap; 
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  background: #ffffff;
  padding: 2px 5px;
  margin: 3px 0 3px 6px;
  font-size: 8px;
  font-weight: 500;
  background-color: #46c984;
  color: #fff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.empty-image {
    background-color: #f0f0f0df;  /* Light gray background for empty image */
    background-image: url('/static/img/placeholder.png') !important;
}

.overlay-project-logo{
    position: absolute;
    top: 4%;
    right: 2%;
    width: 25%;
}

.icon-image {
    width: 64px;
    height: 64px;
    vertical-align: center;
    margin: 10px;
}

#trustmark-cell{
    text-align: center;
    vertical-align: middle;
}

.trustmark-icon{
    max-width: 100px;
    max-height: 80px;
    margin: 2px;
}

.badge {
    border-radius: 0;
    font-size: 14px;
    line-height: 1;
    padding: .5rem 1.2rem;
    font-weight: bold
}
.badge.badge-pill {
    border-radius: 10rem
}

.circularity-scorecard-big-number {
    font-size: 2.4em;
    font-weight: bold;
}
.circularity-scorecard-description {
    font-size: 1.25em;
    color: #666;
}
.intro-table{
    width: 100%;
    border-collapse: collapse;
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
}
.intro-table tr:last-child {
    border-bottom: 2px solid #b9cbb9;
}
.scorecard-table{
    width: 80%;
    border-collapse: collapse;
    padding: 5px;
    background-color: #b9cbb9;
    margin-top:15px;
    margin-bottom:15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.scorecard-table tr {
    height: 150px;
}
.scorecard-table td {
    width: 50%;
    border: 3px solid #fff;
    text-align: center;
    padding: 10px;
    transition: background-color 0.3s;
}
.scorecard-table td:hover {
    background-color: #8FBC8F; /* Change to desired hover color */
}

.accordion {
    background-color: #ddd;
    color: #444;
    padding: 15px;
    width: 98%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1em;
    transition: 0.4s;
  }
.active, .accordion:hover {
    background-color: #ccc;
  }
.accordion:after {
    content: '\002B';
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
  }
.active:after {
    content: "\2212";
  }

.panel {
    padding: 0 10px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}
.footer{
    margin: 10px 0px;
    padding: 8px;
    font-size: 0.7em;
    text-align: center;
}

/* INESCTEC DTE section */

.tree-level-wrapper {
   margin-left: 20px; 
   border-left: 2px solid #ccc; 
   position: relative; 

} 
.tree-node {
    position: relative; 
    padding-left: 15px; 
    margin-top: 15px;
}
.horizontal_connector {
    position: absolute;
    left: 0;
    top: 12px;
    width: 10px;
    height: 2px;
    background: #ccc;
}
.dte_data {
    color: #666;
    font-size: 0.9em;
}

.dte_link {
    text-decoration: underline;
}

.dpp_url{
    font-size: 0.85em;
    color: #007bff;
    text-decoration: none;
}
.last_loop {
    position: absolute; 
    left: -4px; 
    top: 14px; 
    width: 6px; 
    height: calc(100% + 20px); 
    background: #fff; 
    z-index: 1;
}
.tree_node-content {
    position: relative; 
    z-index: 2; 
    line-height: 1.6;
}
.event_tree_list {
    margin-bottom: 10px;
    background-color: #f1f1f1;
}   
.event_summary {
    cursor: pointer; 
    font-size: 0.85em; 
    color: #555; 
    list-style: none;
}
.event_item {
    color: #007bff; 
    font-size: 1.7em;
    display: inline-block; 
    line-height: 1; 
    vertical-align: middle; 
    margin-right: 2px;
    margin-bottom: 5px;
}
.event_details {
    margin-left: 15px;
    margin-top: 5px;
    padding-left: 10px;
    padding-bottom: 10px;
    border-left: 1px dashed #ddd;
    font-family: monospace;
    font-size: 0.85em;
    color: #444;
}
.event_detail_data {
    color: #666;
    font-size: 0.9em;
}

/* TOP TABLE */

    .info-table {
        width: 100%;
        max-width: 760px;
        border-collapse: separate;
        border-spacing: 0;
        font-family: 'Noto Sans', sans-serif;
        font-size: 14px; /* Smaller, high-density text */
        background-color: #ffffff;
        border: 1px solid #e0e4e8;
        overflow: hidden;
        margin: 20px 20px 10px 20px;
    }

    .info-table tr {
        transition: background-color 0.2s ease;
    }

    .info-table tr:hover {
        background-color: #f9fafb; /* Subtle hover lift */
    }

    /* Column 1: Labels (dte_data) */
    .info-table .dte_data {
        width: 180px;
        padding: 5px 16px;
        background-color: #f8f9fa; /* Light gray gutter */
        color: #4b5563;
        font-weight: 600;
        text-align: left;
        border-bottom: 1px solid #e0e4e8;
        border-right: 1px solid #e0e4e8;
        text-transform: capitalize;
    }

    /* Column 2: Data values */
    .info-table td:not(.dte_data) {
        padding: 5px 16px;
        color: #111827;
        border-bottom: 1px solid #e0e4e8;
        font-family: 'Noto Sans', sans-serif;
        font-size: 14px;
    }

    /* Remove border from the last row */
    .info-table tr:last-child td {
        border-bottom: none;
    }

    /* Styling for the DPP Link/Button */
    .dpp_url {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #2563eb;
        text-decoration: none;
        font-weight: 600;
        font-family: sans-serif; /* Back to sans for buttons */
        padding: 4px 8px;
        border-radius: 4px;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        transition: all 0.2s;
        margin-top: 5px;
    }

    .dpp_url:hover {
        background: #dbeafe;
        color: #1e40af;
    }

    .json-indent {
        margin-left: 25px;      /* Indents the sub-level */
    }
 

/* END OF INESCTEC DTE section */

.section_is_empty{
    margin-top: 10px;
    text-align: center;
    font-size: 1.1em;
    color: #ff0a0a;
}

.loader {
  color: #666;
  font-style: italic;
  animation: pulse 1.5s infinite;
}
.toast-notification { 
  position: fixed;
  top: 20px;
  left: 50%; 
  /* Default state: centered */
  transform: translateX(-50%);
  max-width: 350px;
  background: white;
  border-left: 5px solid #ff4757;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 15px;
  border-radius: 4px;
  z-index: 9999;
  animation: slideIn 0.5s ease-out, fadeOut 0.5s ease-in 6.5s forwards; 
}

/* Ensure every frame includes the -50% to stay centered */
@keyframes slideIn {
  from { transform: translate(-50%, -20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes fadeOut {
  from { transform: translate(-50%, 0); opacity: 1; }
  to { transform: translate(-50%, -10px); opacity: 0; visibility: hidden; }
}