body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

/* Navbar */
.navbar {
    width: 100%;
    background: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.btn-vault {
    background: #3498db;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-vault:hover {
    background: #2980b9;
}

.btn-profil {
    background: #15CE4C;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-profil:hover {
    background: #14C048;
}

.btn-logout {
    background: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #c0392b;
}

/* Auth Container */
.auth-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    margin-top: 5rem;
    text-align: center;
}

.auth-container h1 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.input-group {
    margin-bottom: 1rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

button:hover {
    background: #2980b9;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.8rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 0.8rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Generator Container */
.generator-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    margin-top: 3rem;
    text-align: center;
}

.result-container {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

#password-display {
    flex: 1;
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    border: 2px solid #3498db;
    border-radius: 8px;
    text-align: center;
    background: #f9f9f9;
}

#copy-btn {
    width: auto;
    margin: 0;
    padding: 0 1rem;
    background: #2ecc71;
    font-size: 1.2rem;
}

#copy-btn:hover {
    background: #27ae60;
}

#copy-btn-password {
    width: 100%;
    margin-top: 5px;
    padding: 8px 15px;
    background: #2ecc71;
    font-size: 1.2rem;
}

#copy-btn-password:hover {
    background: #27ae60;
}

.settings-password {

    text-align: right;

}

.settings {
    text-align: left;
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #eee;
}

.setting-item {
    margin-bottom: 1.5rem;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#length {
    width: 100%;
    cursor: pointer;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.option input {
    cursor: pointer;
}

.profil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.profil-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 5px solid #4a90e2;
    position: relative;
}

/*Page Password*/

.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.password-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 5px solid #4a90e2;
    position: relative;
}
.password-card h3 {
    margin-top: 0;
    color: #333;
    display: flex;

}

.name-of-service {

    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;

}

.form-modif-service-name {

    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;

}

.form-modif-service-name input {

    width: 55%;
    padding: 5px;
    border-radius: 5px;
    border: 2px solid #3498db;

}

.password-card p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-edit {
    background:  #4a90e2;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-edit:hover {
    background: #417DC4;
}

.btn-reveal {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
.btn-delete {
    background: #e74c3c;
    color: white;
    border: none;
    margin-top: 15px;
    margin-left: 5px;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-delete:hover {
    background: #c0392b;

}

.btn-modif {

    background: #3498db;
    padding: 5px;
    border-radius: 5px;
    width: 40%;
    transition: 0.3s;
    margin-top: 0px;

}

.btn-modif:hover {

    background: #2980b9;

}

.hidden-pass {
    font-family: monospace;
    background: #eee;
    padding: 5px;
    display: none;
    margin-top: 10px;
    word-break: break-all;
    border-radius: 4px;
}