/* Allgemeine Styles */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f0f0f0;
  color: #333;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #333;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 30px;
  font-family: 'Roboto', sans-serif;
}

/* Link-Container Styles */
.link-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

/* Link-Box Styles */
.link-box {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
  width: 180px;
  height: 180px;
  text-align: center;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.link-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* Link Styles */
a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-weight: 500;
  font-size: 1.1rem;
  text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
  transition: color 0.3s ease;
}

/* Icon Styles */
.link-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

/* Hover-Effekt für den Text */
a:hover {
  color: #007bff;
}

/* Login-Formular Styles */
form {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* Label Styles */
label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

/* Input Styles */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Button Styles */
button {
  width: 100%;
  padding: 0.75rem;
  color: #000;
  background-color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

button:hover {
  background-color: #f0f0f0;
}

/* Fortschrittsanzeige Text Styles */
.progress-bar-used,
.progress-bar-free {
  font-size: 1rem;
  height: 25px;
  line-height: 25px;
}

/* Darkmode Styles */
body.darkmode {
  background-color: #222;
  color: #ddd;
}

body.darkmode a {
  color: #ddd;
  text-shadow: none;
}

/* Darkmode für die Link-Boxen */
body.darkmode .link-box {
  background-color: #444;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-buttons button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Edit-Modus Buttons ohne Hintergrund */
.link-box.edit-mode .edit-btn {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  color: #fff;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;
}
.link-box.edit-mode .delete-btn {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  color: #fff;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;
}
/* In Lichtmodus sollen die Buttons dunkel (#333) erscheinen */
body:not(.darkmode) .link-box.edit-mode .edit-btn,
body:not(.darkmode) .link-box.edit-mode .delete-btn {
  color: #333;
}

/* Plus-Symbol für neuen Link: standardmäßig ausblenden */
.link-box.add-link {
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  color: #007bff;
  cursor: pointer;
  background-color: #e9e9e9;
}

/* Storage-Anzeige Styles */
.storage-container {
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
body.darkmode .storage-container {
  background: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.storage-info {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 5px;
  color: #333;
}
body.darkmode .storage-info {
  color: #ddd;
}
.storage-bar {
  width: 100%;
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}
body.darkmode .storage-bar {
  background: #555;
}
.storage-bar-free {
  height: 100%;
  background: #4caf50;
  width: 0;
  transition: width 1s ease-in-out;
}
body.darkmode .storage-bar-free {
  background: #8bc34a;
}
