.main {
  height: 60vh;
	clip-path: polygon(0% 0px, 100% 0%, 100% 100%, 0px 100%);
}

.drop-area {
  position: fixed;
  inset: -5rem;
  display: grid;
  place-items: center;
}

.drop-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-10);
}

.drop-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--blue-1);
  margin-top: 6px;
}

.dropzone {
  background: var(--light);
  border: 3px dashed var(--blue-6);
  outline: 10px solid;
  padding: 90px 70px;
  border-radius: 260px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone:hover {
  border-color: var(--primary);
  background: var(--gray-12);
}

.drawer {
  background: var(--gray-2);
  border-radius: 16px 16px 0px 0px;
  border-top: 2px solid var(--gray-12);
  border-left: 2px solid var(--gray-12);
  border-right: 2px solid var(--gray-12);
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 14px;
  overflow-y: auto;
  min-height: 40vh;
  margin-left: 3px;
  margin-right: 3px;
}

.folder {
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid var(--gray-9);
  padding-bottom: 14px;
  margin-bottom: 14px;
  gap: 14px;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.folder.folder-drag-over {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.folder-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.folder-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;

  font-size: 0.875rem;
  color: var(--gray-11);
}

.folder-meta > div {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.folder-meta svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .folder-meta {
    gap: 0.35rem;
    font-size: 0.8rem;
  }

  .folder-meta svg {
    width: 14px;
    height: 14px;
  }
}

.file-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.file {
  min-height: 150px;
  width: 8rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--gray-9);
}

.file-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--dark);
}

.file-preview img,
.file-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 6px;
  color: white;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.file-preview 
.icon-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;

  z-index: 10;
}

.folder-actions
.icon-btn {
  z-index: 10;
  width: 42px;
  height: 42px;

}
 .icon-btn:hover { 
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

.file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0.5rem;
}

.file-meta p {
  margin: 0;
  white-space: nowrap;
}

.file-meta p:first-child {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.add-file {
	display: flex;
	height: 100%;
	justify-content: center;
	align-items: center;
}

.footer-love {
  text-align: center;
  margin: 1rem;
}


.folder-link {
  display: flex;
  align-items: center;
}
.folder-link input {
  width: 320px;
  max-width: 45vw;
  padding: 0.5rem 0.9rem;

  border: 1px solid var(--gray-6);
  border-radius: 6px 0px 0px 16px;

  background: var(--gray-2);
  color: var(--gray-12);

  font-size: 0.9rem;
}

.folder-link input:focus {
  outline: none;
  border-color: var(--accent-9);
}
.copy-btn {
  white-space: nowrap;
  padding: 0.5rem 0.9rem;
  border: none;
  border-radius: 0px 6px 6px 0px;
}
.folder-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


@media (max-width: 768px) {
  .folder-title {
    flex-direction: column;
    align-items: stretch;
  }

  .folder-actions {
    width: 100%;
    justify-content: space-between;
  }

  .folder-link {
    flex: 1;
  }

  .folder-link input {
    width: 100%;
    max-width: 100%;
  }
}

.add-file-btn {
  background: transparent;
  color: var(--light);
  cursor: pointer;
}

.add-file-btn:hover {
  transition: all 0.2s ease;
  background: var(--gray-3);
  color: var(--light);
  cursor: pointer;
}

.footer-love a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
}
