/* File Container */
.file-container {
  background: #000;
  min-height: 100vh;
  padding: 20px;
}

.file-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* File Card */
.file-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #333;
}

.file-card:hover {
  background: #252525;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
  border-color: #444;
}

.file-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.file-icon svg {
  width: 24px;
  height: 24px;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-description {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #999;
  line-height: 1.4;
}

.file-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.file-size, .file-type {
  font-size: 12px;
  color: #666;
}

.file-type {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 500;
}

.file-actions {
  flex-shrink: 0;
}

.btn-download {
  background: #fe2c55;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-download:hover {
  background: #e02147;
  transform: translateY(-1px);
}

.btn-download svg {
  width: 16px;
  height: 16px;
}

/* File Modal */
.file-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.file-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
}

.modal-content {
  position: relative;
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  max-width: 500px;
  width: 90%;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-file-preview {
  padding: 40px 40px 20px 40px;
  text-align: center;
}

.modal-file-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.modal-file-icon svg {
  width: 40px;
  height: 40px;
}

.modal-file-info h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.modal-file-info p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #999;
  line-height: 1.4;
}

.modal-file-meta {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.modal-file-actions {
  padding: 20px 40px 40px 40px;
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: #fe2c55;
  color: white;
}

.btn-primary:hover {
  background: #e02147;
}

.btn-secondary {
  background: transparent;
  color: #999;
  border: 1px solid #333;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.btn-primary svg, .btn-secondary svg {
  width: 18px;
  height: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .file-container {
    padding: 16px;
  }

  .file-card {
    padding: 16px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .file-icon {
    width: 60px;
    height: 60px;
  }

  .file-icon svg {
    width: 28px;
    height: 28px;
  }

  .file-meta {
    justify-content: center;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }

  .modal-content {
    width: 95%;
    max-width: none;
    margin: 20px;
  }

  .modal-file-preview {
    padding: 30px 20px 15px 20px;
  }

  .modal-file-actions {
    padding: 15px 20px 30px 20px;
  }
}

@media (max-width: 480px) {
  .file-container {
    padding: 12px;
  }

  .file-card {
    padding: 12px;
  }

  .file-icon {
    width: 50px;
    height: 50px;
  }

  .file-icon svg {
    width: 24px;
    height: 24px;
  }

  .modal-content {
    width: 98%;
    margin: 10px;
  }
}