/* Keep your existing CSS and add these password-specific styles at the end */



* {
    box-sizing: border-box;
}

body {
font-family: Arial, sans-serif;
padding: 20px;
max-width: 600px;
margin: 0 auto;
background-color: #f9f9f9;
}

.kxg{
color: black;
background-color: #dbdee0;
}
.kxg:active, .kxg:hover{
background-color: #c4c2bc;
}

.container {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 2rem;
}

h1 {
font-size: 1.5em;
text-align: center;
color: #333;
margin-bottom: 10px;
}

.guide-top {
text-align: center;
margin-bottom: 20px;
}

.guide-top p {
font-size: 0.9em;
color: #666;
margin-bottom: 10px;
}

.tabs {
display: flex;
justify-content: center;
margin-bottom: 20px;
}

.tab-button {
padding: 10px 20px;
background-color: #e9ecee;
color: #c6ccc0;
border: none;
cursor: pointer;
font-size: 1em;
transition: background-color 0.3s;
border-radius: 4px 4px 0 0;
}

.tab-button.active {
background-color: #007bff;
color: white;
}

.tab-button:hover:not(.active) {
background-color: #d3d9df;
}

.tab-content {
display: none;
}

.tab-content.active {
display: block;
}

.instructions {
font-size: 0.9em;
color: #666;
text-align: center;
margin-bottom: 15px;
}

.form-section {
display: flex;
flex-direction: column;
gap: 15px;
position: relative;
}

label {
font-weight: bold;
color: #333;
}

input, textarea {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 1em;
}

textarea {
resize: vertical;
min-height: 100px;
}

.wrapped-button {
display: inline-block;
padding: 5px 10px;
margin: 0;
white-space: nowrap;
}

button {
padding: 10px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1em;

}

button:hover {
background-color: #0056b3;
}

button.secondary {
background-color: #6c757d;
}

button.secondary:hover {
background-color: #5a6268;
}

.key-group {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
}

.key-group span {
font-weight: bold;
color: #333;
}

/* Notification Styles */
.notification-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3);
display: none;
z-index: 999;
}

.notification-overlay.active {
display: block;
}

.notification {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 15px 25px;
border-radius: 4px;
font-size: 0.9em;
text-align: center;
opacity: 0;
transition: opacity 0.5s ease-out;
z-index: 1000;
max-width: 80%;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
display: none; /* Hide by default */
}

.notification.active {
display: block; /* Show when active */
opacity: 1; /* Fully visible */
}

.notification.success {
background-color: #d4edda;
color: #155724;
}

.notification.error {
background-color: #f8d7da;
color: #721c24;
}

.notification.fade-out {
opacity: 0; /* Fade out */
}

.help-btn {
padding: 8px 16px;
font-size: 0.9em;
}

.video-section {
margin: 20px 0;
text-align: center;
}

.video-section iframe {
width: 100%;
height: 315px;
border-radius: 8px;
}

.guide-bottom {
margin-top: 20px;
padding: 15px;
background: #f4f4f4;
border-radius: 8px;
}

.guide-bottom h3 {
font-size: 1.1em;
color: #333;
margin-top: 0;
}

.guide-bottom p, .guide-bottom ul {
font-size: 0.85em;
color: #333;
line-height: 1.5;
}

.guide-bottom ul {
padding-left: 20px;
}

/* Modal Styles */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: none;
z-index: 1000;
}

.modal-overlay.active {
display: block;
}

.modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
padding: 20px;
border-radius: 8px;
max-width: 500px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
z-index: 1001;
display: none;
}

.modal.active {
display: block;
}

.modal-content h2 {
font-size: 1.2em;
margin-top: 0;
color: #333;
}

.modal-content p, .modal-content ul {
font-size: 0.9em;
color: #333;
line-height: 1.5;
}

.modal-content ul {
padding-left: 20px;
}

.modal-close {
position: absolute;
top: 10px;
right: 10px;
background: #dc3545;
color: white;
border: none;
border-radius: 50%;
width: 24px;
height: 24px;
line-height: 24px;
text-align: center;
cursor: pointer;
font-size: 1em;
}

.modal-close:hover {
background: #c82333;
}

@media (max-width: 600px) {
body {
padding: 10px;
}

h1 {
font-size: 1.3em;
}

.tab-button {
font-size: 0.9em;
padding: 8px 15px;
}

input, textarea, button {
font-size: 0.9em;
}

.key-group span {
font-size: 0.9em;
}

.video-section iframe {
height: 200px;
}

.modal {
width: 95%;
padding: 15px;
}

.modal-content h2 {
font-size: 1.1em;
}

.modal-content p, .modal-content ul {
font-size: 0.85em;
}
}

@keyframes fadeOut {
from { opacity: 1; }
to { opacity: 0; }
}

/* Navigation Bar */
.navbar {
background: #fff;
padding: 10px 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
/*display: flex;*/
/*justify-content: space-between;*/
/*align-items: center;*/
}

.nav-logo {
font-size: 1.2em;
font-weight: bold;
color: #333;
}

.nav-links {
list-style: none;
display: flex;
ga7p: 15px;
margin: 0;
padding: 0;
font-size: 15px;
}

.nav-links li a {
color: #333;
text-decoration: none;
font-size: 0.9em;
}

.nav-links li a:hover {
color: #007bff;
}

.hgm{
background-color: #f0f0f0;;
}

/* Footer */
.footer {
background: #f4f4f4;
padding: 20px;
text-align: center;
margin-top: 20px;
border-top: 1px solid #ddd;
}

.footer p {
margin: 0;
fo5nt-size: 0.85em;
color: #666;
}

.footer-links {
list-style: none;
padding: 0;
margin: 10px 0 0;
display: flex;
justify-content: center;
gap: 15px;
}

.footer-links li a {
color: #333;
text-decoration: none;
font-size: 0.85em;
}

.footer-links li a:hover {
color: #007bff;
}

/* Donation Section (for Support Page) */
.donation-section {
margin: 20px 0;
}

.donation-section h3 {
font-size: 1.1em;
color: #333;
margin-bottom: 10px;
}

.donation-item {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
}

.donation-item input {
flex: 1;
background: #f4f4f4;
cursor: pointer;
}

.donation-item button {
width: auto;
padding: 8px 12px;
font-size: 0.9em;
}

@media (max-width: 600px) {
.navbar {
flex-direction: column;
gap: 10px;
}

.nav-li3nks {
flex-direction: column;
align-items: center;
/*font-weight: bold;*/
}

.donation-item {
flex-direction: column;
align-items: stretch;
}
}

.kmr{
color: black;
}

.kmr:hover{
color: #007bff;
}

/* Password Generator Styles */
.password-line {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 29px;
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    justify-content: center;
}

.password-line span:first-child {
    font-size: 1.5em;
    user-select: text;
    text-align: center;
    flex-grow: 1;
}

.password-line span:last-child {
    cursor: pointer;
    margin-left: 10px;
    user-select: none;
}

.message {
    color: #666;
    text-align: center;
    padding: 10px;
}

/* Ensure buttons match existing style */
button#generateBtn, button#clearBtn {
    padding: 10px;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
}

button#generateBtn {
    background-color: #007bff;
    color: white;
    border: none;
}

button#generateBtn:hover {
    background-color: #0056b3;
}

button#clearBtn {
    background-color: #6c757d;
}

button#clearBtn:hover {
    background-color: #5a6268;
}