﻿/* styles.css */
body {
    font-family: "Roboto", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    background-color: #cf0204;
    color: white;
    padding: 20px;
    border-radius: 8px;
}

    header h1 {
        margin: 0;
        font-size: 28px;
        text-transform: uppercase;
    }

    header .subtitle {
        font-size: 16px;
        margin-top: 5px;
        font-weight: 300;
    }

.content {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer {
    background-color: #be393a;
    color: #fff;
    padding: 56px 20px;
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    margin: 10px;
}

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 10px;
        color: #fff;
    }

    .footer-section ul {
        list-style: none;
        padding: 0;
    }

        .footer-section ul li {
            margin-bottom: 8px;
        }

            .footer-section ul li a {
                text-decoration: none;
                color: #fff;
                transition: color 0.3s;
            }

                .footer-section ul li a:hover {
                    color: #cf0204;
                }

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
}

    .footer-bottom p {
        margin: 0;
        color: #aaa;
    }

aside {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    aside h2 {
        text-align: center;
        font-size: 20px;
        margin-bottom: 20px;
        color: #cf0204;
    }


.radio-group {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

    .radio-group input[type="radio"] {
        margin-right: 5px;
    }

    .radio-group label {
        font-size: 16px;
        color: #333;
        cursor: pointer;
        transition: color 0.3s ease;
    }

        .radio-group label:hover {
            color: #cf0204;
        }

.form-section {
    margin-top: 20px;
}

.image-preview {
    margin-top: 20px;
    text-align: center;
}

    .image-preview img {
        max-width: 200px;
        height: auto;
        border: 2px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

.upload-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.image-item {
    cursor: pointer;
    border: 2px solid transparent;
    padding: 5px;
    transition: border 0.3s;
}

.hidden-file-upload {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.custom-upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #cf0204;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

    .custom-upload-btn:hover {
        background-color: #F08080;
    }

.file-name {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.image-item.selected {
    border-color: blue;
}

.gen-btn {
    background-color: #cf0204;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 15px;
    width: 100%;
}

    .gen-btn:hover {
        background-color: #F08080;
    }

.template-file {
    margin-top: 20px;
}

.template-link {
    text-decoration: none;
    color: red;
    font-weight: bold;
}

    .template-link:hover {
        text-decoration: underline;
    }

.qr-preview {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

    .qr-preview h2 {
        font-size: 20px;
        margin-bottom: 20px;
        color: #cf0204;
    }

/*.qr-image img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
}*/
.navbar {
    background-color: #fff;
    color: white;
    padding: 20px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.navbar-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo a {
    color: black;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.navbar-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

    .navbar-menu li {
        margin: 0 10px;
        position: relative;
        font-size: 17px;
    }

    .navbar-menu a {
        color: black;
        text-decoration: none;
        font-size: 16px;
        padding: 5px 10px;
        transition: all 0.3s;
        border-radius: 5px;
    }

        /* Hover Effect */
        .navbar-menu a:hover {
            color: #cf0204;
            font-weight: bold;
            font-size: 18px;
        }

        /* Hiệu ứng gạch chân */
        .navbar-menu a:after {
            display: block;
            width: 0;
            height: 2px;
            background: #cf0204;
            transition: width 0.3s;
            position: absolute;
            bottom: -5px;
            left: 0;
        }

        .navbar-menu a:hover:after,
        .navbar-menu a.active:after {
            width: 100%;
        }

        .navbar-menu a.active {
            color: #cf0204;
            font-weight: bold;
            font-size: 18px;
        }


        .navbar-menu a:focus,
        .navbar-menu a:active {
            color: #cf0204 !important;
            font-weight: bold;
            font-size: 18px;
            outline: none;
        }

    .navbar-menu .highlight {
        background-color: #fff;
        border: 2px solid #cf0204;
        padding: 8px 20px;
        border-radius: 25px;
        font-weight: bold;
        transition: all 0.3s ease;
    }


        .navbar-menu .highlight:hover {
            background-color: #cf0204;
            color: white !important;
        }

        .navbar-menu .highlight.active {
            background-color: #cf0204;
            color: white !important;
        }


.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

    .menu-icon span {
        display: block;
        width: 25px;
        height: 3px;
        background: black;
        transition: all 0.3s;
    }

.download-options {
    margin-top: 20px;
}

.qr-image {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

#qrpreviewcontainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-code-label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding-top: 5px;
}

.qr-code-img {
    width: 120px;
    height: 120px;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-button-container {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

.header-logo {
    width: 50px;
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.download-btn {
    background-color: #cf0204;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .download-btn:hover {
        background-color: #cf0204;
    }

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    aside,
    .qr-preview {
        margin-bottom: 20px;
    }

    .custom-upload-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .file-name {
        font-size: 12px;
    }

    header h1 {
        font-size: 24px;
    }

    header .subtitle {
        font-size: 14px;
    }

    .menu-icon {
        display: flex;
    }

    .navbar-menu {
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 2px;
        background: #fff;
        width: 200px;
        display: none;
        z-index: 10;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

        .navbar-menu li {
            text-align: left;
            padding: 0;
        }

            .navbar-menu li:last-child {
                border-bottom: none;
            }

        .navbar-menu a {
            padding: 10px 20px;
            display: block;
            border-radius: 0;
            font-size: 16px;
            color: #333;
            margin-left: -10px;
            border: none !important;
        }

            .navbar-menu a.active {
                background-color: #cf0204;
                color: white;
                border-radius: 0;
                width: 89%;
                display: block;
                text-align: left;
                padding: 10px 20px;
            }

            .navbar-menu a:hover {
                background-color: #cf0204;
                color: white;
                width: 89%;
            }



    .menu-toggle:checked ~ .navbar-menu {
        display: flex;
    }

    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }

    header .subtitle {
        font-size: 12px;
    }

    .custom-upload-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .gen-btn {
        font-size: 15px;
        padding: 8px 16px;
    }

    .file-name {
        font-size: 10px;
    }

    .qr-preview h2 {
        font-size: 18px;
    }

    .download-btn {
        font-size: 12px;
        padding: 8px 12px;
        display: none;
    }

   
}
