/* ---------------------------------------
   Allgemeine Grundstile (Reset & Layout)
---------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f4f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    padding: 20px;
    color: #333;
    width: 950px;
    margin: 0 auto;
}

ul {
    width: 100%;
}


/* ---------------------------------------
   Überschriften
---------------------------------------- */
h1, h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

h3 {
    margin-top: 30px;
}

/* ---------------------------------------
   Formulare & Eingabefelder
---------------------------------------- */
form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 950px;
    margin-bottom: 20px;
}

label {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

textarea,
input[type="password"],
input[type="file"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 1em;
    color: #333;
    background-color: #f9f9f9;
    resize: vertical;
}

/* ---------------------------------------
   Buttons
---------------------------------------- */
.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button,
.entry-copy-button,
.entry-back-button,
.submit-button{
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    margin-top: 10px;
}

.back-button,
.entry-back-button{
    background-color: #f44336;
}

.back-button:hover,
.entry-back-button:hover{
    background-color: #e53935;
}

.submit-button {
    background-color: #2ecc71 ;
}

.submit-button:hover{
    background-color: #44bd32 ;
}

.entry-copy-button {
  width: 122px;
  background-color: #0071e3;  /* Apple-Blau */
  color: white;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgb(0 113 227 / 0.39);
  transition: background-color 0.3s ease, transform 0.15s ease;
  user-select: none;
}

.entry-copy-button:hover {
  background-color: #005bb5;
  box-shadow: 0 6px 20px rgb(0 113 227 / 0.54);
}

.entry-copy-button:active {
  background-color: #004494;
  transform: scale(0.96);
  box-shadow: 0 3px 9px rgb(0 113 227 / 0.25);
}

/* Animation zum Anzeigen "Erfolg" */
.entry-copy-button.copied {
  background-color: #34c759;
  box-shadow: 0 6px 20px rgb(52 199 89 / 0.54);
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgb(52 199 89 / 0.54);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgb(52 199 89 / 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgb(52 199 89 / 0.54);
  }
}

/* ---------------------------------------
   Eintragsanzeige
---------------------------------------- */
.entry-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 950px;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-header {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.entry-text {
    white-space: pre-wrap;
    font-size: 1.5em;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    word-wrap: break-word;
    margin: 20px 0;
}

.downloadFile {
    color: black;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.downloadForm {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* ---------------------------------------
   Dateiliste (z. B. Startseite)
---------------------------------------- */
ul {
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 950px;
    margin-top: 20px;
}

.dashboardLi {
    background-color: #fff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    min-height: 54px;
}

.dashboardLi:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dashboardLi a {
    text-decoration: none;
    color: #333;
    font-size: 1.3em;
    width: 100%;
    display: block;
}

.dashboardLi a:hover {
    color: #4A4DA4;
}

.buttonNewEntry {
    background-color: #862ADB;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    margin-top: 10px;
}

.buttonNewEntry:hover {
    background-color: #4A4DA4;
}
/* ---------------------------------------
   Passwortabfrage
---------------------------------------- */
.password-form {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin-top: 30px;
}

.password-form label {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.password-form input[type="password"],
.password-form input[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

/* ---------------------------------------
   Fehlermeldungen
---------------------------------------- */
.error-message {
    color: #e53935;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 20px;
}

.success-message {
    color: #4CAF50;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 20px;
}