@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    from {
        border-right-color: rgba(0, 0, 0, 0.5);
    }

    to {
        border-right-color: transparent;
    }
}

.typewriter {
    animation: typing 4s steps(20, end) infinite, blink 0.9s step-end infinite;
}

.marquee-wrapper {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: flex;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.marquee img {
    flex-shrink: 0;
    margin-right: 2rem;
}

.marquee1 {
    display: flex;
    animation: marquee 40s linear infinite;
    margin-top: 40px;
}

@keyframes marquee1 {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.marquee1 img {
    flex-shrink: 0;
    margin-right: 2rem;
}

.px-margin {
    padding-left: 5.625rem;
    padding-right: 5.625rem;
}

.h-global-header {
    height: 4.5rem;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.px-responsive-xl-36 {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
}

picture {
    display: block;
    height: auto;
    vertical-align: middle;
    width: 100%;
}

.bg-hot-brick\/90 {
    background-color: #fed600;
}

.bg-grid::before {
    --size: 45px;
    --line: rgba(0, 0, 0, 0.2);
    /* Adjust color and transparency */
    background-image:
        linear-gradient(90deg, var(--line) 1px, transparent 1px var(--size)),
        linear-gradient(var(--line) 1px, transparent 1px var(--size));
    background-size: var(--size) var(--size);
    background-position: center;
    mask: linear-gradient(-20deg, transparent 50%, white);
    -webkit-mask: linear-gradient(-20deg, transparent 50%, white);
}

/* Space between buttons lBfrtip*/
div.dt-buttons {
    margin-left: .7rem;
}

body,
html {
    height: 100%;
    --focus-ring-color: currentColor;
    --focus-ring-offset: 0.375rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    /* Ensure both html and body get applied */
    transition: font-size 0.2s ease-in-out;
}

body {
    margin: 0;
    line-height: inherit;
}

.richtext-image {
    max-height: 550px;
    width: 100%;
    object-fit: cover;
    /* Prevents stretching */
}

.text-body-lg {
    font-size: .9rem;
    letter-spacing: .01em;
    line-height: 1.6;
}

.text-rich p {
    margin-bottom: .9rem;
}

/* Add to your global styles */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    scrollbar-width: none;
}

.tooltip {
    z-index: 9999 !important;
    position: absolute; /* or fixed, as needed */
  }

  .carousel-track {
    overflow-x: scroll;
    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;        /* IE 10+ */
}
.carousel-track::-webkit-scrollbar {
    display: none;                   /* Chrome, Safari, Opera */
}
   
    *, *::before, *::after {
        break-inside: auto !important;
        page-break-inside: auto !important;
        break-before: auto !important;
        page-break-before: auto !important;
        break-after: auto !important;
        page-break-after: auto !important;
        float: none !important;
    }




    /* base.html home templates */
     /* Add custom tooltip styles */
     [title] {
        position: relative;
      }

      [title]:hover::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        padding: 5px 10px;
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
        border-radius: 4px;
        font-size: 14px;
        white-space: nowrap;
        z-index: 1001;
        pointer-events: none;
        margin-bottom: 5px;
      }

      /* Add arrow to tooltip */
      [title]:hover::before {
        content: '';
        position: absolute;
        bottom: calc(100% - 5px);
        left: 50%;
        transform: translateX(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
        z-index: 1001;
        pointer-events: none;
      }


      /* feedback.html */
      .star {
        font-size: 2.5rem;
        transition: color 0.3s;
        color: gray;
        outline: none;
    }
    .star:focus {
        transform: scale(1.1);
        transition: transform 0.2s ease;
    }
    .star.active {
        color: gold;
    }

    /* dasboard_page.html */

    :root {
        --card-primary: #f5faff;
        --card-blue: #8de2ff;
        --card-green: #4cefbc;
        --card-orange: #ffce55;
        --card-red: #ff7777;
        --accent-blue: #2563eb;
        --accent-green: #059669;
        --accent-orange: #eab308;
        --accent-red: #f43f5e;
    }

    .dashboard-grid {
        display: flex;
        flex-direction: column;
        gap: 2.2em;
        margin: 28px 32px;
    }

    .dashboard-row {
        display: grid;
        width: 100%;
        gap: 1.6em;
    }

    .cards-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .charts-row {
        grid-template-columns: repeat(12, 1fr);
        /* 12-column flexible layout */
        grid-auto-rows: minmax(350px, auto);
        align-items: stretch;
    }

    .dashboard-title {
        font-size: 2.1em;
        text-align: center;
        margin-top: 18px;
        font-weight: 800;
        text-decoration: underline;
        letter-spacing: 0.01em;
        color: #1e293b;
        text-shadow: 0 2px 8px #e0e7ef3a;
        border-radius: 0.15em;
        transition: color 0.16s;
    }

    .dashboard-title:hover {
        color: #2563eb;
    }

    .mini-card {
        border-radius: 0.3em;
        box-shadow: 0 2px 14px rgba(52, 70, 140, 0.08);
        border: 1px solid #000;
        display: flex;
        align-items: flex-start;
        padding: 1.65em 1em;
        min-height: 132px;
        gap: .5em;
        font-size: 1.09em;
        position: relative;
        background: var(--card-primary);
        transition: transform 0.13s, box-shadow 0.18s;
    }

    .mini-card:hover {
        transform: translateY(-2px) scale(1.015);
        box-shadow: 0 4px 26px 0 rgba(30, 64, 175, 0.14);
    }

    .mini-card--blue {
        background: var(--card-blue);
    }

    .mini-card--green {
        background: var(--card-green);
    }

    .mini-card--orange {
        background: var(--card-orange);
    }

    .mini-card--red {
        background: var(--card-red);
    }

    .mini-card-icon {
        font-size: 2.5em;
        margin-right: 0.2em;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        background: #ffffff;
        padding: 6px;
        opacity: 0.93;
    }

    .mini-card--blue .mini-card-icon {
        color: var(--accent-blue);
    }

    .mini-card--green .mini-card-icon {
        color: var(--accent-green);
    }

    .mini-card--orange .mini-card-icon {
        color: var(--accent-orange);
    }

    .mini-card--red .mini-card-icon {
        color: var(--accent-red);
    }

    .mini-card-content {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        gap: 0.18em;
    }

    .mini-card-value {
        font-size: 20px;
        font-weight: 700;
        color: #000;
    }

    .mini-card-label {
        font-size: 1em;
        font-weight: 600;
        color: #000;
    }

    /* Chart Block Styling */
    .dashboard-block {
        border-radius: 6px;
        padding: 1px;
        text-align: center;
        font-weight: 500;
        border: 2px solid #ededed;
        box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .chart-placeholder {
        flex: 1 1 0;
        min-height: 0;
        height: 100%;
        width: 100%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }

    .chart-placeholder>svg,
    .chart-placeholder>canvas {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block;
    }

    .char-title {
        margin-top: 8px;
        font-size: 1.2em;
        font-weight: 700;
        color: #1e293b;
    }

    /* Responsive */
    @media (max-width: 1200px) {
        .cards-row {
            grid-template-columns: repeat(2, 1fr);
        }

        .charts-row {
            grid-template-columns: repeat(6, 1fr);
        }
    }

    @media (max-width: 800px) {
        .dashboard-grid {
            margin: 0 8px;
        }

        .cards-row,
        .charts-row {
            grid-template-columns: 1fr;
            gap: 1.1em;
        }

        .charts-row .dashboard-block {
            min-height: 200px;
        }
    }
    @media (max-width: 600px) {
        .dashboard-block {
    grid-column: 1 / -1 !important; /* Force full width */
    width: 100% !important;
  }
  .dashboard-grid {
    grid-template-columns: 1fr !important; /* Single column grid */
  }
  .dashboard-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
  }
  .dashboard-tab {
    flex: 0 0 auto;
    min-width: 140px;
    padding: 0.5rem 1rem;
    text-align: center;
    white-space: nowrap;
  }
  .dashboard-tabs::-webkit-scrollbar {
    height: 6px;
  }
  .dashboard-tabs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }
  .dashboard-tabs::-webkit-scrollbar-track {
    background: #f9f9f9;
  }}
    .icon-bg-blue,
    .icon-bg-green,
    .icon-bg-orange,
    .icon-bg-red {
        background: transparent;
        border-right: 2px solid #000;

    }

    .chart-placeholder {
        position: relative;
    }

    .zoom-controls {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 10;
    }

    .zoom-controls button {
        background: #1e293b;
        color: white;
        border: none;
        padding: 6px 10px;
        font-size: 18px;
        border-radius: 6px;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .zoom-controls button:hover {
        background: #2563eb;
    }

    #svg-tooltip {
        position: fixed;
        display: none;
        background: white;
        padding: 6px 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        font-size: 13px;
        z-index: 9999;
        pointer-events: none;
        white-space: nowrap;
    }

    .dashboard-tabs {
        display: flex;
        justify-content: flex-start;
        gap: 18px;
        margin: 0px 0 8px 0;
        border-bottom: 1px solid #e6e6e6;
        background: #fafbfc;
    }

    .dashboard-tab {
        color: #64748b;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        padding: 9px 22px 9px 22px;
        transition: background 0.15s, color 0.13s;
        position: relative;
    }

    .dashboard-tab.active,
    .dashboard-tab:hover {
        color: #2563eb;
        background: #f4f8ff;
        border-bottom: 2.5px solid #2563eb;
    }

    /* feeback_list */

    .listing {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }

    .listing th, .listing td {
        padding: 10px;
        text-align: left;
        vertical-align: top;
        word-wrap: break-word;
        border-bottom: 1px solid #ddd;
    }

    .listing th {
        background-color: #f5f5f5;
    }

    .listing td:nth-child(4) { /* Message column */
        min-width: 300px;
        max-width: 400px;
        word-break: break-word;
        white-space: normal;
        overflow-y: auto;
        max-height: 150px;
    }

    .panel {
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* home.html */

   
#external-link-modal {
  
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}
#external-link-modal.show {
  display: flex !important;
  animation: fadeInModal 0.25s ease;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
#external-link-modal .modal-content {
  background: #fff;
  padding: 2.2rem 2rem 1.5rem 2rem;
  border-radius: 1.25rem;
  max-width: 95vw;
  min-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.10);
  text-align: center;
  position: relative;
  animation: popInModal 0.3s cubic-bezier(.25,1.7,.45,.87);
}
@keyframes popInModal {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
#external-link-modal .modal-content p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: #222;
}
#external-link-url {
  color: #0074d9;
  font-weight: 500;
  font-size: 1rem;
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  word-break: break-all;
}
#external-link-open, #external-link-cancel {
  padding: 0.5rem 1.7rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
#external-link-open {
  background: #0074d9;
  color: #fff;
}
#external-link-open:hover {
  background: #005fa3;
}
#external-link-cancel {
  background: #f3f3f3;
  color: #333;
}
#external-link-cancel:hover {
  background: #e0e0e0;
  color: #0074d9;
}

/* image_folder_page.html */


.gallery-grid {
    column-count: 4;
    column-gap: 8px;
    margin: 10px 160px 10px auto;
    width: 100%;
    max-width: 1200px;
    padding: 0;
    display: block;
}
.gallery-item {
    display: block;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0 0 8px 0;
    padding: 0;
    cursor: pointer;
    break-inside: avoid;
    overflow: hidden;
}
.gallery-img-preview {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    display: block;
    padding: 5px;
}
.lightbox-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    flex-direction: row;
    padding: 0;
}
.lightbox-content {
    max-width: 70vw;
    max-height: 60vh;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
    margin: 0 24px;
    background: #fff;
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 32px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
    user-select: none;
}
.lightbox-arrow {
    color: #fff;
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    background: rgba(0,0,0,0.25);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1010;
    transition: background 0.15s;
}
.lightbox-arrow:hover {
    background: rgba(96,165,250,0.7);
}
.lightbox-arrow-left {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-arrow-right {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}
@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 4px;
    }
    .gallery-item { margin-bottom: 4px; }
    .gallery-img-preview { width: 100%; height: auto; }
    .lightbox-content { max-width: 92vw; max-height: 40vh; margin: 0 6px; }
    .lightbox-arrow { font-size: 1.3rem; width: 28px; height: 28px; }
    .lightbox-arrow-left { left: 6px; }
    .lightbox-arrow-right { right: 6px; }
}

/* header.html */


  /* Hide all dropdowns by default */
  .dropdown-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    overflow: visible;
    /* Ensures content inside dropdown does not get cut off */
    position: absolute;
    /* Ensures it stays in the correct position */
    z-index: 1000;
    /* Keeps dropdown above other content */
  }

  /* Show dropdown when hovering over parent or when focused */
  .dropdown:hover>.dropdown-content,
  .dropdown:focus-within>.dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Ensure submenus appear without clipping */
  .dropdown-content .dropdown {
    position: relative;
  }

  .dropdown-content .dropdown .dropdown-content {
    top: 0;
    left: 100%;
    /* Positions submenu to the right */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  }

  /* Show submenus when hovering over their parent or when focused */
  .dropdown-content .dropdown:hover>.dropdown-content,
  .dropdown-content .dropdown:focus-within>.dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Focus styles for navigation elements */
  .dropdown button:focus,
  .dropdown a:focus {
    outline: 2px solid #ffc22d;
    outline-offset: 2px;
  }

  /* Focus styles for dropdown items */
  .dropdown-content a:focus {
    background-color: #f3f4f6;
    outline: 2px solid #ffc22d;
    outline-offset: -2px;
  }

  /* Focus styles for action buttons */
  .stats a:focus {
    outline: 2px solid #ffc22d;
    outline-offset: 2px;
  }

  /* Focus styles for language selector and dark mode toggle */
  #language-selector:focus,
  #theme-toggle:focus {
    outline: 2px solid #ffc22d;
    outline-offset: 2px;
  }

  /* Focus styles for header action buttons */
  .header-action-btn:focus {
    outline: 2px solid #ffc22d;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #ffc22d; /* subtle yellow glow */
  }

  /* Class to hide dropdowns */
  .dropdown-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Add custom tooltip styles */
  [title] {
    position: relative;
  }

  [title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1001;
    pointer-events: none;
    margin-bottom: 5px;
  }

  /* Add arrow to tooltip */
  [title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    z-index: 1001;
    pointer-events: none;
  }

  /* Ensure tooltips don't get cut off */
  .dropdown-content [title]:hover::after {
    bottom: auto;
    top: 100%;
    margin-top: 5px;
    margin-bottom: 0;
  }

  .dropdown-content [title]:hover::before {
    bottom: auto;
    top: calc(100% - 5px);
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
  }

  /* modal.html */

  
    @keyframes modalSlideIn {
        from {
            transform: scaleX(0);
            opacity: 0;
        }

        to {
            transform: scaleX(1);
            opacity: 1;
        }
    }

    @keyframes modalSlideOut {
        from {
            transform: scaleX(1);
            opacity: 1;
        }

        to {
            transform: scaleX(0);
            opacity: 0;
        }
    }

    @layer utilities {
        .animate-modal {
            animation: modalSlideIn 0.4s ease-out forwards;
        }

        .animate-modal-close {
            animation: modalSlideOut 0.4s ease-in forwards;
        }
    }

    .modal::backdrop {
        background: rgba(0, 0, 0, 0.7);
    }
    .closeModal {
    top: 1rem; /* Adjust top position as needed */
    right: 1rem; /* Adjust right position as needed */
}
/* html_section.html */


    table {
        width: 100%;
        border-collapse: collapse;
        margin: 1rem 0;
    }
    
    table th,
    table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }
    
    table th {
        background-color: #f5f5f5;
    }
    
    .html-content {
        /* Prevent XSS through CSS */
        max-width: 100%;
        overflow-x: auto;
    }
    
    .html-content img {
        max-width: 100%;
        height: auto;
    }
    
    .html-content a {
        color: #0066cc;
        text-decoration: underline;
    }
    
    .html-content a:hover {
        text-decoration: none;
    }

    /* state_list_page.html */

 
  @keyframes slideInLeft {
    from {
      transform: translateX(-100px);
      opacity: 0;
    }

    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes slideInRight {
    from {
      transform: translateX(50px) scale(0.95);
      opacity: 0;
    }

    to {
      transform: translateX(0) scale(1);
      opacity: 1;
    }
  }

  .animate-slideInLeft {
    animation: slideInLeft 0.8s ease-in-out forwards;
  }

  .animate-slideInRight {
    animation: slideInRight 2s ease-out forwards;
  }

  .delay-200 {
    animation-delay: 200ms;
  }

  .animate-pulse {
    animation: pulse 4s infinite;
  }

  @keyframes pulse {

    0%,
    100% {
      opacity: 0.7;
    }

    50% {
      opacity: 0.5;
    }
  }

  /* base.html pciweb/template*/

  /* Add custom tooltip styles */
  [title] {
    position: relative;
  }

  [title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1001;
    pointer-events: none;
    margin-bottom: 5px;
  }

  /* Add arrow to tooltip */
  [title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    z-index: 1001;
    pointer-events: none;
  }




