* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 20px 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url("Chrome.gif") center center / cover no-repeat;
    filter: blur(1px);
    z-index: -2;
    opacity: 0.6;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 900px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
}

h1.name {
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 600;
}

p.description {
    opacity: 0.8;
    font-size: 16px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.password-section {
    width: 100%;
}

.password-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#password {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    font-family: monospace;
    width: 100%;
    outline: none;
    overflow: auto;
    white-space: nowrap;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.icon-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-button:hover {
    background: rgba(87, 87, 87, 0.8);
    transform: scale(1.05);
}

.icon-button svg {
    width: 22px;
    height: 22px;
}

.password-strength {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.strength-meter {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.strength-indicator {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-label {
    text-align: right;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

#passwordForm {
    width: 100%;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.length-option {
    width: 100%;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 18px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
}

.toggle-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.toggle-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 10px;
}

.toggle-wrapper {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 34px;
    transition: all 0.4s ease;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.toggle-checkbox:checked + .toggle-slider {
    background-color: rgba(87, 87, 87, 0.8);
}

.toggle-checkbox:checked + .toggle-slider::before {
    transform: translateX(28px);
}

.weak {
    background-color: #ff4757;
    width: 33%;
}

.medium {
    background-color: #ffa502;
    width: 66%;
}

.strong {
    background-color: #2ed573;
    width: 100%;
}

/* Benachrichtigung mit Glaseffekt */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    width: auto;
    max-width: 250px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(0);
    animation: slideDown 2s ease forwards;
}

.notification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: #2ed573;
    animation: shrink 2s linear forwards;
}

@keyframes slideDown {
    0% { 
        opacity: 0;
        transform: translateY(-10px);
    }
    10% { 
        opacity: 1;
        transform: translateY(0);
    }
    90% { 
        opacity: 1;
        transform: translateY(0);
    }
    100% { 
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes shrink {
    from { width: 100%; }
    to { width: 0%; }
}

@media (min-width: 768px) {
    .toggle-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .container {
        padding: 20px;
        width: 95%;
    }
    
    h1.name {
        font-size: 26px;
    }
    
    #password {
        font-size: 18px;
    }
    
    .icon-button {
        width: 40px;
        height: 40px;
    }
    
    .icon-button svg {
        width: 18px;
        height: 18px;
    }
    
    label {
        font-size: 16px;
    }
    
    .toggle-label {
        font-size: 14px;
    }
}