
/* Hele siden */
body {
    margin: 0;
    background-color: #101728;
    color: white;
    font-family: Arial, sans-serif;
}

/* SecurePass overskrift */
h1 {
    text-align: center;
    font-size: 36px;
    margin-top: 40px;
    margin-bottom: 10px;
}

/* Centrerer generatoren med Flexbox */
.container {
    display: flex;
    justify-content: center;
    padding: 30px 20px;
}

/* Password Generator boksen */
.box {
    background-color: #151c30;
    border: 1px solid #51429b;
    border-radius: 12px;
    padding: 25px;
    width: 450px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Overskrift inde i boksen */
.box h2 {
    color: #a78bfa;
    margin-top: 0;
    margin-bottom: 25px;
}

/* Passwordfelt og kopiér-knap */
.result {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.result input {
    flex: 1;
    min-width: 0;
    background-color: #101728;
    color: white;
    border: 1px solid #303b58;
    border-radius: 7px;
    padding: 12px;
    font-size: 15px;
}

/* Generelle knapper */
button {
    background-color: #7950f2;
    color: white;
    border: none;
    border-radius: 7px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
}

/* Knap når musen holdes over */
button:hover {
    background-color: #6840e0;
}

/* Skabelonformular */
.template-form {
    margin-top: 20px;
    margin-bottom: 20px;
}

.template-form label {
    display: block;
    margin-bottom: 8px;
}

.template-form select {
    background-color: #101728;
    color: white;
    border: 1px solid #303b58;
    border-radius: 7px;
    padding: 10px;
    margin-right: 5px;
}

/* Indstillinger */
fieldset {
    border: none;
    padding: 0;
    margin: 20px 0;
}

legend {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Passwordlængde */
#length {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: #101728;
    color: white;
    border: 1px solid #303b58;
    border-radius: 7px;
    padding: 10px;
    margin: 10px 0 20px;
}

/* Valg af tegn */
fieldset label {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
}

/* Lilla checkboxes */
input[type="checkbox"] {
    accent-color: #7950f2;
    margin-right: 8px;
}

/* Generér-knappen fylder hele bredden */
form[action="/securepass/generate"] > button {
    width: 100%;
    margin-top: 15px;
    font-weight: bold;
}

/* Beskeder */
.message {
    color: #fca5a5;
}

.copied {
    color: #86efac;
}

/* Passwordstyrke */
.strength-Svag {
    color: #f87171;
}

.strength-Middel {
    color: #fbbf24;
}

.strength-Stærk {
    color: #4ade80;
}

/* Mindre skærme */
@media (max-width: 600px) {
    .container {
        padding: 20px 10px;
    }

    .box {
        padding: 20px;
    }
}

/* SecurePass overskrift og skjold */
.securepass-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.securepass-header h1 {
    margin: 0;
    color: white;
    font-size: 42px;
}

.securepass-header h1 span {
    color: #8B5CF6;
}

.securepass-logo {
    width: 42px;
    height: 48px;
    flex-shrink: 0;
}