/* qr-styles.css - Estilos específicos para el generador QR */

/* Tarjetas de herramientas QR */
.qr-tools-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.qr-tool-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.2s;
    border: 1px solid var(--light);
}

.qr-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.qr-tool-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    background: var(--light);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    display: inline-block;
}

.qr-tool-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.qr-tool-card p {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

/* Botón genérico (si no está en tickets-modern.css) */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

/* Contenido principal del generador */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.form-container {
    padding-right: 1rem;
}

/* Selector de colores */
.color-picker {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.color-option.active {
    border-color: var(--dark);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Contenedor de vista previa */
.preview-container {
    background: var(--light);
    border-radius: var(--radius);
    padding: 1.2rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

#qrcode {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: white;
    border-radius: var(--radius);
    padding: 0.8rem;
}

#qrcode canvas {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

#qrcode p {
    color: var(--gray);
    font-size: 0.8rem;
}

/* Botón de descarga */
.download-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin: 0.5rem 0;
}

.download-btn:hover:not(:disabled) {
    background: #05b886;
    transform: translateY(-2px);
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray);
}

/* Botón de reinicio */
.reset-btn {
    background: var(--light);
    color: var(--gray);
    border: 1px solid #e9ecef;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.reset-btn:hover {
    background: #e9ecef;
    color: var(--dark);
}

/* Mensaje de éxito */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 0.4rem;
    border-radius: 30px;
    font-size: 0.7rem;
    margin-top: 0.3rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* Loader animado */
.loading {
    display: none;
    text-align: center;
    margin-top: 1rem;
}

.loading span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading span:nth-child(1) { animation-delay: -0.32s; }
.loading span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Instrucciones */
.instructions {
    background: var(--light);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-top: 1rem;
    border-left: 4px solid var(--primary);
}

.instructions h3 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--dark);
}

.instructions ul {
    list-style: none;
    padding-left: 0;
}

.instructions li {
    font-size: 0.8rem;
    padding: 0.3rem 0;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.instructions li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 0.3rem;
}

.instructions li strong {
    color: var(--dark);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .qr-tools-nav {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-container {
        padding-right: 0;
    }
}