
.dialog-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
}


.dialog-header {
  color: white !important;
  padding: 20px 24px;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-icon {
  font-size: 28px;
  width: 28px;
  height: 28px;
  color: #000000;
}

.dialog-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: #000000;
}


.dialog-content {
  flex: 1;
  padding: 0;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.zip-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}


.search-stats-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  gap: 20px;
}

.search-section {
  flex: 1;
  max-width: 400px;
}

.search-field {
  width: 100%;
}

.search-field .mat-form-field-wrapper {
  padding-bottom: 0;
}

.stats-section {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 16px;

}

.stat-icon {
  font-size: 18px;
  width: 18px;
  height: 18px;
  color: #666;
}

.stat-text {
  font-size: 14px;
  color: #181818;
  font-weight: 500;
  white-space: nowrap;
}


.table-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

.table-wrapper {
  flex: 1;
  overflow: auto;
  padding: 0 24px;
}

.zip-table {
  width: 100%;
  background: #ffffff;
}

/* Table Headers */
.header-row {
  background: #ffffff;
  border-bottom: 2px solid #dee2e6;
}

.header-row th {
  background: #ffffff;
  color: #495057;
  font-weight: 600;
  font-size: 14px;
  padding: 16px 12px;
  border-bottom: 2px solid #dee2e6;
}


.icon-column {
  width: 60px;
  text-align: center;
  padding: 8px 12px !important;
}

.name-column {
  min-width: 300px;
  padding: 8px 12px !important;
}

.size-column {
  width: 120px;
  text-align: right;
  padding: 8px 12px !important;
}

.type-column {
  width: 150px;
  padding: 8px 12px !important;
}

.zip-row {
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #ffffff;
}

.zip-row:hover {
  background-color: #ffffff;
}

.folder-row {
  background-color: #ffffff;
}

.folder-row:hover {
  background-color: #ffffff;
}

.file-row:hover {
  background-color: #ffffff;
}


.file-name-container {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
}

.expand-button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  flex-shrink: 0;
  margin-right: 4px;
}

.expand-icon {
  font-size: 18px;
  width: 18px;
  height: 18px;
  color: #666;
  transition: transform 0.2s ease;
}

.file-name {
  font-size: 14px;
  color: #333;
  word-break: break-word;
  line-height: 1.4;
}

.folder-name {
  font-weight: 500;
  color: #000000;
}

/* Icons */
.folder-icon {
  color: #ffa726;
  font-size: 20px;
}

.folder-icon.expanded {
  color: #ff9800;
}

.file-icon {
  color: #000000;
  font-size: 18px;
}

.size-text, .type-text {
  font-size: 13px;
  color: #666;
}


.no-data {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.no-data-content {
  text-align: center;
  max-width: 400px;
}

.no-data-icon {
  font-size: 64px;
  width: 64px;
  height: 64px;
  color: #bdbdbd;
  margin-bottom: 16px;
}

.no-data-title {
  font-size: 20px;
  font-weight: 500;
  color: #424242;
  margin: 0 0 8px 0;
}

.no-data-text {
  font-size: 14px;
  color: #757575;
  margin: 0;
  line-height: 1.5;
}

.dialog-actions {
  padding: 16px 24px;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
  margin: 0;
}

.actions-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.close-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 500;
  text-transform: none;
  font-size: 14px;
}

.close-button mat-icon {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .dialog-header {
    padding: 16px 20px;
  }
  
  .title-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  
  .dialog-title {
    font-size: 18px;
  }
  
  .search-stats-container {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
    align-items: stretch;
  }
  
  .search-section {
    max-width: none;
  }
  
  .stats-section {
    justify-content: center;
    gap: 16px;
  }
  
  .stat-item {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  
  .stat-text {
    font-size: 13px;
  }
  
  .table-wrapper {
    padding: 0 16px;
  }
  
  .name-column {
    min-width: 200px;
  }
  
  .size-column {
    width: 80px;
  }
  
  .type-column {
    width: 120px;
  }
  
  .dialog-actions {
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .search-stats-container {
    padding: 12px 16px;
  }
  
  .stats-section {
    flex-direction: column;
    gap: 8px;
  }
  
  .stat-item {
    width: 100%;
  }
  
  .table-wrapper {
    padding: 0 12px;
  }
  
  .zip-table {
    font-size: 13px;
  }
  
  .header-row th {
    padding: 12px 8px;
    font-size: 13px;
  }
  
  .icon-column,
  .name-column,
  .size-column,
  .type-column {
    padding: 6px 8px !important;
  }
  
  .name-column {
    min-width: 150px;
  }
  
  .size-column {
    width: 70px;
    font-size: 12px;
  }
  
  .type-column {
    width: 100px;
    font-size: 12px;
  }
  
  .file-name {
    font-size: 13px;
  }
  
  .expand-button {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }
  
  .expand-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
  }
}


.table-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}


.expand-icon {
  transition: transform 0.2s ease-in-out;
}

.zip-row {
  animation: fadeIn 0.3s ease-in-out;
}

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