.Logoimg {
    width: 90px;
    float: left;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    min-height: 100vh;
}

.container {
    margin: 15px auto;
    padding: 50px 30px 10px 30px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    line-height: 23px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#Logo {
    width: 80px;
    float: left;
}

#LogoText {
    float: left;
    padding: 16px;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

hr.header {
    border: 2px solid #fff;
    color: #fff;
    opacity: 0.7;
}

.txt_password {
    color: #28a745;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
}

.Phoneticr {
    height: 150px;
}

.checkbox_label {
    font-weight: 500;
    margin-bottom: 8px;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.GenerateBtn {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
}

.GenerateBtn:hover {
    background: linear-gradient(45deg, #20c997, #28a745);
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-select option {
    background: #333;
    color: #fff;
}

.password-strength {
    display: block;
    margin-top: 4px;
    font-weight: bold;
    font-size: 12px;
}

.password-strength.weak {
    color: #dc3545 !important;
}

.password-strength.medium {
    color: #ffc107 !important;
}

.password-strength.strong,
.password-strength.very-strong {
    color: #28a745 !important;
}

input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

label {
    cursor: pointer;
    user-select: none;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

footer a {
    color: #28a745;
    text-decoration: none;
}

footer a:hover {
    color: #20c997;
    text-decoration: underline;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.btn:focus,
.form-control:focus,
.form-select:focus,
input[type="checkbox"]:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* Keyboard navigation improvements */
.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.5);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: #000;
        color: #fff;
    }
    
    .container {
        background: #000;
        border: 2px solid #fff;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .btn:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 30px 20px;
    }
    
    #LogoText {
        font-size: 1.5rem;
        padding: 8px;
    }
    
    .Logoimg {
        width: 60px;
    }
}

/* Keyboard shortcuts section */
details {
    margin-top: 15px;
}

summary {
    cursor: pointer;
    font-weight: bold;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
}

summary:hover {
    color: #28a745;
}

kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #fff;
}

details ul {
    list-style: none;
    padding-left: 0;
}

details li {
    padding: 4px 0;
    border-left: 3px solid #28a745;
    padding-left: 12px;
    margin: 8px 0;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 0 4px 4px 0;
}
