/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos para todos os tipos de links */
a,
a:visited,
a:link,
a:active,
a:hover {
  color: #e0e0e0 !important;
  font-size: 0.88em;
  text-underline-offset: 2px;
  text-decoration-color: rgba(224, 224, 224, 0.5);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #1a1a2e;
  color: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}

/* Header */
.header {
  background: #16213e;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  border: 1px solid #0f3460;
  min-height: 60px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info {
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
}

.logout-btn {
  background: #e94560;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logout-btn:hover {
  background: #d63384;
  transform: translateY(-1px);
}

.home-link {
  color: #4ecdc4;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  margin-top: 2px;
  transition: color 0.2s;
  margin-right: 8px;
  padding-right: 8px;
}

/* Separador apenas quando breadcrumb tiver a classe 'has-content' */
.breadcrumb.has-content .home-link {
  border-right: 1px solid rgba(78, 205, 196, 0.3);
}

.home-link:hover {
  color: #45b7aa;
}

.home-link i {
  font-size: 18px;
}

/* Botão de voltar para mobile */
.back-button {
  display: none;
  background: transparent;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  align-items: center;
  gap: 6px;
}

.back-button:hover {
  background: #0f3460;
  transform: translateY(-1px);
  color: #ffffff;
}

.back-button i {
  font-size: 22px;
}

/* No desktop, sempre mostrar breadcrumb e ocultar botão de voltar */
@media (min-width: 769px) {
  .breadcrumb {
    display: flex !important;
  }

  .back-button {
    display: none !important;
  }
}

#current-path {
  color: #4ecdc4;
  font-weight: 400;
}

/* Main Content */
.main-content {
  background: #16213e;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid #0f3460;
}

/* Container do título com botão */
.title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0px;
  border-bottom: 1px solid #0f3460;
  padding-bottom: 20px;
}

#directory-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  flex: 1;
}

/* Container para botões de ação */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crop-vertical-btn {
  background: transparent;
  color: #ff6b6b;
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: -6px;
}

.crop-vertical-btn:hover {
  background: #0f3460;
  color: #ffffff;
  transform: scale(1.1);
}

.crop-vertical-btn:active {
  transform: scale(0.95);
}

.crop-vertical-btn i {
  font-size: 18px;
}

.generate-preview-btn {
  background: transparent;
  color: #4ecdc4;
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: -6px;
}

.generate-preview-btn:hover {
  background: #0f3460;
  color: #ffffff;
  transform: scale(1.1);
}

.generate-preview-btn:active {
  transform: scale(0.95);
}

.generate-preview-btn i {
  font-size: 18px;
}

/* Ícone de preview */
.preview-indicator {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  margin-left: 3px;
  margin-top: 1px;
  vertical-align: middle;
  background-color: #4ecdc4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.preview-indicator:hover {
  opacity: 0.8;
  transform: scale(1.2);
}

/* File List */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.file-item {
  display: flex;
  align-items: center;
  /* padding: 0px 16px; */
  border-bottom: 1px solid #0f3460;
  /* transition: background-color 0.1s; */
  cursor: pointer;
  min-height: 60px !important;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  padding: 0 20px;
}

/* Desktop hover effects - apenas para telas grandes */
@media (min-width: 769px) {
  .file-item:hover {
    background-color: #0f3460;
  }

  .file-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    right: -20px;
    bottom: 0;
    background-color: #0f3460;
    z-index: -1;
  }

  /* Estilo especial para arquivos de mídia clicáveis */
  .file-item[onclick*="playMedia"]:hover {
    background-color: #0f3460;
  }

  .file-item[onclick*="playMedia"]:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    right: -20px;
    bottom: 0;
    background-color: #0f3460;
    z-index: -1;
  }

  .file-item[onclick*="playMedia"]:hover .file-icon {
    transform: none;
  }

  /* Estilo especial para imagens clicáveis */
  .file-item[onclick*="viewImage"]:hover {
    background-color: #0f3460;
  }

  .file-item[onclick*="viewImage"]:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    right: -20px;
    bottom: 0;
    background-color: #0f3460;
    z-index: -1;
  }

  .file-item[onclick*="viewImage"]:hover .file-thumbnail {
    transform: none;
  }

}

.file-item:last-child {
  border-bottom: none;
}

.file-icon {
  font-size: 24px;
  margin-right: 16px;
  width: 50px;
  text-align: center;
  flex: 0 0 50px;
  color: #4ecdc4;
}

.file-thumbnail {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 16px;
  flex: 0 0 50px;
  transition: all 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: smooth;
  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: blur(0);
  margin-top: 10px;
  background: transparent;
}

.file-thumbnail:hover {
  transform: none;
  filter: none;
}

/* Lazy loading styles */
.lazy-image {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

.lazy-image:not(.loaded) {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.7;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 0.7;
  }
}

.file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.file-name {
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
}

.file-details {
  font-size: 12px;
  color: #4ecdc4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-size {
  font-weight: 500;
}

.file-separator {
  color: #4ecdc4;
  font-weight: 300;
}

.file-date {
  color: #4ecdc4;
}

.file-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.action-btn {
  padding: 8px;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.play-btn {
  display: none;
}

.download-btn {
  background: linear-gradient(135deg, #4ecdc4, #45b7aa);
  color: white;
}

.download-btn:hover {
  background: linear-gradient(135deg, #45b7aa, #3da89c);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(78, 205, 196, 0.4);
}

.share-btn {
  background: transparent;
  color: white;
}

.share-btn:hover {
  background: linear-gradient(135deg, #16213e, #0f3460);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(15, 52, 96, 0.4);
}

/* Estilos específicos para página de compartilhamento */
.share-info {
  font-size: 14px;
  color: #4ecdc4;
  font-weight: 500;
  padding: 8px 12px;
  background: #0f3460;
  border-radius: 6px;
  border: 1px solid #4ecdc4;
  display: none;
}

/* No mobile, remover o fundo azul e borda do share-info */
@media (max-width: 768px) {
  .share-info {
    background: transparent;
    border: none;
    padding: 4px 8px;
  }
}

.share-info i {
  margin-right: 6px;
}

.action-btn i {
  font-size: 14px;
}

.play-btn i {
  margin-left: 2px;
  /* Ajuste visual para centralizar o ícone play */
}

/* Loading State */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #4ecdc4;
  font-size: 18px;
  gap: 20px;
}

.loading i {
  font-size: 32px;
  color: #4ecdc4;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: #4ecdc4;
}

.empty-state i {
  font-size: 64px;
  color: #0f3460;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #ffffff;
}

.empty-state p {
  font-size: 16px;
  color: #4ecdc4;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: transparent;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 1200px;
  /* Desktop: 1200px ou 90% da tela */
  animation: modalSlideIn 0.3s ease-out;
}

/* Modal de imagem com largura automática */
.modal-content.image-modal-content {
  width: fit-content;
  max-width: 90vw;
  max-height: 70vh;
  /* Limitar altura máxima a 70% da tela */
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#video-player,
#audio-player {
  width: 100%;
  max-height: 70vh;
  /* Limitar altura máxima a 70% da tela */
  border-radius: 12px;
  outline: none;
}

/* Image Modal Styles */
.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 70vh;
  /* Limitar altura máxima a 70% da tela */
  min-width: 300px;
  min-height: 200px;
  width: fit-content;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
  min-height: 200px;
  max-height: 70vh;
  /* Limitar altura máxima a 70% da tela */
  overflow: hidden;
  /* Evitar scroll interno */
}

.loading-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  text-align: center;
  background: #16213e;
  border: 1px solid #4ecdc4;
}

.loading-text.hidden {
  display: none;
}

.close-image-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: #16213e;
  color: white;
  font-size: 18px;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #4ecdc4;
}

.close-image-btn:hover {
  background-color: #0f3460;
  transform: scale(1.1);
}

.close-image-btn:active {
  transform: scale(0.95);
}

#image-viewer {
  max-width: 100%;
  max-height: 70vh;
  /* Limitar altura máxima a 70% da tela */
  min-width: 300px;
  min-height: 200px;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  object-fit: contain;
  /* Manter proporção da imagem */
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .header {
    padding: 12px;
    margin-bottom: 15px;
  }

  .main-content {
    padding: 15px;
  }

  #directory-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  .breadcrumb {
    font-size: 14px;
    gap: 8px;
  }

  .home-link i {
    font-size: 16px;
  }

  .home-link {
    margin-right: 6px;
    padding-right: 6px;
    font-size: 16px;
  }

  .header-actions {
    gap: 10px;
  }

  .user-info {
    font-size: 12px;
  }

  .logout-btn {
    padding: 6px 8px;
    font-size: 12px;
  }

  /* Layout mobile em linha: ícone > nome > botões */
  .file-item {
    padding: 12px 15px;
    min-height: 60px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .file-icon {
    font-size: 28px;
    margin-right: 12px;
    width: 44px;
    flex: 0 0 44px;
  }

  .file-thumbnail {
    width: 44px;
    height: 44px;
    margin-right: 12px;
    flex: 0 0 44px;
  }

  .file-info {
    flex: 1;
    min-width: 0;
    /* Permite truncar texto */
    margin-right: 10px;
  }

  .file-name {
    font-size: 14px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-bottom: 2px;
    word-break: break-word;
  }

  .file-type {
    font-size: 12px;
    margin-bottom: 0;
  }

  .file-details {
    display: flex;
    font-size: 11px;
    color: #4ecdc4;
    align-items: center;
    gap: 4px;
  }

  .file-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  /* Ocultar botão de play no mobile */
  .play-btn {
    display: none;
  }

  .action-btn {
    width: 44px;
    height: 44px;
    padding: 10px;
    font-size: 14px;
  }

  .action-btn i {
    font-size: 18px;
  }

  /* Ajuste dos botões de ação no mobile */
  .crop-vertical-btn {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .crop-vertical-btn i {
    font-size: 16px;
  }

  .generate-preview-btn {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .generate-preview-btn i {
    font-size: 16px;
  }

  .modal-content {
    width: 90%;
    /* Mobile: 90% da tela */
    margin: 10% auto;
  }

  /* Modal de imagem no mobile */
  .image-modal-content {
    min-width: 280px;
    min-height: 180px;
    max-height: 70vh;
    /* Manter limitação de altura no mobile */
  }

  .image-container {
    min-width: 280px;
    min-height: 180px;
    max-height: 70vh;
    /* Manter limitação de altura no mobile */
  }

  #image-viewer {
    min-width: 280px;
    min-height: 180px;
    max-height: 70vh;
    /* Manter limitação de altura no mobile */
  }
}

@media (max-width: 480px) {
  .container {
    padding: 8px;
  }

  .title-container {
    padding-bottom: 0px !important;
  }

  .header {
    padding: 10px;
    margin-bottom: 12px;
  }

  .main-content {
    padding: 12px;
  }

  .breadcrumb {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 13px;
  }

  #directory-title {
    font-size: 18px;
    margin-bottom: 0px;
    /* border-bottom: 1px solid #e9ecef; */
  }

  .file-item {
    padding: 8px 12px;
    min-height: 50px;
  }

  .file-icon {
    font-size: 24px;
    width: 36px;
    flex: 0 0 36px;
    margin-right: 10px;
  }

  .file-thumbnail {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    flex: 0 0 36px;
    margin-top: 0px;
    margin-bottom: -8px;
  }

  .file-name {
    font-size: 13px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    word-break: break-word;
  }

  .file-details {
    display: flex;
    font-size: 10px;
    color: #4ecdc4;
    align-items: center;
    gap: 3px;
  }

  .file-type {
    font-size: 11px;
  }

  .file-actions {
    gap: 6px;
  }

  /* Ocultar botão de play no mobile pequeno também */
  .play-btn {
    display: none;
  }

  .action-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .action-btn i {
    font-size: 16px;
  }

  /* Ajuste dos botões de ação em telas muito pequenas */
  .crop-vertical-btn {
    width: 36px;
    height: 36px;
    padding: 8px;
  }

  .crop-vertical-btn i {
    font-size: 14px;
  }

  .generate-preview-btn {
    width: 36px;
    height: 36px;
    padding: 8px;
  }

  .generate-preview-btn i {
    font-size: 14px;
  }

  /* Modal de imagem em telas muito pequenas */
  .image-modal-content {
    min-width: 250px;
    min-height: 150px;
    max-height: 70vh;
    /* Manter limitação de altura em telas pequenas */
  }

  .image-container {
    min-width: 250px;
    min-height: 150px;
    max-height: 70vh;
    /* Manter limitação de altura em telas pequenas */
  }

  #image-viewer {
    min-width: 250px;
    min-height: 150px;
    max-height: 70vh;
    /* Manter limitação de altura em telas pequenas */
  }
}

/* Share Footer Styles */
.share-footer {
  padding: 25px 0;
  margin-top: -18px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  box-sizing: border-box;
  width: 100%;
  padding: 0 15px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-notice {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.notice-card {
  background: rgba(78, 205, 196, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(78, 205, 196, 0.2);
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.notice-main {
  display: flex;
  align-items: center;
  gap: 30px;
}

.notice-section {
  flex: 1;
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(78, 205, 196, 0.2);
}

.notice-header i {
  color: #4ecdc4;
  font-size: 16px;
}

.notice-header strong {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

.notice-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notice-item i {
  color: #4ecdc4;
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.notice-item span {
  color: #b8c5d1;
  font-size: 13px;
  line-height: 1.5;
}

.notice-divider {
  width: 1px;
  background: rgba(78, 205, 196, 0.2);
  min-height: 80px;
  flex-shrink: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
}

.footer-logo {
  height: 56px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-text {
  color: #b8c5d1;
  font-size: 12px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.footer-text i {
  color: #e94560;
  font-size: 12px;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Responsividade do footer */
@media (max-width: 768px) {
  .share-footer {
    padding: 20px 0;
    margin-top: -8px;
  }

  .footer-content {
    gap: 20px;
    padding: 0 10px;
  }

  .footer-brand {
    gap: 12px;
  }

  .notice-card {
    padding: 16px;
  }

  .notice-main {
    gap: 25px;
  }

  .notice-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .notice-header i {
    font-size: 14px;
  }

  .notice-header strong {
    font-size: 13px;
  }

  .notice-content {
    gap: 10px;
  }

  .notice-item {
    gap: 10px;
  }

  .notice-item i {
    font-size: 13px;
  }

  .notice-item span {
    font-size: 12px;
  }

  .notice-divider {
    min-height: 60px;
  }

  .footer-brand {
    min-width: 150px;
    gap: 8px;
  }

  .footer-logo {
    height: 48px;
  }

  .footer-text {
    font-size: 11px;
  }

  .footer-logo {
    height: 16px;
  }

  .footer-text {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .share-footer {
    padding: 15px 0;
    margin-top: -6px;
  }

  .footer-content {
    gap: 15px;
    padding: 0 8px;
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .notice-card {
    padding: 12px;
  }

  .notice-main {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .notice-header {
    margin-bottom: 10px;
    padding-bottom: 6px;
  }

  .notice-header i {
    font-size: 13px;
  }

  .notice-header strong {
    font-size: 12px;
  }

  .notice-content {
    gap: 8px;
  }

  .notice-item {
    gap: 8px;
  }

  .notice-item i {
    font-size: 12px;
  }

  .notice-item span {
    font-size: 11px;
    line-height: 1.4;
  }

  .notice-divider {
    display: none;
  }

  .footer-brand {
    min-width: auto;
    gap: 8px;
    width: 100%;
    text-align: center;
  }

  .footer-logo {
    height: 20px;
  }

  .footer-text {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .share-footer {
    padding: 12px 0;
    margin-top: -5px;
  }

  .footer-content {
    gap: 12px;
    padding: 0 8px;
  }

  .notice-card {
    padding: 10px;
  }

  .notice-main {
    gap: 15px;
  }

  .footer-logo {
    height: 18px;
  }

  .footer-text {
    font-size: 9px;
  }
}

/* Estilos de notificação removidos - sistema simplificado para melhor performance */

/* Download Modal Styles */
.download-modal-content {
  background: #16213e;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  margin: 10% auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid #0f3460;
  max-height: 370px;
}

.download-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
  border-bottom: 1px solid #0f3460;
  margin-bottom: 0;
}

.download-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.close-download-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #4ecdc4;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.close-download-btn:hover {
  background: #0f3460;
  color: #ffffff;
  transform: scale(1.1);
}

.download-options {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid #0f3460;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #16213e;
}

.download-option:hover {
  border-color: #4ecdc4;
  background: #0f3460;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(78, 205, 196, 0.2);
}

.download-option-icon {
  font-size: 32px;
  width: 50px;
  text-align: center;
  flex: 0 0 50px;
  color: #4ecdc4;
}

.download-option-content {
  flex: 1;
}

.download-option-content h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.download-option-content p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #4ecdc4;
}

.file-size-info {
  font-size: 12px;
  font-weight: 500;
  color: #4ecdc4;
  background: #0f3460;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid #4ecdc4;
}

/* Estilo para opção indisponível */
.download-option.unavailable {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: #0f3460;
  background: #16213e;
}

.download-option.unavailable:hover {
  border-color: #0f3460;
  background: #16213e;
  transform: none;
  box-shadow: none;
}

.download-option.unavailable .file-size-info {
  background: #0f3460;
  color: #e94560;
  border: 1px solid #e94560;
}

/* Responsividade para modal de download */
@media (max-width: 768px) {
  .download-modal-content {
    max-width: 90%;
    margin: 15% auto;
  }

  .download-modal-header {
    padding: 16px 20px 0;
  }

  .download-modal-header h3 {
    font-size: 18px;
  }

  .download-options {
    padding: 16px 20px 20px;
    gap: 12px;
  }

  .download-option {
    padding: 12px;
    gap: 12px;
  }

  .download-option-icon {
    font-size: 28px;
    width: 44px;
    flex: 0 0 44px;
  }

  .download-option-content h4 {
    font-size: 15px;
  }

  .download-option-content p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .download-modal-content {
    margin: 20% auto;
    max-height: 360px;
  }

  .download-modal-header {
    padding: 12px 16px 0;
  }

  .download-modal-header h3 {
    font-size: 16px;
  }

  .download-options {
    padding: 12px 16px 16px;
    gap: 10px;
  }

  .download-option {
    padding: 10px;
    gap: 10px;
  }

  .download-option-icon {
    font-size: 24px;
    width: 40px;
    flex: 0 0 40px;
  }

  .download-option-content h4 {
    font-size: 14px;
  }

  .download-option-content p {
    font-size: 12px;
  }

  .file-size-info {
    font-size: 11px;
  }
}

/* No mobile, controlar baseado na navegação */
@media (max-width: 768px) {

  /* Quando em subpasta, ocultar breadcrumb e mostrar botão de voltar */
  .breadcrumb.mobile-hidden {
    display: none !important;
  }

  .back-button.mobile-visible {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }

  /* Por padrão no mobile, o botão de voltar deve estar oculto */
  .back-button {
    display: none;
  }

  /* Por padrão no mobile, o breadcrumb deve estar visível */
  .breadcrumb {
    display: flex;
  }

  /* Margin no botão Início apenas no mobile */
  .home-link {
    margin: 2px 6px 0 5px;
    padding-right: 6px;
    font-size: 15px;
  }
}
