/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #0b0f1c;
  color: #d4d9e3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  align-items: center;
  justify-content: center;
}

/* Partículas no fundo */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -2; /* Fundo atrás de tudo */
  background: #0b0f1c;
}

/* Header */
header {
  background-color: rgba(16, 26, 64, 0.95);
  padding: 1.5rem 2rem;
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1;
  border-bottom: 1px solid rgba(78, 168, 222, 0.3);
  backdrop-filter: blur(6px);
}

header h1 {
  color: #4ea8de;
  font-size: 2rem;
  text-shadow: 0 0 15px rgba(78, 168, 222, 0.9);
  font-weight: bold;
}

header nav a {
  color: #d4d9e3;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s, text-shadow 0.3s;
}

header nav a:hover {
  color: #4ea8de;
  text-shadow: 0px 0px 10px #4ea8de;
}

header nav .btn {
  background: linear-gradient(135deg, #4ea8de, #3a8ac7);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0px 4px 12px rgba(78, 168, 222, 0.6);
}

header nav .btn:hover {
  background: linear-gradient(135deg, #3a8ac7, #4ea8de);
  transform: scale(1.1);
  box-shadow: 0px 6px 16px rgba(58, 138, 199, 0.8);
}

/* Container para Formulários e Conteúdo Principal */
.container {
  background: rgba(16, 26, 64, 0.95);
  border-radius: 12px;
  padding: 2.5rem;
  margin: 3rem auto;
  width: 90%;
  max-width: 500px;
  box-shadow: 0px 0px 15px 3px rgba(78, 168, 222, 0.9);
  color: #d4d9e3;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(78, 168, 222, 0.3);
  position: relative;
  z-index: 1;
  animation: fadeIn 1s ease-in-out;
}

.container h2 {
  color: #4ea8de;
  font-size: 2.5rem;
  text-shadow: 0px 0px 12px rgba(78, 168, 222, 1);
  margin-bottom: 1.5rem;
}

/* Formulário */
form label {
  color: #d4d9e3;
  font-weight: bold;
  margin-top: 1rem;
}

form input[type="email"],
form input[type="password"],
form input[type="text"],
form input[type="file"] {
  background: rgba(30, 40, 77, 0.8);
  color: #ffffff;
  padding: 0.8rem;
  width: 100%;
  border: 1px solid #4ea8de;
  border-radius: 8px;
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
  transition: border 0.3s, box-shadow 0.3s;
  box-shadow: 0px 4px 12px rgba(78, 168, 222, 0.6);
}

form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="text"]:focus,
form input[type="file"]:focus {
  border-color: #7fb9f4;
  outline: none;
  box-shadow: 0px 0px 10px rgba(127, 185, 244, 0.8);
}

/* Botão de ação */
.cta-btn {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background-color: #4ea8de;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0px 4px 12px rgba(78, 168, 222, 0.7);
  animation: pulse 2s infinite;
}

.cta-btn:hover {
  background-color: #3a8ac7;
  transform: scale(1.05);
  box-shadow: 0px 6px 16px rgba(58, 138, 199, 0.8);
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0px 4px 12px rgba(78, 168, 222, 0.7);
  }
  50% {
    box-shadow: 0px 4px 20px rgba(78, 168, 222, 1);
  }
  100% {
    box-shadow: 0px 4px 12px rgba(78, 168, 222, 0.7);
  }
}

/* Listas de Arquivos e Pastas */
.file-list,
.folder-list {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(30, 40, 77, 0.8);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(78, 168, 222, 0.6);
}

.file-list h3,
.folder-list h3 {
  color: #4ea8de;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #4ea8de;
  padding-bottom: 0.5rem;
}

.file-list ul,
.folder-list ul {
  list-style: none;
  padding: 0;
}

.file-list li,
.folder-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(40, 49, 77, 0.9);
  padding: 0.8rem 1.2rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  transition: background 0.3s, transform 0.2s;
}

.file-list li:hover,
.folder-list li:hover {
  background: rgba(59, 69, 106, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(78, 168, 222, 0.7);
}

.file-list li a,
.folder-list li a {
  color: #7fb9f4;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.file-list li a:hover,
.folder-list li a:hover {
  color: #4ea8de;
  text-shadow: 0px 0px 8px #4ea8de;
}

/* Footer */
.footer {
  background-color: #0a0e27;
  color: #d4d9e3;
  text-align: center;
  padding: 1rem;
  width: 100%;
  max-width: 1200px;
  font-size: 0.9rem;
  z-index: 1;
  margin-top: auto;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}
/* Estilo dos botões de ação */
.cta-btn {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #4ea8de, #3a8ac7);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0px 4px 8px rgba(78, 168, 222, 0.5), 0 0 8px rgba(78, 168, 222, 0.6);
  text-shadow: 0 0 6px rgba(78, 168, 222, 0.8);
}

.cta-btn:hover {
  background: linear-gradient(135deg, #3a8ac7, #4ea8de);
  transform: scale(1.05);
  box-shadow: 0px 6px 12px rgba(78, 168, 222, 0.8), 0 0 12px rgba(78, 168, 222, 1);
}

/* Ajuste dos botões Login e Registrar-se na tela inicial */
.container a {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin: 0.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #4ea8de, #3a8ac7);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0px 4px 8px rgba(78, 168, 222, 0.5), 0 0 8px rgba(78, 168, 222, 0.6);
  text-shadow: 0 0 6px rgba(78, 168, 222, 0.8);
}

.container a:hover {
  background: linear-gradient(135deg, #3a8ac7, #4ea8de);
  transform: scale(1.05);
  box-shadow: 0px 6px 12px rgba(78, 168, 222, 0.8), 0 0 12px rgba(78, 168, 222, 1);
}
/* Estilo para o botão de exclusão */
.file-list button {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 5px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0px 4px 8px rgba(231, 76, 60, 0.5), 0 0 8px rgba(231, 76, 60, 0.6);
  text-shadow: 0 0 4px rgba(231, 76, 60, 0.8);
}

.file-list button:hover {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  transform: scale(1.05);
  box-shadow: 0px 6px 12px rgba(231, 76, 60, 0.8), 0 0 12px rgba(231, 76, 60, 1);
}

/* Estilo para o botão de escolher arquivo */
.upload-form input[type="file"] {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  background: linear-gradient(135deg, #4ea8de, #3a8ac7);
  color: #d4d9e3;
  font-weight: bold;
  border: 1px solid #4ea8de;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0px 4px 8px rgba(78, 168, 222, 0.5);
}

.upload-form input[type="file"]::-webkit-file-upload-button {
  visibility: hidden;
}

.upload-form input[type="file"]:hover {
  background: linear-gradient(135deg, #3a8ac7, #4ea8de);
  box-shadow: 0px 6px 12px rgba(78, 168, 222, 0.8);
}
.upload-progress {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    background: rgba(16, 26, 64, 0.95);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(78, 168, 222, 0.8), 0 0 40px rgba(78, 168, 222, 0.5);
    animation: glow 1.5s infinite alternate;
}

.progress-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(30, 40, 77, 0.8);
    box-shadow: 0px 0px 10px rgba(78, 168, 222, 0.8);
    border: 2px solid rgba(78, 168, 222, 0.7);
}

.progress-circle::before,
.progress-circle::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(78, 168, 222, 0.5);
}

.progress-circle::before {
    width: 90%;
    height: 90%;
    animation: spin-reverse 2s linear infinite;
    border-top-color: transparent;
    border-left-color: transparent;
}

.progress-circle::after {
    width: 70%;
    height: 70%;
    animation: spin 4s linear infinite;
    border-right-color: transparent;
    border-bottom-color: transparent;
}

#progressText {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7fb9f4;
    text-shadow: 0px 0px 8px rgba(127, 185, 244, 0.8);
    z-index: 10;
}

/* Animações de rotação e brilho */
@keyframes glow {
    from {
        box-shadow: 0 0 15px rgba(78, 168, 222, 0.5), 0 0 30px rgba(78, 168, 222, 0.3);
    }
    to {
        box-shadow: 0 0 25px rgba(78, 168, 222, 0.8), 0 0 50px rgba(78, 168, 222, 0.6);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}
/* Estilos para o modal de confirmação */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 26, 64, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(30, 40, 77, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(78, 168, 222, 0.7), 0 0 30px rgba(78, 168, 222, 0.5);
    text-align: center;
    max-width: 400px;
    color: #d4d9e3;
    animation: fadeIn 0.3s ease;
}

.modal-content p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #7fb9f4;
    text-shadow: 0px 0px 8px rgba(127, 185, 244, 0.8);
}

.cta-btn {
    margin: 10px;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}

.confirm-btn {
    background: linear-gradient(135deg, #ff4e50, #c13838);
    color: white;
    box-shadow: 0 0 10px rgba(255, 78, 80, 0.6);
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #c13838, #ff4e50);
    box-shadow: 0 0 15px rgba(255, 78, 80, 0.8);
}

.cancel-btn {
    background: linear-gradient(135deg, #4ea8de, #3a8ac7);
    color: white;
    box-shadow: 0 0 10px rgba(78, 168, 222, 0.6);
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #3a8ac7, #4ea8de);
    box-shadow: 0 0 15px rgba(78, 168, 222, 0.8);
}

/* Animação de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* Estilo para o modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 26, 64, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(30, 40, 77, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(78, 168, 222, 0.7), 0 0 30px rgba(78, 168, 222, 0.5);
    text-align: center;
    max-width: 400px;
    color: #d4d9e3;
}

.cta-btn {
    margin: 10px;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.confirm-btn {
    background: linear-gradient(135deg, #ff4e50, #c13838);
    color: white;
}

.cancel-btn {
    background: linear-gradient(135deg, #4ea8de, #3a8ac7);
    color: white;
}

/* Estilo do balão de progresso */
.upload-progress {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(16, 26, 64, 0.95);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(78, 168, 222, 0.8), 0 0 40px rgba(78, 168, 222, 0.5);
}

.progress-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(30, 40, 77, 0.8);
    box-shadow: 0px 0px 10px rgba(78, 168, 222, 0.8);
    border: 2px solid rgba(78, 168, 222, 0.7);
}

#progressText {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7fb9f4;
    text-shadow: 0px 0px 8px rgba(127, 185, 244, 0.8);
}

/* Animação de explosão */
@keyframes explode {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); box-shadow: 0 0 10px rgba(255, 100, 50, 0.7), 0 0 30px rgba(255, 180, 0, 0.5); }
    100% { opacity: 0; transform: scale(2); box-shadow: 0 0 50px rgba(255, 80, 0, 0.5), 0 0 100px rgba(255, 0, 0, 0.3); }
}

.explosion-effect {
    animation: explode 0.6s ease-out forwards;
}
/* Estilo para o contêiner de seleção de arquivo e botão de exclusão */
.file-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.file-input-container input[type="file"] {
    flex: 1;
}

.clear-btn {
    background: linear-gradient(135deg, #ff4e50, #c13838);
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(255, 78, 80, 0.5);
}

.clear-btn:hover {
    background: linear-gradient(135deg, #c13838, #ff4e50);
    box-shadow: 0 6px 12px rgba(255, 78, 80, 0.8);
}
/* Container de upload de arquivos */
.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
}

/* Contêiner de seleção de arquivo e botão de exclusão */
.file-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.file-input-container input[type="file"] {
    flex: 1;
    padding: 0.5rem;
}

/* Botão "Excluir Ficheiro" */
.clear-btn {
    background: linear-gradient(135deg, #ff4e50, #c13838);
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(255, 78, 80, 0.5);
}

.clear-btn:hover {
    background: linear-gradient(135deg, #c13838, #ff4e50);
    box-shadow: 0 6px 12px rgba(255, 78, 80, 0.8);
}

/* Botão "Upload de Arquivo" */
.cta-btn {
    width: 100%;
    max-width: 200px;
    background: linear-gradient(135deg, #4ea8de, #3a8ac7);
    color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 4px 12px rgba(78, 168, 222, 0.5);
    transition: background 0.3s, box-shadow 0.


/* Animações de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* Efeitos de hover aprimorados */
.nav-item:hover, .btn:hover {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease-in-out;
}

/* Brilho suave para o título */
.title-glow {
    text-shadow: 0 0 15px #00d4ff, 0 0 30px #00ffab;
}

/* Adicionando animações aos elementos */
.animated-section {
    animation: fadeIn 1.5s ease-in-out forwards;
}

