:root {
    --primary-color: #39FF14;
    --secondary-color: #1a1a1a;
    --bg-dark: #0a0a0a;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --error-color: #ff4444;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    color: var(--text-white);
}

.logo-qr {
    color: var(--primary-color);
}

/* Navigation & Language Toggle */
.nav {
    display: flex;
    align-items: center;
}

.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-toggle-btn:hover {
    background: rgba(57, 255, 20, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    object-fit: cover;
}

.hero {
    padding: 80px 0;
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.hero p {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.generator-box {
    max-width: 700px;
    margin: 0 auto 50px;
}

.input-group {
    display: flex;
    background: var(--secondary-color);
    padding: 10px;
    border-radius: 15px;
    border: 1px solid rgba(57, 255, 20, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

input[type="url"] {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 15px 20px;
    font-size: 1rem;
    outline: none;
}

#generate-btn {
    background: var(--primary-color);
    color: black;
    border: none;
    padding: 0 30px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

#generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.4);
}

.error-msg {
    color: var(--error-color);
    margin-top: 10px;
    font-size: 0.9rem;
    height: 20px;
}

.result-area {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeIn 0.5s ease;
}

.hidden {
    display: none !important;
}

.download-btn {
    background: var(--primary-color);
    color: black;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.4);
}

.qr-wrapper {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.btn-solid {
    background: var(--primary-color);
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: black;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--primary-color);
}

.w-100 {
    width: 100%;
}

.text-center {
    text-align: center;
}




.history-container {
    overflow-x: auto;
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 10px;
}

#history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

#history-table th {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

#history-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
}

.download-icon-btn {
    color: var(--primary-color);
    background: transparent;
    border: 1px solid var(--primary-color);
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.download-icon-btn:hover {
    background: var(--primary-color);
    color: black;
}

.delete-btn {
    color: #ff4444;
    background: transparent;
    border: 1px solid #ff4444;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    margin-left: 5px;
}

.delete-btn:hover {
    background: #ff4444;
    color: white;
}

.content-layout {
    max-width: 800px;
    margin: 0 auto 50px;
}

.info-section {
    margin-bottom: 40px;
}

.info-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-section ol,
.info-section p {
    color: var(--text-gray);
}

.info-section ol {
    padding-left: 20px;
}

.info-section li {
    margin-bottom: 10px;
}


.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(57, 255, 20, 0.1);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .content-layout {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }


    h1 {
        font-size: 2rem;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
        background: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    input[type="url"] {
        background: var(--secondary-color);
        border-radius: 10px;
        width: 100%;
        border: 1px solid rgba(57, 255, 20, 0.2);
    }

    #generate-btn {
        padding: 15px;
        width: 100%;
    }
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(57, 255, 20, 0.2);
    position: relative;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.1);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}