/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #1E1E2E;
    color: white;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease-in-out;

    font-family: 'Chakra Petch', sans-serif;
}

.summary-container{
    display: none;
  
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 12% 85%;
    gap: 1rem;
    align-items: space-between;
    justify-content: center;
    width: 100%;
    height: 95%;


}



/* Initially hidden */
.hidden {
    opacity: 0;
    /* transform: translateY(-20px); */
    visibility: hidden;
}

/* Smooth fade-in animation */
.fade-in {
    opacity: 1;
    /* transform: translateY(0); */
    visibility: visible;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}



#total-rows, #file-size, #total-Columns{
    padding: 1rem;
    font-size: 1.2rem;
    color: black;
    text-align: center;
  
}

.table-head{
    grid-column: span 3;
    padding: 1rem;
 
}

.dataset-table {
    width: 100%;
    border-collapse: collapse;
 ;
}

.dataset-table th, .dataset-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    color: black;
    font-size: 0.6rem;
}

.dataset-table th {
    background-color: #007BFF;
    color: black;
    font-weight: bold;
}

.dataset-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.dataset-table tr:hover {
    background-color: #ddd;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}



.sub-menu {
    display: none;
    list-style-type: none;
    padding-left: 2rem;

    & li{
        padding-left: 2rem;
    }
}

/* Insights Container */
.insights-container {
    display: flex;

}

.chart-container {
    width: 78vw;
    height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    position: relative;
    background-color: white;

    & #blink-text {
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 100%;
        font-size: 1.5rem;
        color: rgb(0, 0, 0);
        animation: blink 0.6s linear 0s infinite alternate;
        -webkit-animation: blink 0.6s linear 0s infinite alternate;
}

 
   



}

.chart-container img {
    padding: 1rem;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /*Ensuresthewholeimagefitsinsidewithoutbeingcropped*/box-shadow: rgb(0, 0, 0) 0px 3px 8px;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 1;
    -webkit-transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    -moz-transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    -ms-transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    -o-transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.chart-container img.hidden {
    opacity: 0;
    transform: scale(0.9);
}


@keyframes blink {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

/* Sidebar Navigation */
.sidebar {
    width: 16rem;
    height: 100vh;
    position: fixed;
    background: black;
    padding: 2rem 1rem;
    overflow-y: auto;
    box-shadow: 4px 0px 10px rgba(0, 0, 0, 0.3);
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
    
}

.sidebar ul li a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 1rem;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.sidebar ul li a:hover {
    background: rgba(84, 84, 84, 0.5);
    transform: scale(1.05);
}

/* Sub-sections (Initially Hidden) */
.sub-sections {
    display: none;
    padding-left: 20px;
}

.sub-sections li {
    margin-top: 5px;
}

.sub-menu li a{
    font-size: 0.9rem !important;
    color: #d5d5d5 !important;
}

/* Active Section - Expands Sub-sections */
.main-section.active .sub-sections {
    display: block;
}

#displayed-image {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

/* Main Content */
.insights-content {
    width: 100%;
    margin: 0rem 0 1rem 15rem;

    padding: 2rem;

    display: flex;

    justify-content: center;
    align-items: center;
    flex-direction: column;

    & h2 {
        font-size: 1.5rem;
    }
}

/* Image Display Container */
.image-container {
    width: 60%;
    max-width: 700px;
    text-align: center;
    background: #292A3A;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

/* Placeholder Text */
.image-placeholder {
    color: #ccc;
    font-size: 1.3rem;
    text-align: center;
    padding: 20px;
}

.loader {
    width: 120px;
    height: 20px;
    margin: 60px auto;
    -webkit-mask: linear-gradient(90deg, #000 70%, #0000 0) left/20% 100%;
    background:
      linear-gradient(#000 0 0) left -25% top 0 /20% 100% no-repeat
      #ddd;
    animation: l7 1s infinite steps(6);
  }
  
  @keyframes l7 {
    100% {
      background-position: right -25% top 0;
    }
  }
  

/* Responsive Design */
@media (max-width: 768px) {
    .insights-content {
        margin-left: 0;
        padding: 20px;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
}
