
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.mobile-nav {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #0ea5e9;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0ea5e9;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}


main {
    position: relative;
    flex: 1;
    width: 100%;
    margin-top: 76px;
}

main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/fondo.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.2;
    filter: grayscale(90%) contrast(1.2) saturate(1.4) blur(0.5px);
    z-index: -1;
    animation: bgPan 30s infinite alternate linear;
}

@keyframes bgPan {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 20% 20%;
    }
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #0ea5e9;
    color: white;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #ffffff;
    border-left: 4px solid #0ea5e9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(120%);
    transition: transform 0.4s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 40;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
}

.mobile-menu.active {
    display: block;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    nav {
        padding: 15px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #0ea5e9;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.main-container {
    position: relative;
    width: 100%;
    height: calc(100vh);
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    overflow: hidden;
}

.content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.side-image {
    position: absolute;
    top: 0;
    height: 100%;
    width: 25%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.left-image {
    left: 0;
    background-image: url(../img/icon1.png);
    z-index: 1;
}

.right-image {
    right: 0;
    background-image: url(../img/icon2.png);
    z-index: 1;
}

.db-title {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Bangers', cursive;
    font-size: 5vw;
    color: #FFD700;
    text-shadow:
        3px 3px 0 #000,
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000,
        0 0 15px rgba(255, 215, 0, 0.7);
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
    z-index: 10;
    white-space: nowrap;
}

.bcode-canvas-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.bcode-canvas-container #bcode-canvas {
    margin-top: 12rem;
    text-transform: uppercase;
}

#bcode-canvas {
    display: flex;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
    transform-style: preserve-3d;
}

.dragon-message {
    font-family: 'Bangers', cursive;
    font-size: 2.5vw;
    color: #FFD700;
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 0 0 10px rgba(255, 215, 0, 0.7);
    text-align: center;
    margin-top: -13vh;
    letter-spacing: 2px;
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 0 20px;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(14, 165, 233, 0.5);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

.corner {
    margin: 0% !important;
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid #e2e8f0;
    z-index: 1;
}

.corner-tl {
    top: 10px;
    left: 0px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 10px;
    right: 0px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 10px;
    left: 0px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 10px;
    right: 0px;
    border-left: none;
    border-top: none;
}

.menu-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #f1f5f9;
}

.menu-toggle i {
    font-size: 24px;
    color: #0ea5e9;
}

.editor-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: #ffffff;
    z-index: 999;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e2e8f0;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.editor-panel.open {
    right: 0;
}

.panel-header {
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.panel-title {
    color: #0f172a;
    font-weight: 700;
    font-size: 20px;
}

.panel-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-top: 5px;
}

.panel-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 12px 0;
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #ffffff;
    color: #0ea5e9;
    border-bottom: 2px solid #0ea5e9;
}

.tab-btn:hover {
    background: #f1f5f9;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.panel-group {
    margin-bottom: 25px;
}

.group-title {
    color: #0f172a;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #334155;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #334155;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-button {
    display: inline-block;
    padding: 10px 15px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-input-button:hover {
    background: #e2e8f0;
}

.file-name {
    margin-top: 5px;
    font-size: 12px;
    color: #64748b;
    word-break: break-all;
}

.slider-container {
    display: flex;
    align-items: center;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    outline: none;
    border-radius: 3px;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #0ea5e9;
    border-radius: 50%;
    cursor: pointer;
}

.slider-value {
    width: 50px;
    text-align: center;
    color: #0ea5e9;
    font-size: 14px;
    margin-left: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    margin-top: 5px;
    font-weight: 500;
}

.btn:hover {
    background: #e2e8f0;
}

.btn-block {
    display: block;
    width: 100%;
}

.color-picker {
    display: flex;
    align-items: center;
}

.color-preview {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    margin-left: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.preset-btn {
    padding: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #334155;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.editor-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #0ea5e9;
    padding: 12px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #0ea5e9;
}

footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    color: #334155;
    padding: 40px 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: #0ea5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f172a;
}

.footer-description {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #64748b;
}

.social-link:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #0f172a;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 12px;
}

.footer-link a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-link a:hover {
    color: #0ea5e9;
}

.footer-link i {
    margin-right: 10px;
    color: #0ea5e9;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.copyright {
    color: #94a3b8;
    margin-bottom: 10px;
}

.footer-heart {
    color: #ef4444;
}

@media (max-width: 768px) {
    .editor-panel {
        width: 320px;
    }

    .db-title {
        font-size: 7vw;
    }

    .bcode-canvas-container {
        height: 50vh !important;
        margin-top: 5rem !important;
    }

    .bcode-canvas-container #bcode-canvas {
        margin-top: 0 !important;
    }

    .dragon-message {
        font-size: 4vw;
    }

    .side-image {
        width: 20%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-container {
        height: auto;
    }

    .bcode-canvas-container {
        height: 30vh !important;
        margin-top: 5rem !important;
    }

    .bcode-canvas-container #bcode-canvas {
        margin-top: 0 !important;
    }

    .editor-panel {
        width: 100%;
        right: -100%;
    }

    .panel-title {
        font-size: 18px;
    }

    .tab-btn {
        font-size: 12px;
        padding: 10px 0;
    }

    .db-title {
        font-size: 9vw;
        top: 5%;
    }

    .dragon-message {
        font-size: 5vw;
        margin-top: 3vh;
    }

    .menu-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .menu-toggle i {
        font-size: 20px;
    }

    .side-image {
        width: 15%;
        opacity: 0.5;
    }
}

.fullscreen-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    overflow: auto;
}

.fullscreen-main .main-container {
    height: 100vh;
    margin: 0;
}

.fullscreen-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2001;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.fullscreen-toggle:hover {
    background: #0284c7;
}

#bcode-watermark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    color: rgb(0, 217, 255);
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    opacity: 0.7;
}

#watermark-serial {
    margin-bottom: 10px;
}

#get-serial-btn {
    background-color: #0ea5e9;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#get-serial-btn:hover {
    background-color: #0284c7;
}

#serial-status {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #64748b;
}

#remaining-uses {
    color: #0ea5e9;
    font-weight: bold;
}
