.section-container{
    width: 100%;
}
.section-header{
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 15px;

}
.content-icon{
    width: 30px;
}
.header-grid-element{
    display: flex;
    justify-content: center;
    align-items: center;archive-structure
    padding: 2em;
    background: rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.5px);
    -webkit-backdrop-filter: blur(6.5px);
    border: 1px solid rgba(255, 255, 255, 0.31);
}
.header-grid-element div{
    padding-left: 10px;
}
.archive-structure {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 5px;
    overflow: auto;
}

.structure-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.folders-container {
    /* max-height: 500px; */
    /* overflow-y: auto; */
}

/* Folder Item Styling */
.folder-item {
    margin: 2px 0;
}

.folder-header {
    display: flex;
    align-items: center;
    /* padding: 10px 15px; */
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    user-select: none;
}

.folder-header:hover {
    background-color: #f7e4c9;
}

.folder-header.expanded {
    background-color: #f7e4c9;
}

.folder-icon,
.folder-icon-none {
    margin-right: 8px;
    color: #666;
    transition: transform 0.3s ease;
    text-align: center;
    font-weight: 900;
}

.folder-header.expanded .folder-icon {
    transform: rotate(90deg);
}

.folder-checkbox {
    display: none;
}

.folder-name {
    font-weight: 500;
    color: #2c3e50;
    flex-grow: 1;
}

/* Folder Children Styling */
.folder-children {
    margin-left: 5px;
    border-left: 2px solid #e9ecef;
    padding-left: 5px;
    display: none;
}

.folder-header.expanded + .folder-children {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Level-specific styling for visual hierarchy */
.folder-item .folder-item {
    margin-left: 0;
}




/* Scrollbar Styling */
.folders-container::-webkit-scrollbar {
    width: 6px;
}

.folders-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.folders-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.folders-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Empty state */
.folders-container:empty::before {
    content: "No folders found";
    color: #6c757d;
    font-style: italic;
    text-align: center;
    display: block;
    padding: 20px;
}
.section-content {
    display: grid;
    align-content: space-around;
    grid-template-columns: 25% 75%;
    grid-template-rows: 1fr;
    height: 700px;
}
.content-sidebar{
    display: grid;
    grid-template-rows: 96%;
    overflow-x: auto;
    grid-template-columns: 100%;
}
.content-content{
    overflow-y: auto;
    display: grid;
    grid-template-rows: 96%;
    grid-template-columns: 100%;
}

.content-structure{
    background: white;
    border-radius: 8px;
    padding: 0px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 5px;
    display: grid;
    grid-template-rows: 10% 90%;
}
.content-row-header{
    background: #dfdfdf;
    text-align: center;
    padding: 15px 0px;
}
.content-row-files,
.content-row-header{
    display: grid;
    grid-template-columns: 5% 20% 20% 36% 15%;
    grid-column-gap: 1%;
    align-items: center;
}
.content-row-content > .content-row-files:nth-child(even){
background-color: #e9ecef;
}
.file-action img{
    width: 20px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.content-row-content{
    max-height: 600px;
    overflow-y: auto;
}
.content-row-files > div{
    overflow: hidden;
}
.content-row-header > div{
    display: flex;
    align-items: center;
    justify-content: center;
}
.file-action-div{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.file-action{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
}
.view-doc{
    position: fixed;
    top: 10vh;
    width: 70vw;
    height: 80vh;
    left: 15vw;
}
.view-doc iframe{
    width: 100%;
    height: 100%;
}
.closeBtn{
    background: #ff4a4a;
    width: 30px;
    height: 30px;
    display: grid;
    place-content: center;
    border-radius: 3px;
    position: relative;
    transition: all 0.5s ease-in-out;
    margin: 3px;
}

.closeBtn:hover{
    background: #f00;
    cursor:pointer;
}

.closeBtn__lines{
    width: 1.5rem;
    height: 0.2rem;        
}
.closeBtn__lines{
    background: white;
    transform: rotateZ(-45deg);
}
.closeBtn__lines:after{
    content: "";
    position: absolute;
    width: 1.5rem;
    height: 0.2rem;
    transition: all 0.5s ease-in-out;
    transform-origin: center;
    transform: rotateZ(90deg);
    background: white;
}
.close-iframe{
    display: flex;
    justify-content: end;
}
/* .category-name-container {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 8px;
    cursor: pointer;
} */

.folder-icon, .folder-icon-none {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    font-weight: bold;
    transition: transform 0.2s;
    color: #666;
}

.folder-header.expanded .folder-icon {
    transform: rotate(90deg);
}


/* Show All Button */
.show-all-btn {
background: #c6801a;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  width: 150px;
  padding: 10px 0px;
}

.show-all-btn:hover {
    background: #ce9745;
}

/* Active folder state */
.folder-header.active {
    background-color: #f7e4c9;
    border-left: 3px solid #c6801a;
}

/* File filtering animations */
.content-row-files {
    transition: all 0.3s ease;
}

/* Structure title with button */
.structure-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c6801a;
}

.category-name-container {
    display: flex;
    /* grid-template-columns: auto 1fr auto; */
    align-items: center;
    /* gap: 8px; */
    width: 100%;
    cursor: pointer;
    padding: 4px 8px;
    justify-content: space-between;
}

.folder-icon-none {
    grid-column: 1;
}

.category-name {
    grid-column: 1;
    white-space: nowrap;
    padding-right: 8px;
}

.category-dots {
    grid-column: 2;
    overflow: hidden;
    white-space: nowrap;
    color: #666;
    font-family: monospace;
}

.category-dots::after {
    content: "................................................................................";
    letter-spacing: 2px;
}

.category-count {
    grid-column: 3;
    white-space: nowrap;
    padding-left: 8px;
}
.category-name-container img{
    width: 20px;
    transition: all 0.3s ease-in-out;
}
.category-name-container img:hover{
    transform: scale(1.2);
    background-color: #c6801a;
    padding: 2px;
    border-radius: 5px;
}
.file-action img:hover{
    transform: scale(1.2);
}

.download-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.download-icon, .spinner-icon, .checkmark-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.spinner-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.checkmark-icon {
    filter: brightness(0) saturate(100%) invert(47%) sepia(91%) saturate(391%) hue-rotate(81deg) brightness(95%) contrast(89%);
}

@media screen and (max-width: 800px) {
    .section-content {
      grid-template-columns: 100%;
      grid-template-rows: 25% 75%;
      }
      .content-structure{
      grid-template-rows: unset;
      }
      .content-row-files, .content-row-header{
        width: 100%!important;
      }
      .archive-structure{
      
      }
}
@media screen and (max-width: 1280px) {
  .content-structure{
    width: 800px;
  }
}
@media screen and (max-width: 1080px) {

  header{
    justify-content: unset; 
    height: 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    width: 100%;
    align-items: center;
    gap: 10px;
    justify-items: center;
  }
  .dashboard-logo{
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    justify-self: start;
  }
.dashboard-search{
        grid-column: 1 / 3;
        grid-row: 2 / 3;
        text-align: center;
        width: 90%;
  }
  .dashboard-user{
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end;
  }
 
  
  

.content-row-files, .content-row-header{
  width: 700px;
}
.content-row-header{
max-height: 80px;
}
.content-row-content{
  overflow-y: unset!important;
}
}
@media screen and (max-width: 700px) {
    header {
        height: 150px;
    }
}


@media screen and (max-width: 600px) {
        .content-row-content{
          width: 800px;
          }
}
@media screen and (max-width: 500px) {
    header{
        height: 180px;
    }
}
