/* =========================== */
/* GLOBAL                     */
/* =========================== */
    :root {
  --primary-900: hsl(256, 43%, 7%);
  --primary-800: hsl(240, 24%, 13%);
  --primary-700: hsl(243, 26%, 15%);
  --primary-600: hsl(252, 9%, 22%);
  --primary-500: hsl(259, 13%, 28%);
  --primary-400: hsl(254, 22%, 32%);

  --primary-300: hsl(251, 13%, 68%);
  --primary-200: hsl(240, 15%, 76%);
  --primary-100: hsl(240, 21%, 88%);

  --neutral-100: hsl(0, 0%, 100%);

  --accent-400: hsl(93, 60%, 69%);
  --accent-500: hsl(93, 60%, 79%);

  --text-1: var(--neutral-100);
  --text-2: var(--primary-100);
  --text-3: var(--primary-200);

  --surface-1: var(--primary-900);
  --surface-2: var(--primary-800);
  --surface-3: var(--primary-700);

  --border-1: var(--primary-500); /* top */
  --border-2: var(--primary-600); /* bottom */
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background:url(space.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
}

/* Headings */
h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

/* Links */
a {
    color: white;
    text-decoration: none;
}
a:hover {
    color: #ed6a12;
}


/* =========================== */
/* Modal -new masterpsw        */
/* =========================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background-color: #2c2c2c;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.modal-box h3 {
    color: #f5f5f5;
    margin-bottom: 20px;
    font-size: 20px;
}
.new-db-button-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.new-db-button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    }
.new-db-button svg {
    width: 32px;
    height: 32px;
    fill:white;
}

.new-db-button:hover svg {
    fill: #ff7f2a;

}

/* =========================== */
/* INPUTS                     */
/* =========================== */

input[type="text"],input[type="search"],
input[type="password"], textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background-color: #3b3b3b;
    border: 1px solid #555;
    color:white;
    margin-bottom: 20px;
    font-size: 16px;
    box-sizing: border-box;
}

/* =========================== */
/* BUTTONS                    */
/* =========================== */

button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background-color: var(--accent-400);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    font-size: 16px;
    min-width: 110px;
    max-width: 150px;
    width: auto;
}

button:hover {
    background-color: var(--accent-500);
}

/* Cancel-Button */
button.cancel {
    background-color: #444;
    color: #eee;
}
button.cancel:hover {
    background-color: #666;
}

/* Button group */
.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-top: 10px;
}
.copy-icon {
    cursor: pointer;
    margin-left: 8px;
    font-size: 18px;
    color: #ed6a12;
    transition: color 0.2s;
}

.copy-icon:hover {
    color: #ffa14e;
}

.copied-msg {
    margin-left: 10px;
    font-size: 14px;
    color: #80ff80;
    font-weight: bold;
}

/* =========================== */
/* Content wrapper             */
/* =========================== */

.content-wrapper{
    margin:30px;
    padding: 20px;
    max-width: 500px;
    background-color: #292929;
    border-radius: 10px;
}



/* =========================== */
/* SEARCH RESULTS             */
/* =========================== */

#results div {
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

/* Trennlinie */
hr {
    border: none;
    border-top: 1px solid #444;
    margin: 20px 0;
}

/* =========================== */
/* MODAL                      */
/* =========================== */

#confirmModal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

#confirmBox {
    background: #2c2c2c;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #f5f5f5;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#confirmBox button {
    margin: 8px;
}

/* =========================== */
/* LOGIN PAGE                 */
/* =========================== */
/* Zentrierter Wrapper */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Login-Container: max. Breite, Kontrast */
.login-container {
    /*background-color: #292929;*/
    background-color: rgb(57, 85, 111, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 40px 25px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    text-align: center;
}

/* Überschrift */
.login-container h2 {
    font-size: 22px;
    margin-bottom: 30px;
    color: #ffffff;
}

/* Eingabefeld 
.login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #3b3b3b;
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 20px;
}

.login-container input::placeholder {
    color: #aaa;
}*/
.login-container input[type="password"] {
  color: var(--text-1);
  background: hsl(from var(--surface-1) h s l / 0.5);
  padding: 1ex 3ch;
  border-radius: 8px;
  border-color: transparent;  
}
.login-container input::placeholder {
   color: var(--text-3);
}

/* Login-Button */
.login-container button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background-color: #ed6a12;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-container button:hover {
    background-color: #ff7f2a;
}
/* =========================== */
/* RESPONSIVE                 */
/* =========================== */

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .login-container {
        padding: 30px 20px;
    }

    .login-container h2 {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .login-container button {
        font-size: 15px;
    }

    .button-row {
        flex-wrap: wrap;
    }

    button {
        width: auto;
        flex: 0 0 auto;
    }
    .content-wrapper{
    margin:30px auto;
    width: 80%;
}
}
