.folder-entrance {
  animation: scaleIn 0.6s ease-out 0.1s both;
}

.modern-folder {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center bottom;
}

.folder-tabs {
  display: flex;
  position: relative;
  margin-bottom: -10px;
  gap: 5px;
  flex-wrap: nowrap;
}

.folder-tab {
  padding: 15px 70px 15px 30px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-top-left-radius: 12px;
  clip-path: polygon(0 0, calc(100% - 20%) 0, 100% 100%, 100% 100%, 0 100%);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: #f6faedc5;
  color: #3f3d33;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.8;
  margin-top: 4px;
  font-family: system-ui, -apple-system, sans-serif;
}

.folder-tab:nth-child(n + 2) {
  margin-left: -30px;
}

.folder-tab:hover {
  opacity: 1;
  background: #f0f0f0;
  transform: translateY(-2px);
}

.folder-tab:hover .tab-text {
  transform: scale(1.02);
}

.folder-tab.active {
  background: #f6faed;
  border-color: #f6faed;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-top: 0;
  opacity: 1;
  color: #3f4926;
}

.tab-text {
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 700;
  font-size: large;
}

.mobile-text {
  display: none;
}

.folder-body {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  padding: 20px;
  background-color: #f6faed !important;
}

.folder-content {
  position: relative;
  overflow: hidden;
}

.content-section {
  width: 100%;
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-section.transitioning {
  opacity: 0;
  transform: translateX(30px) scale(0.98);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 768px) {
  .folder-tab {
    padding: 12px 40px 12px 20px;
    font-size: 12px;
  }

  .folder-tab:nth-child(n + 2) {
    margin-left: -20px;
  }

  .desktop-text {
    display: none;
  }

  .mobile-text {
    display: block;
  }
}

@media (max-width: 480px) {
  .folder-tab {
    padding: 10px 30px 10px 15px;
    font-size: 11px;
  }

  .folder-tab:nth-child(n + 2) {
    margin-left: -15px;
  }

  .folder-tabs {
    gap: 2px;
  }
}
