

* {
    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;
}

/* 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;
}

/* Upload Page Specific Styles */
.tab-content {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    display: none;
}

.tab-content.active {
    display: block;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-section label {
    font-weight: bold;
    color: #333;
}

.form-section input[type="file"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}

.notification {
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
    margin-top: 15px;
}

.notification.success {
    background-color: #d4edda;
    color: #155724;
}

.notification.error {
    background-color: #f8d7da;
    color: #721c24;
}

.notification p {
    margin: 0 0 10px 0;
}

.notification input[type="text"] {
    width: calc(100% - 90px);
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
    margin-right: 10px;
}

.copy-btn {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.copy-btn:hover {
    background-color: #0056b3;
}

@media (max-width: 600px) {
    .form-section input[type="file"],
    .notification input[type="text"] {
        font-size: 0.85em;
    }

    .copy-btn {
        padding: 6px 10px;
        font-size: 0.85em;
    }
}

/* Spinner Styles */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #007bff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Upload Page Specific Styles */
.tab-content {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    display: none;
}

.tab-content.active {
    display: block;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.form-section label {
    font-weight: bold;
    color: #333;
}

.form-section input[type="file"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}

.form-section button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.notification {
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
    margin-top: 15px;
}

.notification.success {
    background-color: #d4edda;
    color: #155724;
}

.notification.error {
    background-color: #f8d7da;
    color: #721c24;
}

.notification p {
    margin: 0 0 10px 0;
}

.notification input[type="text"] {
    width: calc(100% - 90px);
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
    margin-right: 10px;
}

.copy-btn {
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.copy-btn:hover {
    background-color: #0056b3;
}

@media (max-width: 600px) {
    .form-section input[type="file"],
    .notification input[type="text"] {
        font-size: 0.85em;
    }

    .copy-btn {
        padding: 6px 10px;
        font-size: 0.85em;
    }

    .spinner {
        width: 20px;
        height: 20px;
    }
}